/* Agenxic AI — Static build styles */
:root {
  --radius: 0.875rem;
  --background: oklch(0.13 0.02 265);
  --foreground: oklch(0.97 0.005 250);
  --card: oklch(0.17 0.025 265);
  --muted-foreground: oklch(0.68 0.02 260);
  --border: rgba(255,255,255,0.08);
  --primary: oklch(0.68 0.22 275);
  --neon-blue: oklch(0.72 0.18 240);
  --neon-purple: oklch(0.65 0.24 300);
  --neon-cyan: oklch(0.85 0.14 200);
  --success: oklch(0.78 0.17 155);
  --destructive: oklch(0.65 0.22 25);
  --gradient-brand: linear-gradient(135deg, oklch(0.72 0.18 240) 0%, oklch(0.65 0.24 300) 100%);
  --gradient-text: linear-gradient(135deg, oklch(0.85 0.14 200) 0%, oklch(0.72 0.18 240) 40%, oklch(0.65 0.24 300) 100%);
  --shadow-glow: 0 0 40px -8px color-mix(in oklab, var(--neon-blue) 60%, transparent);
  --shadow-glow-lg: 0 0 80px -10px color-mix(in oklab, var(--neon-purple) 55%, transparent);
  --shadow-card: 0 1px 0 0 rgb(255 255 255 / 0.04) inset, 0 30px 60px -20px rgb(0 0 0 / 0.5);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; background: var(--background); -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 4rem; }
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { list-style: none; }
::selection { background: color-mix(in oklab, var(--neon-purple) 45%, transparent); color: white; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position: absolute; top: -40px; left: 1rem; background: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Layout helpers */
.container-x { padding-inline: 1.25rem; margin-inline: auto; max-width: 80rem; width: 100%; }
@media (min-width: 768px) { .container-x { padding-inline: 2rem; } }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bg-gradient-brand { background: var(--gradient-brand); }
.glass {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
}
.glow-ring {
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--neon-purple) 40%, transparent),
    0 0 40px -6px color-mix(in oklab, var(--neon-purple) 50%, transparent);
}
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }

/* Ambient background */
.ambient-wrap {
  position: fixed; inset: 0; z-index: -10; pointer-events: none; overflow: hidden;
}
.ambient-glow {
  position: absolute; border-radius: 9999px; filter: blur(120px); opacity: 0.5;
}
.ambient-glow.a1 { left:-10%; top:-10%; width:500px; height:500px; background: color-mix(in oklab, var(--neon-blue) 25%, transparent); }
.ambient-glow.a2 { right:-10%; top:20%; width:600px; height:600px; background: color-mix(in oklab, var(--neon-purple) 25%, transparent); }
.ambient-glow.a3 { left:30%; bottom:-10%; width:600px; height:600px; background: color-mix(in oklab, var(--neon-cyan) 15%, transparent); }

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  background: transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--background) 70%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; height: 2rem; width: 2rem; border-radius: 0.5rem; background: var(--gradient-brand); box-shadow: var(--shadow-glow); color: white; font-size: 0.875rem; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 0.375rem;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.nav-links a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.125rem;
  height: 1px; background: var(--gradient-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  background: var(--gradient-brand); color: white; box-shadow: var(--shadow-glow);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); }
.btn-primary.big { padding: 0.75rem 1.5rem; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); color: var(--foreground);
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); }
.menu-btn {
  display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 0.375rem; border: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.mobile-menu {
  display: none; border-top: 1px solid rgba(255,255,255,0.05);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0; }
.mobile-menu a {
  padding: 0.75rem; border-radius: 0.375rem; font-size: 1rem;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu .btn-primary { margin-top: 0.5rem; justify-content: center; padding: 0.75rem 1rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 2.5rem 0 4rem;
  min-height: 92vh;
  display: flex; align-items: center;
}
@media (min-width: 768px) { .hero { padding: 5rem 0 6rem; } }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--background) 70%, transparent),
    color-mix(in oklab, var(--background) 85%, transparent),
    var(--background));
}
.hero-grid-overlay { position: absolute; inset: 0; opacity: 0.4; }
.hero-blur { position: absolute; inset: 0; background: var(--gradient-brand); opacity: 0.1; filter: blur(48px); }
.hero-inner { position: relative; width: 100%; }
.hero-title { text-align: center; margin-inline: auto; max-width: 56rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  color: var(--muted-foreground);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}
.eyebrow .dot { display: inline-block; height: 6px; width: 6px; border-radius: 999px; background: var(--neon-cyan); }
.hero h1 {
  margin-top: 1.5rem; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; line-height: 1.02;
}
.hero .subtitle {
  margin: 1.5rem auto 0; max-width: 42rem; font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.65;
}
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero-checks { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 2rem; font-size: 0.75rem; color: var(--muted-foreground); }
.hero-checks .item { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero-checks svg { width: 16px; height: 16px; color: var(--neon-cyan); }

.stats { margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.stat { border-radius: 1rem; padding: 1.25rem; text-align: center; }
.stat .k { font-family: var(--font-display); font-size: 2rem; }
@media (min-width: 768px) { .stat .k { font-size: 2.25rem; } }
.stat .v { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto; }
.section-head h2 { margin-top: 0.75rem; font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.15; }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); font-size: 1.125rem; }

/* Voice section */
.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.section-eyebrow { }
.h-title { margin-top: 0.75rem; font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 600; line-height: 1.15; }
.two-col p.lead { margin-top: 1rem; color: var(--muted-foreground); font-size: 1.125rem; }
.feature-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.feature-item { display: flex; gap: 1rem; }
.icon-tile {
  flex-shrink: 0; display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  border: 1px solid rgba(255,255,255,0.1); color: var(--neon-cyan);
}
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile.lg { height: 2.75rem; width: 2.75rem; }
.feature-item h3 { font-size: 1rem; font-weight: 600; }
.feature-item p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.voice-frame { position: relative; }
.voice-frame .halo { position: absolute; inset: -2rem; background: var(--gradient-brand); opacity: 0.2; filter: blur(48px); border-radius: 9999px; }
.voice-frame .card { position: relative; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; box-shadow: var(--shadow-card); }
.voice-bar { margin-top: 1rem; border-radius: 1rem; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.avatar {
  position: relative; height: 3rem; width: 3rem; border-radius: 9999px;
  background: var(--gradient-brand); display: grid; place-items: center; color: white; font-size: 1.25rem;
}
.avatar .status {
  position: absolute; bottom: -2px; right: -2px; height: 0.75rem; width: 0.75rem;
  border-radius: 9999px; background: var(--success); box-shadow: 0 0 0 2px var(--background);
  animation: pulse-glow 3s ease-in-out infinite;
}
.voice-bar .name { font-size: 0.875rem; font-weight: 600; }
.voice-bar .live { font-size: 0.75rem; color: var(--success); }
.waveform { display: flex; align-items: end; gap: 0.25rem; height: 2rem; margin-left: auto; }
.waveform span { width: 4px; border-radius: 999px; background: var(--gradient-brand); animation: pulse-glow 3s ease-in-out infinite; }

/* Chat section grid */
.two-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
@media (min-width: 640px) { .two-grid { grid-template-columns: 1fr 1fr; } }
.card {
  border-radius: 1rem; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in oklab, var(--card) 40%, transparent);
  backdrop-filter: blur(20px);
  height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card.hoverable:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow-glow); }
.card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; }
.card p.desc { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Workflow */
.workflow-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .workflow-grid { grid-template-columns: repeat(5, 1fr); } }
.workflow-card { border-radius: 1rem; padding: 1.5rem; height: 100%; transition: all .3s; }
.workflow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.step-num { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--neon-cyan); }
.step-emoji { margin-top: 0.75rem; font-size: 1.875rem; }
.workflow-card h3 { margin-top: 0.75rem; font-size: 1rem; font-weight: 600; }
.workflow-card p { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Pain vs gain */
.two-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .two-cards { grid-template-columns: 1fr 1fr; } }
.pain {
  border-radius: 1rem; padding: 2rem;
  border: 1px solid color-mix(in oklab, var(--destructive) 20%, transparent);
  background: color-mix(in oklab, var(--destructive) 5%, transparent);
  height: 100%;
}
.pain .pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive);
}
.gain {
  border-radius: 1rem; padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  height: 100%;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--neon-purple) 40%, transparent),
              0 0 40px -6px color-mix(in oklab, var(--neon-purple) 50%, transparent);
}
.gain .pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  background: rgba(255,255,255,0.05); color: var(--neon-cyan);
}
.pain h3, .gain h3 { margin-top: 1rem; font-size: 1.5rem; font-weight: 600; }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.check-list li svg { width: 20px; height: 20px; flex-shrink: 0; }
.check-list.ok li { color: var(--foreground); }
.check-list.ok svg { color: var(--neon-cyan); }
.check-list.no svg { color: color-mix(in oklab, var(--destructive) 80%, transparent); }

/* Services grid */
.services-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; height: 100%; border-radius: 1rem; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1); background: color-mix(in oklab, var(--card) 40%, transparent);
  backdrop-filter: blur(20px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 1rem;
  background: var(--gradient-brand); opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 0.1; }
.service-inner { position: relative; }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground);
}
.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }
.learn-more {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--neon-cyan);
  transition: gap .2s;
}
.learn-more:hover { gap: 0.5rem; }

/* Testimonials */
.testimonials { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 64rem; margin-inline: auto; }
@media (min-width: 768px) { .testimonials { grid-template-columns: 1fr 1fr; } }
.testimonial {
  position: relative; height: 100%; border-radius: 1.5rem; padding: 2rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .testimonial { padding: 2.5rem; } }
.testimonial::before {
  content: ""; position: absolute; top: -1px; left: 2rem; right: 2rem; height: 1px;
  background: var(--gradient-brand); opacity: 0.6;
}
.stars { display: flex; align-items: center; gap: 0.25rem; color: var(--neon-cyan); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote { margin-top: 1.25rem; font-size: 1.125rem; font-family: var(--font-display); line-height: 1.65; color: var(--foreground); }
@media (min-width: 768px) { .quote { font-size: 1.25rem; } }
.testimonial-foot { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.testimonial-foot img { height: 56px; width: 56px; border-radius: 9999px; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.testimonial-foot .name { font-weight: 600; }
.testimonial-foot .role { font-size: 0.875rem; color: var(--muted-foreground); }

/* CTA panel */
.cta-panel {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1); padding: 2.5rem 1.5rem; text-align: center;
}
@media (min-width: 768px) { .cta-panel { padding: 3.5rem 2rem; border-radius: 1.75rem; } }
.cta-panel .anim-bg { position: absolute; inset: 0; opacity: 0.15; }
.cta-panel h2 { position: relative; font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.2; }
.cta-panel p { position: relative; margin: 1rem auto 0; max-width: 36rem; color: var(--muted-foreground); }
.cta-panel .cta-row { justify-content: center; }

.animated-gradient {
  background: linear-gradient(120deg,
    oklch(0.72 0.18 240),
    oklch(0.65 0.24 300),
    oklch(0.85 0.14 200),
    oklch(0.65 0.24 300),
    oklch(0.72 0.18 240));
  background-size: 300% 300%;
  animation: gradient-move 8s ease infinite;
}

/* Page header */
.page-header {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
}
@media (min-width: 768px) { .page-header { padding: 7rem 0 6rem; } }
.page-header .grid-bg { position: absolute; inset: 0; opacity: 0.4; }
.page-header-inner { position: relative; text-align: center; max-width: 48rem; margin: 0 auto; }
.page-header h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.05; }
.page-header .subtitle { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.65; }

/* Big service cards page */
.services-page { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .services-page { grid-template-columns: 1fr 1fr; } }
.big-service {
  position: relative; height: 100%; border-radius: 1rem; padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in oklab, var(--card) 40%, transparent);
  backdrop-filter: blur(20px);
  transition: border-color .3s, box-shadow .3s;
}
.big-service:hover { border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow-glow); }
.big-service-head { display: flex; align-items: center; gap: 1rem; }
.big-service h2 { font-size: 1.25rem; font-weight: 600; }
@media (min-width: 768px) { .big-service h2 { font-size: 1.5rem; } }
.big-service > p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.65; }
.feature-check { margin-top: 1.5rem; display: grid; gap: 0.625rem; }
.feature-check li { display: flex; gap: 0.625rem; font-size: 0.875rem; }
.feature-check li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--neon-cyan); }
.feature-check li span { color: var(--muted-foreground); }
.link-more {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500;
  transition: gap .2s;
}
.link-more:hover { gap: 0.5rem; }

/* Portfolio */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
.project-card {
  height: 100%; border-radius: 1rem; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in oklab, var(--card) 40%, transparent);
  backdrop-filter: blur(20px);
  transition: all .3s;
}
@media (min-width: 768px) { .project-card { padding: 2rem; } }
.project-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow-glow); }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.project-emoji { font-size: 2.25rem; }
.tags-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.375rem; }
.chip {
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); padding: 0.25rem 0.625rem;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground);
}
.project-card h2 { margin-top: 1rem; font-size: 1.125rem; font-weight: 600; }
@media (min-width: 768px) { .project-card h2 { font-size: 1.25rem; } }
.project-card > p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }
.stats-inline { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; }
.stats-inline .cell { text-align: center; }
.stats-inline .k { font-family: var(--font-display); font-size: 1.5rem; }
.stats-inline .v { margin-top: 0.25rem; font-size: 11px; color: var(--muted-foreground); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 2fr 1fr; } }
.about-grid.reverse { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .about-grid.reverse { grid-template-columns: 1fr 2fr; } }
.about-card { border-radius: 1rem; padding: 2rem; height: 100%; }
@media (min-width: 768px) { .about-card { padding: 2.5rem; } }
.about-card h2 { font-size: 1.5rem; font-weight: 600; }
@media (min-width: 768px) { .about-card h2 { font-size: 1.875rem; } }
.about-card .body { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; color: var(--muted-foreground); line-height: 1.65; }
.big-stat {
  position: relative; height: 100%; border-radius: 1rem; padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--neon-purple) 40%, transparent),
              0 0 40px -6px color-mix(in oklab, var(--neon-purple) 50%, transparent);
}
.big-stat .num { font-family: var(--font-display); font-size: 3.75rem; }
@media (min-width: 768px) { .big-stat .num { font-size: 4.5rem; } }
.big-stat p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.values-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

/* Careers */
.perks-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .perks-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.form-card { border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }
.form-card h2 { font-size: 1.5rem; font-weight: 600; }
@media (min-width: 768px) { .form-card h2 { font-size: 1.875rem; } }
.form-card > p { margin-top: 0.75rem; color: var(--muted-foreground); }
form.contact { margin-top: 2rem; display: grid; gap: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.field .req { color: var(--neon-cyan); }
.field input, .field select, .field textarea {
  margin-top: 0.375rem; width: 100%;
  border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 0.75rem 0.875rem; font-size: 0.875rem; color: var(--foreground);
  outline: none; transition: border-color .2s;
  font-family: inherit;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-foreground); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,255,255,0.25); }

/* Dark select fix (cross-browser) */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #1a1a2e;
  color: var(--foreground);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a1a1c4' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field select option {
  background-color: #1a1a2e;
  color: #e6e6f2;
  padding: 0.5rem;
}
.field select option:checked, .field select option:hover {
  background: linear-gradient(#3a2d68, #3a2d68);
  color: #ffffff;
}
@-moz-document url-prefix() {
  .field select { background-color: #1a1a2e; color: #e6e6f2; }
  .field select option { background-color: #1a1a2e; }
}

.success-box {
  margin-top: 2rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in oklab, var(--primary) 10%, transparent); padding: 1.5rem;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--neon-purple) 40%, transparent),
              0 0 40px -6px color-mix(in oklab, var(--neon-purple) 50%, transparent);
}
.success-box h3 { font-size: 1.125rem; font-weight: 600; }
.success-box p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.side-list { display: flex; flex-direction: column; gap: 1rem; }
.next-card { border-radius: 1rem; padding: 1.5rem; }
.next-card h3 { font-weight: 600; }
.next-card ol { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.next-card ol li { display: flex; gap: 0.75rem; }
.next-card ol li .n {
  flex-shrink: 0; display: inline-flex; height: 1.75rem; width: 1.75rem; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--gradient-brand); font-size: 0.75rem; font-weight: 600; color: white;
}
.next-card ol li p { font-size: 0.875rem; color: var(--muted-foreground); }
.info-card { border-radius: 1rem; padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-card h4 { font-weight: 600; }
.info-card .body { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.info-card a { color: var(--neon-cyan); }
.info-card a:hover { color: var(--foreground); }

/* Footer */
footer {
  position: relative; margin-top: 6rem; border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--background);
}
footer .glow-top { position: absolute; left: 0; right: 0; top: -6rem; height: 12rem;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--primary) 5%, transparent), transparent);
  pointer-events: none;
}
.footer-grid { padding: 4rem 0; display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { max-width: 24rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }
.newsletter {
  margin-top: 1.5rem; display: flex; max-width: 24rem; gap: 0.5rem;
  border-radius: 999px; padding: 0.375rem;
}
.newsletter input {
  flex: 1; min-width: 0; background: transparent; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; outline: none; border: 0; color: inherit;
}
.newsletter input::placeholder { color: var(--muted-foreground); }
.newsletter button {
  border-radius: 999px; background: var(--gradient-brand); color: white;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-glow);
}
.footer-col h4 { font-size: 0.875rem; font-weight: 600; }
.footer-col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col a:hover { color: var(--foreground); }
.socials { margin-top: 1.5rem; display: flex; gap: 0.5rem; }
.social-icon {
  display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1); color: var(--muted-foreground);
  transition: color .2s, border-color .2s;
}
.social-icon:hover { color: var(--foreground); border-color: rgba(255,255,255,0.2); }
.social-icon svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-inner {
  padding: 1.5rem 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom-inner a:hover { color: var(--foreground); }

/* Focus */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
