/* ============================================================
   KLYRIX — stylesheet
   Ported 1:1 from the original Tailwind / shadcn design tokens
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --radius: 0.875rem;

  --background: oklch(1 0 0);
  --foreground: oklch(0.22 0.02 265);

  --surface: oklch(0.955 0.012 262);
  --surface-foreground: oklch(0.22 0.02 265);

  --ink: oklch(0.15 0.01 265);
  --ink-foreground: oklch(0.98 0 0);

  --hero: oklch(0.13 0 0);
  --hero-foreground: oklch(0.985 0 0);

  --about: oklch(0.9 0.017 255);
  --about-foreground: oklch(0.26 0.055 268);
  --about-card: oklch(0.945 0.011 258);

  --brand: oklch(0.52 0.2 264);
  --brand-foreground: oklch(0.99 0 0);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.02 265);

  --muted: oklch(0.96 0.005 262);
  --muted-foreground: oklch(0.52 0.02 264);

  --accent: oklch(0.94 0.02 262);
  --accent-foreground: oklch(0.22 0.02 265);

  --border: oklch(0.22 0.02 265 / 12%);
  --input: oklch(0.22 0.02 265 / 16%);
  --ring: oklch(0.52 0.2 264);

  --lime: oklch(0.92 0.19 128);
  --lav: oklch(0.9 0.06 300);
  --mist: oklch(0.97 0.02 220);

  --shadow-card: 0 18px 45px -28px oklch(0.2 0.04 265 / 0.35);
  --shadow-float: 0 40px 90px -40px oklch(0.28 0.06 275 / 0.35);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--background);
  color: var(--foreground);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--brand); color: var(--brand-foreground); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1500px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-left: 3rem; padding-right: 3rem; }
}

/* ---- Typography utilities ---- */
.type-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.32em;
}
.type-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.1vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.type-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.type-body {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 0.95vw, 0.9375rem);
  line-height: 1.65;
}
.type-meta {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.section-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .section-screen {
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }
}

/* ---- Scroll reveal ---- */
.reveal-up, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1),
              filter 0.9s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform, filter;
  filter: blur(6px);
}
.reveal-up { transform: translate3d(0, 38px, 0); }
.reveal-left { transform: translate3d(-42px, 0, 0); }
.reveal-right { transform: translate3d(42px, 0, 0); }
.reveal-scale { transform: scale(0.92); filter: blur(8px); }
.reveal-fade { transform: none; }

.reveal-up.is-revealed, .reveal-fade.is-revealed, .reveal-left.is-revealed,
.reveal-right.is-revealed, .reveal-scale.is-revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---- Staggered children reveal ---- */
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1),
              filter 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 80ms; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 160ms; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 320ms; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 480ms; }
.reveal-stagger.is-revealed > *:nth-child(7) { transition-delay: 560ms; }
.reveal-stagger.is-revealed > *:nth-child(8) { transition-delay: 640ms; }
.reveal-stagger.is-revealed > *:nth-child(9) { transition-delay: 720ms; }
.reveal-stagger.is-revealed > *:nth-child(10) { transition-delay: 800ms; }

/* ---- Whole-section transition as it scrolls into view ---- */
.section-fade {
  opacity: 0;
  transform: translate3d(0, 52px, 0) scale(0.975);
  filter: blur(4px);
  transition: opacity 1.15s cubic-bezier(0.16,1,0.3,1),
              transform 1.2s cubic-bezier(0.16,1,0.3,1),
              filter 1s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform, filter;
}
.section-fade.is-revealed { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .section-fade { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---- Scroll-linked subtle parallax hint on cards ---- */
@keyframes reveal-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.service-card.is-revealed::after,
.product-card.is-revealed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    oklch(0.98 0 0 / 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: reveal-shimmer 1.6s ease-out 0.3s 1 forwards;
  pointer-events: none;
  z-index: 20;
}

/* ---- Footer reveal ---- */
.footer-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1),
              filter 0.8s cubic-bezier(0.16,1,0.3,1);
}
.footer-reveal.is-revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---- Hover interactions ---- */
.hover-lift {
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.5s cubic-bezier(0.22,1,0.36,1),
              border-color 0.4s ease;
}
.hover-lift:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: var(--shadow-float);
}
.hover-media img { transition: transform 1.1s cubic-bezier(0.22,1,0.36,1); }
.hover-media:hover img { transform: scale(1.06); }

.link-arrow svg { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.link-arrow:hover svg { transform: translate3d(3px, -3px, 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .reveal-stagger > * {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .footer-reveal {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .service-card.is-revealed::after,
  .product-card.is-revealed::after {
    animation: none;
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  color: var(--hero-foreground);
}
.navbar-inner {
  margin: 0 auto;
  max-width: 1500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  transition: padding 0.4s ease;
}
@media (min-width: 640px) { .navbar-inner { padding: 1rem 1.5rem; } }
@media (min-width: 768px) { .navbar-inner { padding: 1.125rem 2rem; } }

.nav-left { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
@media (min-width: 640px) { .nav-left { gap: 1rem; } }

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: oklch(0.985 0 0 / 0.9);
  color: var(--hero);
  border: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-menu-btn:hover { opacity: 0.85; transform: scale(1.06); }
.nav-menu-btn:active { transform: scale(0.94); }
@media (min-width: 640px) { .nav-menu-btn { width: 2.5rem; height: 2.5rem; } }
@media (min-width: 1024px) { .nav-menu-btn { display: none; } }

.nav-logo {
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  border: 1px solid transparent;
  background: transparent;
  min-width: 0;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-logo:hover { transform: scale(1.035); }
.nav-logo:active { transform: scale(0.98); }
.nav-logo svg, .nav-logo img {
  height: 1.5rem;
  width: auto;
  transition: filter 0.3s ease;
}
.nav-logo:hover svg, .nav-logo:hover img { filter: drop-shadow(0 0 14px oklch(0.985 0 0 / 0.35)); }
@media (min-width: 480px) { .nav-logo svg, .nav-logo img { height: 0.45rem; } }
@media (min-width: 768px) { .nav-logo { padding: 0.5rem 0.8rem; } .nav-logo svg, .nav-logo img { height: 1.4rem; } }
@media (min-width: 1024px) { .nav-logo svg, .nav-logo img { height: 1.75rem; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.375rem 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  position: relative;
  display: block;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 500;
  color: oklch(0.985 0 0 / 0.8);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--hero-foreground); background: oklch(0.985 0 0 / 0.06); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--hero-foreground); }
.nav-links a.active::after { transform: scaleX(1); background: var(--brand); height: 2px; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.625rem 1.1rem;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hero-foreground);
  border: 1px solid oklch(0.985 0 0 / 0.2);
  background: transparent;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -10px oklch(0.52 0.2 264 / 0.5); border-color: oklch(0.985 0 0 / 0.35); }
.nav-cta:active { transform: translateY(0); }
.nav-cta svg { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.nav-cta:hover svg { transform: rotate(25deg) scale(1.1); }
@media (min-width: 768px) { .nav-cta { padding: 0.625rem 1.25rem; font-size: 13px; } }
@media (max-width: 399px) {
  .nav-cta .nav-cta-label { display: none; }
  .nav-cta { padding: 0.625rem; width: 2.375rem; height: 2.375rem; justify-content: center; }
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-links,
.navbar.scrolled .nav-cta {
  border-color: oklch(0.985 0 0 / 0.15);
  background: oklch(0.13 0 0 / 0.8);
  box-shadow: 0 10px 30px -12px oklch(0 0 0 / 0.4);
  backdrop-filter: blur(20px);
}

.nav-mobile-menu {
  margin: 0 1rem 0.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid oklch(0.985 0 0 / 0.15);
  background: oklch(0.13 0 0 / 0.95);
  box-shadow: 0 10px 30px -12px oklch(0 0 0 / 0.4);
  backdrop-filter: blur(20px);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.45s;
}
.nav-mobile-menu.open { max-height: 26rem; opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition-delay: 0s; }
@media (min-width: 1024px) { .nav-mobile-menu { display: none !important; } }
.nav-mobile-menu ul { padding: 0.5rem; display: flex; flex-direction: column; }
.nav-mobile-menu a {
  display: block;
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: oklch(0.985 0 0 / 0.85);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1), padding-left 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-mobile-menu a:hover { background: oklch(0.985 0 0 / 0.1); color: var(--hero-foreground); padding-left: 1.25rem; }
.nav-mobile-menu a:active { transform: scale(0.98); }
.nav-mobile-menu a.active { color: var(--brand); background: oklch(0.985 0 0 / 0.06); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.13 0 0 / 0.62) 0%, oklch(0.13 0 0 / 0.28) 45%, oklch(0.13 0 0 / 0.75) 100%);
}
.hero-content {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  padding: 8rem 1.25rem 5rem;
  text-align: center;
}
@media (min-width: 768px) { .hero-content { padding-left: 2rem; padding-right: 2rem; } }
.hero-title {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--hero-foreground);
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5.2rem; } }
.hero-sub {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: oklch(0.985 0 0 / 0.75);
}
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--hero-foreground);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hero);
  border: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s cubic-bezier(0.22,1,0.36,1);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px oklch(0.985 0 0 / 0.45); }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-primary svg { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.btn-primary:hover svg { transform: translateX(5px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid oklch(0.985 0 0 / 0.3);
  background: oklch(0.985 0 0 / 0.1);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hero-foreground);
  backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease;
}
.btn-secondary:hover { background: oklch(0.985 0 0 / 0.2); transform: translateY(-3px); border-color: oklch(0.985 0 0 / 0.5); }
.btn-secondary:active { transform: translateY(-1px) scale(0.98); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  overflow: hidden;
  border-top: 1px solid oklch(0.26 0.055 268 / 0.1);
  border-bottom: 1px solid oklch(0.26 0.055 268 / 0.1);
  background: var(--about);
  color: var(--about-foreground);
}
.about-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.about-top-row p:first-child { letter-spacing: 0.42em; color: oklch(0.26 0.055 268 / 0.55); }
.about-top-row p:last-child { display: none; color: oklch(0.26 0.055 268 / 0.45); }
@media (min-width: 640px) { .about-top-row p:last-child { display: block; } }

.about-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 3.5rem; }
}

.about-left { display: flex; min-height: 0; flex-direction: column; justify-content: center; }
.about-left h2 { max-width: 16ch; }
.about-left > p.type-body { margin-top: 1.25rem; max-width: 34ch; color: oklch(0.26 0.055 268 / 0.7); }

.about-panel { margin-top: 1.5rem; max-width: 590px; }

.about-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid oklch(0.26 0.055 268 / 0.15);
  border-bottom: 1px solid oklch(0.26 0.055 268 / 0.15);
}
.about-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  padding: 0.875rem 0.5rem;
  background: transparent;
  border: none;
  border-right: 1px solid oklch(0.26 0.055 268 / 0.1);
  text-align: left;
  color: oklch(0.26 0.055 268 / 0.35);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.about-tab:last-child { border-right: none; }
.about-tab:hover { color: oklch(0.26 0.055 268 / 0.65); background: oklch(0.26 0.055 268 / 0.04); }
.about-tab.active { color: var(--about-foreground); }
.about-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.about-tab.active::after { transform: scaleX(1); }
.about-tab .num { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.about-tab:hover .num { transform: translateX(2px); }
.about-tab .num { font-family: var(--font-display); font-size: 0.875rem; letter-spacing: -0.02em; }
.about-tab .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; }
@media (min-width: 640px) {
  .about-tab { flex-direction: row; align-items: center; gap: 0; padding: 1.25rem 1rem; }
  .about-tab .lbl { margin-left: 0.5rem; }
}

.about-article { padding: 1.25rem 0; }
.about-article-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.about-article-top .cap-label { color: oklch(0.26 0.055 268 / 0.45); }
.about-article-top .cap-num { font-family: var(--font-display); font-size: 0.875rem; color: oklch(0.26 0.055 268 / 0.45); }
.about-article h3 { margin-top: 1.5rem; max-width: 19ch; }
.about-article p.desc { margin-top: 0.75rem; max-width: 24rem; color: oklch(0.26 0.055 268 / 0.65); }

.about-article-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid oklch(0.26 0.055 268 / 0.1);
  padding-top: 1rem;
}
.about-meta-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; flex: 1; min-width: 0; }
.about-meta-list li { min-width: 0; }
.about-meta-list .m-num { display: block; font-family: var(--font-display); font-size: 10px; color: oklch(0.26 0.055 268 / 0.35); }
.about-meta-list .m-txt {
  margin-top: 0.25rem; display: block; font-size: 10px; line-height: 1rem;
  color: oklch(0.26 0.055 268 / 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.about-explore { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.375rem; font-size: 12px; font-weight: 500; cursor: default; }
.about-explore svg { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.about-panel:hover .about-explore svg { transform: translate(3px, -3px); }

.about-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid oklch(0.26 0.055 268 / 0.1); padding-top: 1rem;
}
.about-nav-btns { display: flex; align-items: center; gap: 0.25rem; }
.about-nav-btns button, .whyklyrix-nav button {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
  border: none; background: transparent; color: oklch(0.26 0.055 268 / 0.6);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.about-nav-btns button:hover, .whyklyrix-nav button:hover { background: oklch(0.26 0.055 268 / 0.08); color: var(--about-foreground); transform: scale(1.1); }
.about-nav-btns button:active, .whyklyrix-nav button:active { transform: scale(0.9); }
@media (min-width: 640px) { .about-nav-btns button, .whyklyrix-nav button { width: 2rem; height: 2rem; } }
.about-dots, .whyklyrix-dots { display: flex; align-items: center; gap: 0.375rem; }
.about-dots span, .whyklyrix-dots span {
  height: 4px; border-radius: 999px; width: 6px; background: oklch(0.26 0.055 268 / 0.2);
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease;
}
.about-dots span.active, .whyklyrix-dots span.active { width: 28px; background: var(--brand); }

.about-right { display: flex; align-items: center; justify-content: center; }
.sphere-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: min(46vh, 540px); }
.sphere-wrap .ring { position: absolute; inset: 0; border-radius: 999px; border: 1px solid oklch(0.26 0.055 268 / 0.1); }
.sphere-wrap canvas { height: 100%; max-height: 520px; width: 100%; cursor: pointer; touch-action: none; }
.sphere-tag-top, .sphere-tag-bottom {
  position: absolute; display: none; align-items: center; gap: 0.5rem;
  color: oklch(0.26 0.055 268 / 0.45);
}
.sphere-tag-top { top: -1.5rem; left: 0; letter-spacing: 0.28em; }
.sphere-tag-bottom { bottom: -1.5rem; right: 0; letter-spacing: 0.24em; }
.sphere-tag-top .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }
@media (min-width: 640px) { .sphere-tag-top, .sphere-tag-bottom { display: flex; } }

/* ============================================================
   SECTION HEADING (shared: Services / Products)
   ============================================================ */
.section-heading { max-width: 42rem; }
.section-heading.left { text-align: left; }
.section-heading.center { margin: 0 auto; text-align: center; }
.section-heading .eyebrow { color: var(--muted-foreground); }
.section-heading h2 { margin-top: 0.75rem; max-width: 24ch; }
.section-heading .subtitle { margin-top: 1rem; max-width: 28rem; color: var(--muted-foreground); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { overflow: hidden; background: var(--background); }
.services-head { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .services-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.services-arrows { display: flex; align-items: center; gap: 0.75rem; }
.services-arrows button {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card);
  transition: background-color 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.25s ease, box-shadow 0.3s ease;
}
.services-arrows button:hover:not(:disabled) { background: var(--muted); transform: translateY(-3px); border-color: oklch(0.22 0.02 265 / 0.25); box-shadow: 0 10px 22px -12px oklch(0.2 0.04 265 / 0.3); }
.services-arrows button:active:not(:disabled) { transform: translateY(-1px) scale(0.95); }
.services-arrows button:disabled { opacity: 0.35; cursor: default; }

.services-track {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }

.service-card {
  position: relative;
  display: flex;
  height: clamp(320px, 46vh, 430px);
  width: 85vw;
  flex-shrink: 0;
  scroll-snap-align: center;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease, border-color 0.4s ease;
  opacity: 0.8;
}
.service-card.active { opacity: 1; box-shadow: var(--shadow-card); }
.service-card:hover { transform: translate3d(0, -6px, 0); box-shadow: var(--shadow-float); border-color: oklch(0.26 0.055 268 / 0.3); opacity: 1; }
.service-card li { transition: background-color 0.25s ease, border-color 0.25s ease; }
.service-card:hover li { border-color: oklch(0.9 0.017 255 / 0.4); }
@media (min-width: 640px) { .service-card { width: 62vw; } }
@media (min-width: 1024px) { .service-card { width: calc((100% - 3rem) / 2.4); } }

.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s;
}
.service-card:hover img { transform: scale(1.05); }
.service-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.26 0.055 268 / 0.95), oklch(0.26 0.055 268 / 0.7), oklch(0.26 0.055 268 / 0.25));
}
.service-card .content { position: relative; padding: 1.75rem; color: var(--about); }
@media (min-width: 768px) { .service-card .content { padding: 2.25rem; } }
.service-card .group-label { color: oklch(0.9 0.017 255 / 0.7); }
.service-card h3 { margin-top: 0.75rem; max-width: 22ch; color: var(--about); }
.service-card ul { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-card li {
  border-radius: 999px; border: 1px solid oklch(0.9 0.017 255 / 0.25); background: oklch(0.9 0.017 255 / 0.1);
  padding: 0.375rem 0.75rem; letter-spacing: 0.02em; color: oklch(0.9 0.017 255 / 0.9); backdrop-filter: blur(4px);
}
.services-dots { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.services-dots button {
  height: 3px; border-radius: 999px; width: 1.5rem; background: var(--border); border: none; padding: 0;
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}
.services-dots button:hover { background: oklch(0.22 0.02 265 / 0.4); transform: scaleY(1.6); }
.services-dots button.active { width: 3rem; background: var(--foreground); }
.services-dots button.active:hover { transform: none; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-section { background: var(--surface); color: var(--surface-foreground); }
.products-head { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .products-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.products-tag { display: none; align-items: center; gap: 0.5rem; padding-bottom: 0.5rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .products-tag { display: flex; } }

.products-row { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .products-row { flex-direction: row; } }

.product-card {
  position: relative;
  display: flex;
  height: clamp(380px, 48vh, 520px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--hero);
  color: var(--hero-foreground);
  box-shadow: var(--shadow-card);
  transition: all 0.7s ease-out;
}
.product-card:hover { border-color: oklch(0.985 0 0 / 0.25); }
@media (min-width: 1024px) {
  .product-card { height: clamp(400px, 50vh, 540px); flex: 1; opacity: 0.8; }
  .product-card:hover { opacity: 1; }
  .product-card.active { flex: 1.9; transform: translateY(-8px); box-shadow: var(--shadow-float); opacity: 1; }
}
.product-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease-out;
}
.product-card:hover img { transform: scale(1.06); }
.product-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--hero), oklch(0.13 0 0 / 0.85), oklch(0.13 0 0 / 0.25)); }
.product-card .grid-overlay {
  position: absolute; inset: 0; opacity: 0.14;
  background-image: linear-gradient(to right, oklch(0.985 0 0 / 0.4) 1px, transparent 1px);
  background-size: 44px 44px;
}
.product-card .inner { position: relative; z-index: 10; display: flex; flex: 1; flex-direction: column; padding: 1.75rem; }
@media (min-width: 640px) { .product-card .inner { padding: 2rem; } }
.product-card .top-row { display: flex; align-items: center; justify-content: space-between; }
.product-card .idx { font-family: var(--font-display); font-size: 0.875rem; color: oklch(0.985 0 0 / 0.5); }
.product-card .tag {
  border-radius: 999px; border: 1px solid oklch(0.985 0 0 / 0.2); background: oklch(0.985 0 0 / 0.1);
  padding: 0.25rem 0.75rem; letter-spacing: 0.16em; color: oklch(0.985 0 0 / 0.8); backdrop-filter: blur(8px);
}
.product-card .bottom { margin-top: auto; }
.product-card h3 { color: var(--hero-foreground); }
.product-card .body { margin-top: 0.75rem; max-width: 30ch; color: oklch(0.985 0 0 / 0.65); }
.product-card .caps { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-card .caps span {
  border-radius: 999px; border: 1px solid oklch(0.985 0 0 / 0.15); background: oklch(0.985 0 0 / 0.06);
  padding: 0.375rem 0.75rem; letter-spacing: 0.14em; color: oklch(0.985 0 0 / 0.7);
}
.product-card .talk {
  margin-top: 1.75rem; display: inline-flex; align-items: center; gap: 0.5rem;
  border-top: 1px solid oklch(0.985 0 0 / 0.15); padding-top: 1.5rem; font-size: 0.875rem; font-weight: 500;
  color: var(--hero-foreground); transition: color 0.2s;
}
.product-card:hover .talk { color: var(--brand); }
.product-card .talk svg { transition: transform 0.3s; }
.product-card:hover .talk svg { transform: translate(4px, -4px); }

/* ============================================================
   FUTURE
   ============================================================ */
.future-section { background: var(--ink); color: var(--ink-foreground); }
.future-intro { margin: 0 auto; max-width: 48rem; text-align: center; }
.future-intro .eyebrow { color: oklch(0.98 0 0 / 0.5); }
.future-intro h2 { margin-top: 0.75rem; }
.future-intro p.body { margin-top: 1.25rem; color: oklch(0.98 0 0 / 0.65); }

.future-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .future-grid { grid-template-columns: repeat(3, 1fr); } }
.future-card {
  overflow: hidden; border-radius: 22px; border: 1px solid oklch(0.98 0 0 / 0.12); background: oklch(0.98 0 0 / 0.04);
  transition: border-color 0.4s, transform 0.5s, box-shadow 0.5s;
}
.future-card:hover { border-color: oklch(0.98 0 0 / 0.25); }
.future-card img { height: clamp(120px, 18vh, 190px); width: 100%; object-fit: cover; }
.future-card .pad { padding: 1.5rem; }
.future-card .label { letter-spacing: 0.16em; color: oklch(0.98 0 0 / 0.5); }
.future-card h3 { margin-top: 0.75rem; font-size: 1.15rem; }
.future-card p { margin-top: 0.625rem; color: oklch(0.98 0 0 / 0.6); }

/* ============================================================
   WHY KLYRIX
   ============================================================ */
.whyklyrix-section {
  overflow: hidden;
  border-top: 1px solid oklch(0.26 0.055 268 / 0.1);
  border-bottom: 1px solid oklch(0.26 0.055 268 / 0.1);
  background: var(--about); color: var(--about-foreground);
}
.whyklyrix-head {
  display: flex; flex-direction: column; gap: 1.25rem;
  border-bottom: 1px solid oklch(0.26 0.055 268 / 0.15); padding-bottom: 1.5rem;
}
@media (min-width: 768px) { .whyklyrix-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.whyklyrix-head .left { max-width: 42rem; }
.whyklyrix-head .eyebrow { letter-spacing: 0.36em; color: oklch(0.26 0.055 268 / 0.5); }
.whyklyrix-head h2 { margin-top: 0.75rem; max-width: 22ch; }
.whyklyrix-head .sub { max-width: 20rem; color: oklch(0.26 0.055 268 / 0.65); }

.whyklyrix-grid { display: grid; min-height: 0; flex: 1; gap: 2rem; padding-top: 1.75rem; }
@media (min-width: 1024px) { .whyklyrix-grid { grid-template-columns: minmax(0,0.88fr) minmax(0,1.12fr); gap: 3.5rem; padding-top: 2rem; } }

.wk-left { display: flex; min-height: 0; flex-direction: column; justify-content: space-between; }
.wk-feature { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .wk-feature { grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); align-items: flex-start; gap: 2rem; } }

.wk-image-wrap {
  position: relative; overflow: hidden; border-radius: 2.25rem; background: oklch(0.26 0.055 268 / 0.1);
  aspect-ratio: 1.1;
  transition: box-shadow 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 640px) { .wk-image-wrap { aspect-ratio: 1; } }
.wk-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.wk-image-wrap:hover img { transform: scale(1.06); }
.wk-image-wrap:hover { box-shadow: var(--shadow-float); transform: translateY(-4px); }
.wk-image-wrap .tint { position: absolute; inset: 0; background: oklch(0.15 0.01 265 / 0.2); }
.wk-image-wrap .caption { position: absolute; inset-inline: 1.25rem; bottom: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; }
.wk-image-wrap .caption .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.3em; color: oklch(0.98 0 0 / 0.75); }
.wk-image-wrap .caption .num { font-family: var(--font-display); font-size: 3rem; line-height: 1; letter-spacing: -0.08em; color: oklch(0.98 0 0 / 0.65); }

.wk-detail { display: flex; min-height: 0; flex-direction: column; justify-content: center; }
.wk-signal-row { display: flex; align-items: center; gap: 0.625rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.28em; color: oklch(0.26 0.055 268 / 0.45); }
.wk-signal-row .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--brand); }
.wk-signal-row .name { color: var(--brand); }
.wk-icon-badge { margin-top: 1.25rem; display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--about-foreground); color: var(--about); }
.wk-detail h3 { margin-top: 1.25rem; max-width: 18ch; }
.wk-detail p.desc { margin-top: 0.75rem; max-width: 24rem; color: oklch(0.26 0.055 268 / 0.65); }
.wk-build-link {
  margin-top: 1.25rem; display: inline-flex; width: fit-content; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid oklch(0.26 0.055 268 / 0.25); padding-bottom: 0.375rem; font-size: 12px; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.wk-build-link:hover { border-color: var(--brand); color: var(--brand); }

.wk-footer-row { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid oklch(0.26 0.055 268 / 0.15); padding-top: 1rem; }
@media (min-width: 1024px) { .wk-footer-row { margin-top: 1.5rem; } }
.wk-footer-row .label { letter-spacing: 0.28em; color: oklch(0.26 0.055 268 / 0.45); }

.wk-right { display: flex; min-height: 0; flex-direction: column; }
.wk-right-head { margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: space-between; }
.wk-right-head .lbl1 { letter-spacing: 0.3em; color: oklch(0.26 0.055 268 / 0.45); }
.wk-right-head .lbl2 { display: none; color: oklch(0.26 0.055 268 / 0.45); }
@media (min-width: 640px) { .wk-right-head .lbl2 { display: block; } }

.wk-signal-grid { display: grid; min-height: 0; flex: 1; grid-template-columns: 1fr; align-content: flex-start; }
@media (min-width: 640px) { .wk-signal-grid { grid-template-columns: 1fr 1fr; } }

.wk-signal-btn {
  display: flex; align-items: center; min-height: 58px; justify-content: flex-start;
  border: none; border-bottom: 1px solid oklch(0.26 0.055 268 / 0.15); background: transparent;
  padding: 0.875rem 0; text-align: left; color: oklch(0.26 0.055 268 / 0.48);
  transition: color 0.25s ease, padding-left 0.3s cubic-bezier(0.22,1,0.36,1); width: 100%;
}
.wk-signal-btn:hover { padding-left: 0.375rem; }
.wk-signal-btn.active { color: var(--about-foreground); }
@media (min-width: 640px) {
  .wk-signal-btn { min-height: 64px; padding-right: 1.25rem; }
  .wk-signal-btn:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid oklch(0.26 0.055 268 / 0.15); }
}
.wk-signal-btn .icon-circ {
  margin-right: 0.75rem; display: flex; width: 1.75rem; height: 1.75rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: 999px; background: oklch(0.26 0.055 268 / 0.1); color: oklch(0.26 0.055 268 / 0.55); transition: background-color 0.2s;
}
.wk-signal-btn.active .icon-circ { background: var(--about-foreground); color: var(--about); }
.wk-signal-btn .txt { min-width: 0; }
.wk-signal-btn .idx { display: block; font-family: var(--font-display); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: oklch(0.26 0.055 268 / 0.4); }
.wk-signal-btn.active .idx { color: var(--brand); }
.wk-signal-btn .sig { margin-top: 0.25rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.wk-signal-btn .go {
  margin-left: auto; flex-shrink: 0; opacity: 0; transform: translateX(-4px); transition: all 0.2s; color: var(--brand);
}
.wk-signal-btn.active .go { opacity: 1; transform: translateX(0); }

.whyklyrix-nav { margin-top: 1.25rem; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--background); color: var(--foreground); }
.contact-grid { display: grid; gap: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.75rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; padding-top: 2rem; } }

.contact-left { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.contact-left .eyebrow { color: var(--muted-foreground); }
.contact-left h2 { margin-top: 0.75rem; max-width: 24ch; }
.contact-left p.body { margin-top: 1.25rem; max-width: 24rem; color: var(--muted-foreground); }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info a, .contact-info .row { display: flex; width: fit-content; align-items: center; gap: 0.75rem; font-size: 0.875rem; transition: color 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.contact-info a:hover { color: var(--brand); transform: translateX(4px); }
.contact-info .row { color: var(--muted-foreground); }
.contact-info .icon-circ { display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease; }
.contact-info a:hover .icon-circ { border-color: var(--brand); color: var(--brand); background: oklch(0.52 0.2 264 / 0.08); transform: scale(1.08) rotate(-6deg); }

.contact-form {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
@media (min-width: 1024px) {
  .contact-form {
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 4rem;
  }
}

/* Wizard Container */
.form-wizard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Progress Indicator */
.wizard-progress {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 32rem;
  margin: 0 auto;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}
.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  z-index: 2;
}
.progress-step.active .step-circle,
.progress-step.completed .step-circle {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 0 0 4px oklch(0.52 0.2 264 / 0.1);
}
.progress-step.completed .step-circle {
  background: oklch(0.52 0.2 264 / 0.15);
  color: var(--brand);
}
.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: center;
  display: none;
}
@media (min-width: 640px) {
  .step-label {
    display: block;
  }
}
.progress-step.active .step-label {
  color: var(--foreground);
  font-weight: 600;
}
.progress-line {
  height: 2px;
  flex: 1;
  background: var(--border);
  margin: 0 -1rem;
  position: relative;
  top: -1.5rem;
}
.progress-step.completed + .progress-line {
  background: var(--brand);
}

/* Wizard Steps */
.wizard-steps-container {
  position: relative;
  min-height: 340px;
}
.wizard-step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.wizard-step.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.wizard-step.prev {
  transform: translateX(-30px);
}

.step-header {
  margin-bottom: 1rem;
}
.step-header h3 {
  margin-bottom: 0.375rem;
}
.step-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.4;
}

.step-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Field Styles */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  display: block;
  letter-spacing: 0.14em;
  color: var(--foreground);
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 600;
}
.field label .required {
  color: oklch(0.6 0.2 30);
  margin-left: 0.25rem;
}
.field-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  font-family: inherit;
  transition: all 0.25s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.52 0.2 264 / 0.08);
  background: var(--background);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}
.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2370757e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.row2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .row2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
  background: var(--muted);
  border-radius: 10px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox-custom {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--card);
  position: relative;
  transition: all 0.2s ease;
  margin-top: 0.125rem;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--brand);
  border-color: var(--brand);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
}
.checkbox-text {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.5;
}

/* Wizard Navigation */
.wizard-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.btn-wizard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.btn-prev {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--foreground);
}
.btn-prev:hover {
  background: var(--muted);
  border-color: var(--foreground);
  transform: translateX(-3px);
}
.btn-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.btn-next,
.btn-submit {
  background: var(--ink);
  color: var(--ink-foreground);
  flex: 1;
  max-width: 100%;
}
@media (min-width: 640px) {
  .btn-next,
  .btn-submit {
    flex: initial;
    max-width: fit-content;
  }
}
.btn-next:hover,
.btn-submit:hover {
  background: oklch(0.15 0.01 265 / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px oklch(0.15 0.01 265 / 0.5);
}
.btn-next:active,
.btn-submit:active {
  transform: translateY(0) scale(0.98);
}
.btn-wizard svg {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.btn-next:hover svg {
  transform: translateX(3px);
}
.btn-prev:hover svg {
  transform: translateX(-3px);
}
.btn-submit:hover svg {
  transform: translate(3px, -3px);
}

/* Success Message */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  background: oklch(0.92 0.19 128 / 0.08);
  border: 2px solid oklch(0.92 0.19 128 / 0.2);
}
.form-success.show {
  display: flex;
  animation: successFadeIn 0.5s cubic-bezier(0.22,1,0.36,1);
}
.form-success svg {
  color: oklch(0.92 0.19 128);
  margin-bottom: 1.25rem;
}
.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem;
}
.form-success p {
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.6;
  max-width: 32ch;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.field label { display: block; letter-spacing: 0.22em; color: var(--muted-foreground); font-size: 0.625rem; text-transform: uppercase; }
.field { position: relative; }
.field input, .field textarea {
  margin-top: 0.75rem; width: 100%; border: none; border-bottom: 1px solid var(--border); background: transparent;
  padding: 0.75rem 0; font-size: 0.875rem; color: var(--foreground); outline: none; font-family: var(--font-sans);
  transition: border-color 0.35s ease;
}
.field input::placeholder, .field textarea::placeholder { color: oklch(0.52 0.02 264 / 0.65); transition: opacity 0.3s ease; }
.field input:focus::placeholder, .field textarea:focus::placeholder { opacity: 0.5; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field textarea { resize: none; }

.btn-submit {
  margin-top: 2.5rem; width: fit-content; display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; background: var(--ink); padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-foreground); border: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease, box-shadow 0.35s cubic-bezier(0.22,1,0.36,1);
}
.btn-submit:hover { transform: scale(1.03) translateY(-2px); background: oklch(0.15 0.01 265 / 0.9); box-shadow: 0 16px 32px -16px oklch(0.15 0.01 265 / 0.6); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit svg { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.btn-submit:hover svg { transform: translate(3px, -3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--ink-foreground); }
.footer-inner { margin: 0 auto; max-width: 1500px; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .footer-inner { padding-left: 3rem; padding-right: 3rem; } }

.footer-top { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.2fr 2.4fr; } }
.footer-logo { height: 36px; width: auto; margin-bottom: 0.75rem; }
.footer-brand .wordmark { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.24em; }
.footer-brand p { margin-top: 1rem; max-width: 20rem; color: oklch(0.98 0 0 / 0.6); }

.footer-cols { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h3 { letter-spacing: 0.2em; color: oklch(0.98 0 0 / 0.5); }
.footer-cols ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-cols a {
  position: relative; display: inline-block; font-size: 0.875rem; color: oklch(0.98 0 0 / 0.75);
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.footer-cols a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.footer-cols a:hover { color: var(--ink-foreground); transform: translateX(3px); }
.footer-cols a:hover::after { transform: scaleX(1); }

.footer-bottom {
  margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1rem;
  border-top: 1px solid oklch(0.98 0 0 / 0.12); padding-top: 1.5rem; font-size: 0.75rem; color: oklch(0.98 0 0 / 0.5);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--ink-foreground); }

.footer-mark { position: relative; margin-top: 3rem; user-select: none; overflow: hidden; }
.footer-mark span {
  display: block; text-align: center; font-family: var(--font-display); font-weight: 700;
  line-height: 0.82; letter-spacing: -0.04em; font-size: 19vw;
}
.footer-mark .base { color: oklch(0.98 0 0 / 0.06); pointer-events: none; }
.footer-mark .glow {
  position: absolute; inset: 0; color: oklch(0.98 0 0 / 0.7); pointer-events: none; opacity: 0;
  transition: opacity 0.3s;
  -webkit-mask-image: radial-gradient(circle 18vw at 50% 50%, black 0%, transparent 70%);
  mask-image: radial-gradient(circle 18vw at 50% 50%, black 0%, transparent 70%);
}
.footer-mark.hover .glow { opacity: 1; }

/* ============================================================
   AI MODEL SELECTION MODAL
   ============================================================ */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.13 0 0 / 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.4s;
}
.ai-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.ai-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px oklch(0.2 0.04 265 / 0.4);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.ai-modal-overlay.open .ai-modal {
  transform: translateY(0) scale(1);
}

.ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}
.ai-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-modal-title svg {
  color: var(--brand);
}
.ai-modal-title h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}
.ai-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.25s ease;
}
.ai-modal-close:hover {
  background: var(--muted);
  border-color: var(--foreground);
  color: var(--foreground);
  transform: scale(1.05);
}

.ai-modal-content {
  padding: 0 2rem 2rem;
}
.ai-modal-subtitle {
  color: var(--muted-foreground);
  margin: 0 0 2rem;
  text-align: center;
}

.ai-models-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ai-models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ai-model-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.ai-model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand) 0%, oklch(0.7 0.15 300) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ai-model-card.featured {
  border-color: var(--brand);
  background: oklch(0.52 0.2 264 / 0.02);
}
.ai-model-card.featured::before {
  opacity: 0.03;
}
.ai-model-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px -12px oklch(0.52 0.2 264 / 0.25);
}
.ai-model-card:hover::before {
  opacity: 0.05;
}
.ai-model-card:active {
  transform: translateY(-2px) scale(0.98);
}

.ai-model-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}
.ai-model-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: oklch(0.52 0.2 264 / 0.1);
  color: var(--brand);
  flex-shrink: 0;
}
.ai-model-info h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.25rem;
}
.ai-model-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: var(--muted);
  color: var(--muted-foreground);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}
.ai-model-card.featured .ai-model-badge {
  background: oklch(0.52 0.2 264 / 0.1);
  color: var(--brand);
}

.ai-model-desc {
  color: var(--muted-foreground);
  margin: 0 0 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.ai-model-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.ai-modal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ai-modal-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
  justify-content: center;
}
.ai-modal-note svg {
  flex-shrink: 0;
  color: var(--brand);
}

@media (max-width: 640px) {
  .ai-modal {
    width: 95%;
    margin: 1rem;
  }
  .ai-modal-header {
    padding: 1.5rem 1.5rem 0;
  }
  .ai-modal-content {
    padding: 0 1.5rem 1.5rem;
  }
  .ai-models-grid {
    grid-template-columns: 1fr;
  }
  .ai-model-card {
    padding: 1.25rem;
  }
}