@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --canvas: #010102; /* Extremely deep black */
  --surface-1: #0A0A0A;
  --surface-2: #141516;
  --hairline: #23252A;
  --hairline-strong: #34343A;
  
  --ink: #F7F8F8; /* Bright white/gray */
  --ink-muted: #D0D6E0;
  --ink-subtle: #8A8F98;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: var(--transition);
}

::selection {
  background: var(--ink);
  color: var(--canvas);
}

/* Typography Grid */
h1, h2, h3 {
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

p {
  color: var(--ink-muted);
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 60ch;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(1, 1, 2, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Menu */
.menu-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 200;
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 150;
}

.fullscreen-menu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-links {
  list-style: none;
  text-align: center;
}

.menu-links li {
  margin: 2rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-menu.open .menu-links li {
  transform: translateY(0);
  opacity: 1;
}

.fullscreen-menu.open .menu-links li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.open .menu-links li:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.open .menu-links li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.open .menu-links li:nth-child(4) { transition-delay: 0.4s; }

.menu-links a {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-subtle);
}

.menu-links a:hover {
  color: var(--ink);
}

/* Main Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
}

.hero-subtitle {
  color: var(--ink-subtle);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
}

.btn-primary:hover {
  background: var(--ink-muted);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.btn-outline:hover {
  background: var(--surface-1);
  border-color: var(--ink-subtle);
}

/* Grid Components */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  padding: 3rem 2rem;
  border-radius: 8px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.card-desc {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding: 4rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.footer-copy {
  color: var(--ink-subtle);
  font-size: 0.875rem;
}

.footer-link {
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-subtle);
  padding-bottom: 2px;
}

.footer-link:hover {
  border-color: var(--ink);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 100x UI/UX TRICKS: Grain & Glow */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}
.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: width 0.2s, height 0.2s;
}
.card {
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.card::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(125deg, rgba(255,255,255,0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.card:hover::after { opacity: 1; }
section, article, footer {   }

/* LEVEL 10000: FORCED GPU ACCELERATION FOR 0.000 CLS */
* {
    
    
    
    -webkit-font-smoothing: antialiased;
}
img, svg {
    
}

/* =========================================
   PREMIUM VISUALS & ANIMATIONS (LINEAR STYLE)
   ========================================= */

/* Floating Background Orbs (Vercel/Linear feel) */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 12s infinite ease-in-out alternate;
}
.orb-1 { width: 500px; height: 500px; background: #5e6ad2; top: -150px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: #2a2d5c; bottom: -100px; right: -100px; animation-delay: -6s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Gradient Text for Main Headings */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #8a8f98 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Reveal Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced 3D Glassmorphism Cards */
.card {
    position: relative;
    transition: transform 0.1s ease, border-color 0.3s;
    transform-style: preserve-3d;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}
.card:hover::before {
    opacity: 1;
}
.card > * {
    transform: translateZ(20px); /* Makes content pop out during 3D tilt */
}
