/* ============================================
   ELLIN TECH — Design Tokens & Styles
   Modern, Digital, Corporate + Visual Effects
   ============================================ */

/* === BASE RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* === TOKENS === */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --font-display: "Cabinet Grotesk", "Inter", sans-serif;
  --font-body: "Satoshi", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* === DARK THEME (Default) === */
:root,
[data-theme="dark"] {
  --color-bg: #060a14;
  --color-bg-alt: #080e1c;
  --color-surface: #0c1222;
  --color-surface-2: #111a2e;
  --color-surface-3: #162040;
  --color-border: rgba(59, 130, 246, 0.15);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-divider: rgba(255, 255, 255, 0.06);

  --color-text: #e8eaed;
  --color-text-muted: #8b94a6;
  --color-text-faint: #4a5568;

  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-active: #1d4ed8;
  --color-primary-glow: rgba(59, 130, 246, 0.15);
  --color-primary-glow-strong: rgba(59, 130, 246, 0.25);
  --color-cyan-glow: rgba(34, 211, 238, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
}

/* === LIGHT THEME === */
[data-theme="light"] {
  --color-bg: #f8f9fb;
  --color-bg-alt: #f0f4f8;
  --color-surface: #ffffff;
  --color-surface-2: #f0f2f5;
  --color-surface-3: #e8ecf1;
  --color-border: rgba(59, 130, 246, 0.18);
  --color-border-subtle: rgba(0, 0, 0, 0.08);
  --color-divider: rgba(0, 0, 0, 0.08);

  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-faint: #94a3b8;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-glow: rgba(37, 99, 235, 0.08);
  --color-primary-glow-strong: rgba(37, 99, 235, 0.15);
  --color-cyan-glow: rgba(6, 182, 212, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f8f9fb;
    --color-bg-alt: #f0f4f8;
    --color-surface: #ffffff;
    --color-surface-2: #f0f2f5;
    --color-surface-3: #e8ecf1;
    --color-border: rgba(59, 130, 246, 0.18);
    --color-border-subtle: rgba(0, 0, 0, 0.08);
    --color-divider: rgba(0, 0, 0, 0.08);
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-faint: #94a3b8;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-active: #1e40af;
    --color-primary-glow: rgba(37, 99, 235, 0.08);
    --color-primary-glow-strong: rgba(37, 99, 235, 0.15);
    --color-cyan-glow: rgba(6, 182, 212, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.08);
  }
}

/* === BODY === */
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

.logo {
  background: var(--color-primary) !important;
  border-radius: 6px;
  padding: 4px;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
}
p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: rgba(59, 130, 246, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a,
button,
[role="button"] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
  position: relative;
  z-index: 2;
}

/* ============================================
   AMBIENT EFFECTS — Glows, Orbs, Beams, Grids
   ============================================ */

/* Floating glow orbs */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  animation: float-orb 8s ease-in-out infinite;
}

.glow-orb--blue {
  background: rgba(59, 130, 246, 0.12);
}

.glow-orb--cyan {
  background: rgba(34, 211, 238, 0.08);
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

/* Light beams */
.light-beam {
  position: absolute;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 0;
}

.light-beam--left {
  top: -200px;
  left: -200px;
  background: radial-gradient(
    ellipse at center,
    var(--color-primary-glow-strong) 0%,
    transparent 70%
  );
  opacity: 0.6;
}

.light-beam--right {
  top: -100px;
  right: -200px;
  background: radial-gradient(
    ellipse at center,
    var(--color-cyan-glow) 0%,
    transparent 70%
  );
  opacity: 0.8;
  width: 500px;
  height: 500px;
}

/* Dot grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    var(--color-border) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 70%
  );
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s;
}

[data-theme="light"] .header {
  background: rgba(248, 249, 251, 0.85);
}
.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}
.header__nav a:hover {
  color: var(--color-text);
}

.header__nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm) !important;
}
.header__nav-cta:hover {
  background: var(--color-primary-hover) !important;
  transform: translateY(-1px);
}

.header__menu {
  display: none;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .header__menu {
    display: flex;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease-out),
    visibility 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__inner {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mobile-menu__close {
  align-self: flex-end;
  color: var(--color-text);
  padding: var(--space-2);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-16);
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.mobile-menu nav a:hover {
  color: var(--color-primary);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow:
    0 0 24px var(--color-primary-glow),
    0 0 80px var(--color-primary-glow);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow:
    0 4px 32px var(--color-primary-glow-strong),
    0 0 100px var(--color-primary-glow);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-subtle);
}
.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
  transform: translateY(-1px);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* === SECTION HELPERS === */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.section-intro {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(var(--space-24), 12vh, var(--space-32)) var(--space-6)
    clamp(var(--space-16), 8vh, var(--space-24));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg canvas {
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-weight: 500;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  }
  50% {
    opacity: 0.8;
    box-shadow:
      0 0 16px rgba(34, 197, 94, 0.3),
      0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: var(--space-6);
}

.hero__accent {
  background: linear-gradient(135deg, var(--color-primary), #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 700px;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: var(--space-16);
  }
  .hero__title {
    font-size: var(--text-2xl);
    max-width: 100%;
  }
  .hero__visual {
    display: none;
  }
  .glow-orb {
    width: 200px;
    height: 200px;
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg-alt);
  overflow: hidden;
}

.services__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.services__illustration {
  display: flex;
  justify-content: center;
}

.services__illustration img {
  max-width: 100%;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.2));
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.services__text h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.service-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  overflow: hidden;
}

.service-card__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    var(--color-primary-glow) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .service-card__glow {
  opacity: 1;
}
.service-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-glow);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  position: relative;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  position: relative;
}

.service-card__icon {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  color: var(--color-primary);
  opacity: 0.2;
}

@media (max-width: 768px) {
  .services__layout {
    grid-template-columns: 1fr;
  }
  .services__illustration {
    margin-bottom: var(--space-4);
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-column: auto;
  }
}

/* ============================================
   WHY — Values
   ============================================ */
.why {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  overflow: hidden;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.why__item {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}

.why__item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.why__icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--color-primary-glow-strong),
    var(--color-cyan-glow)
  );
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.why__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.why__item h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.why__item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ============================================
   PROCESS — How it works
   ============================================ */
.process {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg-alt);
  overflow: hidden;
}

.process__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

.process__text h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-8);
}

.process__illustration {
  display: flex;
  justify-content: center;
}

.process__illustration img {
  max-width: 100%;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.15));
  animation: float-gentle 7s ease-in-out infinite;
  animation-delay: -2s;
}

.process__steps {
  display: grid;
  gap: 0;
}

.process__step {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
}
.process__step:first-child {
  padding-top: 0;
}
.process__step:last-child {
  border-bottom: none;
}

.process__step-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  min-width: 40px;
}

.process__step-content h3 {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.process__step-content p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process__layout {
    grid-template-columns: 1fr;
  }
  .process__illustration {
    order: -1;
    margin-bottom: var(--space-6);
  }
  .process__illustration img {
    max-width: 80%;
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  overflow: hidden;
}

.about__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}

.about__text h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.about__text p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.about__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs) !important;
  color: var(--color-text-faint) !important;
  margin-top: var(--space-4);
}

.about__illustration {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.about__illustration img {
  max-width: 260px;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.2));
  animation: float-gentle 8s ease-in-out infinite;
  animation-delay: -3s;
}

.stack-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.stack-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-glow);
}

.stack-card h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.stack-tags span {
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-glow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 500;
}

.stack-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.stack-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.stack-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .about__layout {
    grid-template-columns: 1fr;
  }
  .about__illustration img {
    max-width: 200px;
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg-alt);
  overflow: hidden;
}

.faq__list {
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--color-divider);
  transition: background 0.3s;
  border-radius: var(--radius-sm);
}

.faq__item[open] {
  background: var(--color-primary-glow);
  margin-inline: calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-interactive);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  font-weight: 300;
  transition:
    transform 0.2s var(--ease-out),
    color 0.2s;
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq__item summary:hover {
  color: var(--color-primary);
}

.faq__item p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.cta__inner {
  position: relative;
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(59, 130, 246, 0.12),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgba(34, 211, 238, 0.08),
      transparent 50%
    );
  pointer-events: none;
  animation: cta-glow-pulse 4s ease-in-out infinite;
}

@keyframes cta-glow-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.cta__inner h2 {
  position: relative;
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 22ch;
  margin-inline: auto;
}

.cta__inner p {
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  max-width: 100%;
  margin-inline: auto;
}

.cta__inner .btn {
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__left {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__links a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   SCROLL REVEALS
   ============================================ */
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  .fade-in.is-visible {
    opacity: 1;
  }
}
