/* =============================================================================
   ZZAX STUDIO — Shared Stylesheet
   "Where AI Creates Tomorrow"
   Futuristic sci-fi AI studio: deep-space dark UI, neon gradients,
   glassmorphism, soft glow, particle nebula, scroll-reveal animations.
   Bilingual (Thai PRIMARY, English secondary).
   Plain CSS — no frameworks, no build step.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. TOKENS (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --space-blue: #0A0E27;   /* page background */
  --quantum-purple: #7B2FFD; /* primary brand */
  --cyber-blue: #00F0FF;   /* accent */
  --neon-pink: #FF2D95;
  --energy-orange: #FF9500;
  --matrix-green: #00FF88;
  --black: #000000;
  --card: #1A1E3A;         /* card background */
  --muted: #6B7280;        /* secondary text */
  --text: #E5E7EB;         /* body text */
  --white: #FFFFFF;

  /* Surface helpers (glass) */
  --glass-bg: rgba(26, 30, 58, 0.55);
  --glass-bg-strong: rgba(26, 30, 58, 0.82);
  --glass-border: rgba(123, 47, 253, 0.28);
  --glass-border-hover: rgba(0, 240, 255, 0.55);
  --hairline: rgba(229, 231, 235, 0.08);

  /* Gradients */
  --grad-quantum: linear-gradient(135deg, #7B2FFD 0%, #00F0FF 100%);
  --grad-cyber: linear-gradient(135deg, #00F0FF 0%, #FF2D95 100%);
  --grad-energy: linear-gradient(135deg, #FF9500 0%, #FF2D95 100%);
  --grad-matrix: linear-gradient(135deg, #00FF88 0%, #00F0FF 100%);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Shadows + neon glows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow-purple: 0 0 24px rgba(123, 47, 253, 0.55);
  --glow-cyan: 0 0 24px rgba(0, 240, 255, 0.5);
  --glow-pink: 0 0 24px rgba(255, 45, 149, 0.5);
  --glow-soft: 0 0 0 1px rgba(123, 47, 253, 0.25), 0 18px 50px rgba(123, 47, 253, 0.18);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.55s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale */
  --z-bg: -1;
  --z-base: 1;
  --z-header: 100;
  --z-dropdown: 120;
  --z-modal: 1000;

  /* Fonts */
  --font-head: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Noto Sans Thai", "Kanit", system-ui, sans-serif;
}

/* -----------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--space-blue);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Deep-space fixed glows behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
body::before {
  top: -10%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(123, 47, 253, 0.55) 0%, transparent 70%);
}
body::after {
  bottom: -12%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.32) 0%, transparent 70%);
}

img,
picture,
svg,
video { max-width: 100%; display: block; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

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

a { color: var(--cyber-blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--neon-pink); }

ul, ol { list-style: none; }

::selection {
  background: var(--quantum-purple);
  color: var(--white);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--space-blue); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--quantum-purple), var(--cyber-blue));
  border-radius: var(--r-full);
  border: 2px solid var(--space-blue);
}
::-webkit-scrollbar-thumb:hover { background: var(--cyber-blue); }

:focus-visible {
  outline: 2px solid var(--cyber-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p { color: var(--text); }
strong, b { font-weight: 600; color: var(--white); }
small { font-size: 0.85em; color: var(--muted); }

.text-gradient {
  background: var(--grad-quantum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-cyber {
  background: var(--grad-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-energy {
  background: var(--grad-energy);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-cyber { color: var(--cyber-blue); }
.text-purple { color: var(--quantum-purple); }

/* -----------------------------------------------------------------------------
   4. LAYOUT — container / section
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container-narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-flush-top { padding-top: 0; }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.section-head.is-center { margin-inline: auto; text-align: center; }

/* -----------------------------------------------------------------------------
   5. HEADINGS HELPERS — eyebrow / titles
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyber-blue);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--grad-quantum);
  box-shadow: var(--glow-cyan);
}
.is-center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: var(--sp-4);
}
.section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.75;
}
.is-center .section-subtitle { margin-inline: auto; }

/* -----------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  color: var(--white);
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), border-color var(--t-base), color var(--t-base);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary {
  background: var(--quantum-purple);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(123, 47, 253, 0.4);
}
.btn-primary:hover {
  background: var(--grad-quantum);
  color: var(--white);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

.btn-secondary {
  background: transparent;
  border-color: var(--quantum-purple);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--quantum-purple);
  color: var(--white);
  box-shadow: var(--glow-purple);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: var(--cyber-blue);
  background: rgba(0, 240, 255, 0.06);
}

.btn-cyber {
  background: var(--grad-cyber);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 45, 149, 0.32);
}
.btn-cyber:hover { box-shadow: var(--glow-pink); }

.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.08rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.88rem; }
.btn-block { display: flex; width: 100%; }

/* -----------------------------------------------------------------------------
   7. BADGES / CHIPS
   -------------------------------------------------------------------------- */
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-border);
  background: rgba(123, 47, 253, 0.1);
  color: var(--cyber-blue);
  line-height: 1;
}
.chip { cursor: default; }
.badge--pink { color: var(--neon-pink); border-color: rgba(255, 45, 149, 0.4); background: rgba(255, 45, 149, 0.1); }
.badge--green { color: var(--matrix-green); border-color: rgba(0, 255, 136, 0.4); background: rgba(0, 255, 136, 0.1); }
.badge--orange { color: var(--energy-orange); border-color: rgba(255, 149, 0, 0.4); background: rgba(255, 149, 0, 0.1); }
.badge--dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* -----------------------------------------------------------------------------
   8. CARDS (glassmorphism)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
/* subtle gradient hairline on top */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(123, 47, 253, 0.5), rgba(0, 240, 255, 0.15) 50%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md), var(--glow-soft);
}
.card:hover::before { opacity: 1; }

.card-3d {
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card-3d:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-4deg);
  box-shadow: var(--shadow-lg), var(--glow-purple);
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}
.service-card .service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: rgba(123, 47, 253, 0.14);
  border: 1px solid var(--glass-border);
  color: var(--cyber-blue);
  margin-bottom: var(--sp-2);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.service-card .service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon {
  transform: scale(1.08);
  box-shadow: var(--glow-cyan);
}
.service-card h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.service-card p { color: var(--muted); flex: 1; }

/* Animated "Learn more" link */
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cyber-blue);
  margin-top: var(--sp-2);
  width: fit-content;
}
.learn-more::after {
  content: "";
  position: relative;
  display: block;
  width: 0;
  height: 2px;
  background: var(--grad-cyber);
}
.learn-more svg { transition: transform var(--t-base); }
.learn-more:hover { color: var(--neon-pink); }
.learn-more:hover svg { transform: translateX(4px); }
/* underline grows under whole link */
.service-card:hover .learn-more::after,
.learn-more:hover::after { width: 100%; transition: width var(--t-base); }

/* -----------------------------------------------------------------------------
   9. GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   10. FEATURE LIST
   -------------------------------------------------------------------------- */
.feature-list { display: grid; gap: var(--sp-3); }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text);
}
.feature-item .feature-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: rgba(0, 255, 136, 0.14);
  color: var(--matrix-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
}
.feature-item .feature-icon svg { width: 15px; height: 15px; }
.feature-item span { line-height: 1.55; }

/* -----------------------------------------------------------------------------
   11. PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  position: relative;
}
/* connecting line (desktop horizontal) */
.process::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--quantum-purple), var(--cyber-blue), transparent);
  opacity: 0.5;
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.process-step .process-num {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  background: var(--space-blue);
  border: 2px solid var(--quantum-purple);
  box-shadow: var(--glow-purple);
  position: relative;
}
.process-step .process-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.process-step h4 { font-size: 1.2rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 768px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before {
    top: 0; bottom: 0; left: 31px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, transparent, var(--quantum-purple), var(--cyber-blue), transparent);
  }
  .process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding-bottom: var(--sp-6);
  }
  .process-step .process-num { flex: 0 0 auto; }
}

/* -----------------------------------------------------------------------------
   12. PRICING
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md), var(--glow-soft);
}
.price-card .price-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--white); }
.price-card .price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-block: var(--sp-2);
}
.price-card .price-amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
}
.price-card .price-period { color: var(--muted); font-size: 0.95rem; }
.price-card .feature-list { flex: 1; margin-block: var(--sp-2); }
.price-card .btn { width: 100%; }

.price-card--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad-quantum) border-box;
  transform: scale(1.04);
  box-shadow: var(--shadow-lg), var(--glow-purple);
}
.price-card--featured:hover { transform: scale(1.04) translateY(-6px); }
.price-card--featured .price-ribbon {
  position: absolute;
  top: -1px;
  right: 1.6rem;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  background: var(--grad-cyber);
  color: var(--white);
  box-shadow: var(--glow-pink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-6px); }
}

/* -----------------------------------------------------------------------------
   13. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-item.is-open {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-soft);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
}
.faq-q .faq-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--cyber-blue);
  transition: transform var(--t-base), color var(--t-base);
}
/* plus/minus icon built with pseudo-elements */
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.faq-q .faq-icon::before { width: 14px; height: 2px; }
.faq-q .faq-icon::after { width: 2px; height: 14px; }
.faq-item.is-open .faq-q .faq-icon { color: var(--neon-pink); }
.faq-item.is-open .faq-q .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-a-inner { padding: 0 1.4rem 1.25rem; color: var(--muted); line-height: 1.75; }

/* -----------------------------------------------------------------------------
   14. TESTIMONIALS CAROUSEL
   -------------------------------------------------------------------------- */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin-inline: auto;
}
.testimonial-track {
  display: flex;
  transition: transform var(--t-slow);
  will-change: transform;
}
.testimonial {
  flex: 0 0 100%;
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.testimonial .quote-mark {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.6;
  background: var(--grad-quantum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--sp-3);
}
.testimonial .testimonial-text {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--white);
  font-weight: 300;
  margin-bottom: var(--sp-5);
}
.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}
.testimonial-author .avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  background: var(--grad-quantum);
  box-shadow: var(--glow-purple);
  flex: 0 0 auto;
}
.testimonial-author .author-name { font-family: var(--font-head); font-weight: 600; color: var(--white); }
.testimonial-author .author-role { font-size: 0.88rem; color: var(--muted); }

/* dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: var(--sp-5);
}
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: var(--r-full);
  background: rgba(229, 231, 235, 0.25);
  transition: all var(--t-base);
  cursor: pointer;
}
.carousel-dot.is-active {
  width: 28px;
  background: var(--grad-quantum);
  box-shadow: var(--glow-cyan);
}

/* arrows */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--white);
  z-index: 2;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-prev:hover,
.carousel-next:hover {
  border-color: var(--cyber-blue);
  box-shadow: var(--glow-cyan);
  color: var(--cyber-blue);
}
.carousel-prev svg,
.carousel-next svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .carousel-prev, .carousel-next { display: none; }
}

/* -----------------------------------------------------------------------------
   15. STATS
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  background: var(--grad-quantum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -----------------------------------------------------------------------------
   16. PORTFOLIO
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  background: transparent;
  transition: all var(--t-base);
}
.filter-btn:hover { color: var(--white); border-color: var(--cyber-blue); }
.filter-btn.is-active {
  color: var(--white);
  background: var(--quantum-purple);
  border-color: var(--quantum-purple);
  box-shadow: var(--glow-purple);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.portfolio-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: opacity var(--t-base), transform var(--t-base);
}
.portfolio-item.is-hidden { display: none; }

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--grad-quantum);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}
.portfolio-thumb.thumb--cyber { background: var(--grad-cyber); }
.portfolio-thumb.thumb--energy { background: var(--grad-energy); }
.portfolio-thumb.thumb--matrix { background: var(--grad-matrix); }
.portfolio-thumb > * { position: relative; z-index: 1; transition: transform var(--t-slow); }
.portfolio-item:hover .portfolio-thumb > * { transform: scale(1.12); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  text-align: center;
  background: rgba(10, 14, 39, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-base);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .portfolio-cat {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyber-blue);
}
.portfolio-overlay .portfolio-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
}

@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   17. MODAL
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.modal.is-open { display: flex; animation: fade-in var(--t-base); }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg), var(--glow-purple);
  animation: modal-pop var(--t-slow);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--hairline);
  transition: all var(--t-base);
}
.modal-close:hover { color: var(--white); border-color: var(--neon-pink); box-shadow: var(--glow-pink); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

/* -----------------------------------------------------------------------------
   18. TEAM
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.team-card { text-align: center; }
.team-card .team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--white);
  background: var(--grad-quantum);
  box-shadow: var(--glow-purple);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.team-card:hover .team-avatar { transform: scale(1.06); box-shadow: var(--glow-cyan); }
.team-card .team-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--white); }
.team-card .team-role { color: var(--cyber-blue); font-size: 0.9rem; margin-bottom: var(--sp-2); }
.team-card .team-bio { color: var(--muted); font-size: 0.92rem; }

.social-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: var(--sp-3);
}
.social-row a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: all var(--t-base);
}
.social-row a:hover { color: var(--white); border-color: var(--cyber-blue); box-shadow: var(--glow-cyan); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   19. VALUES
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.value-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.value-card .value-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: var(--cyber-blue);
}
.value-card .value-icon svg { width: 28px; height: 28px; }
.value-card h4 { font-size: 1.25rem; }
.value-card p { color: var(--muted); }

@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   20. BLOG
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.blog-card.is-hidden { display: none; }
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md), var(--glow-soft);
}
.blog-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--grad-quantum);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.blog-thumb.thumb--cyber { background: var(--grad-cyber); }
.blog-thumb.thumb--energy { background: var(--grad-energy); }
.blog-thumb.thumb--matrix { background: var(--grad-matrix); }
.blog-body { padding: clamp(1.3rem, 2.5vw, 1.7rem); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.blog-card .blog-title { font-size: 1.25rem; line-height: 1.35; }
.blog-card .blog-excerpt { color: var(--muted); font-size: 0.95rem; flex: 1; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: var(--sp-2);
}
.blog-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

/* Search input */
.search {
  position: relative;
  max-width: 460px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.search input {
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 2.9rem;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: none;
  border-color: var(--cyber-blue);
  box-shadow: var(--glow-cyan);
}
.search .search-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search .search-icon svg { width: 18px; height: 18px; }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   21. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.label .req { color: var(--neon-pink); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--white);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.input::placeholder,
.textarea::placeholder { color: var(--muted); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--cyber-blue);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), var(--glow-cyan);
  background: rgba(10, 14, 39, 0.8);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300F0FF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.6rem;
}
.select option { background: var(--card); color: var(--white); }

/* invalid state */
.field.is-invalid .input,
.field.is-invalid .textarea,
.field.is-invalid .select {
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.12);
}
.field .field-error {
  display: none;
  font-size: 0.82rem;
  color: var(--neon-pink);
}
.field.is-invalid .field-error { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* success panel */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: clamp(2rem, 4vw, 3rem);
}
.form-success.is-visible { display: flex; animation: fade-in var(--t-base); }
.form-success .success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 255, 136, 0.14);
  color: var(--matrix-green);
  box-shadow: var(--glow-cyan), 0 0 30px rgba(0, 255, 136, 0.4);
}
.form-success .success-check svg { width: 36px; height: 36px; }

/* -----------------------------------------------------------------------------
   22. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: var(--grad-quantum);
  isolation: isolate;
}
/* faint particle/overlay */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.25), transparent 45%);
  opacity: 0.9;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-4); }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin: 0 auto var(--sp-6); }
.cta-band .btn-group { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--white); color: var(--quantum-purple); }
.cta-band .btn-primary:hover { background: var(--space-blue); color: var(--white); animation: none; box-shadow: var(--shadow-md); }
.cta-band .btn-secondary { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

/* -----------------------------------------------------------------------------
   23. NAVBAR / HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--t-base), padding var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(10, 14, 39, 0.92);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
  transition: height var(--t-base);
}
.site-header.is-scrolled .nav { height: 62px; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}
.logo:hover { color: var(--white); }
.logo .logo-mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
}
.logo .logo-zzax {
  background: var(--grad-quantum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.logo .logo-studio { color: var(--text); font-weight: 500; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color var(--t-base), background var(--t-base);
}
.nav-links > li > a:hover { color: var(--white); background: rgba(123, 47, 253, 0.12); }
.nav-links > li > a.is-active { color: var(--cyber-blue); }
.nav-links > li > a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--grad-cyber);
  box-shadow: var(--glow-cyan);
}

/* caret for dropdown */
.has-dropdown > a .caret { transition: transform var(--t-base); }
.has-dropdown > a .caret svg { width: 14px; height: 14px; }
.has-dropdown.is-open > a .caret,
.has-dropdown:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md), var(--glow-soft);
  padding: 0.5rem;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  z-index: var(--z-dropdown);
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  transition: background var(--t-base), color var(--t-base), padding-left var(--t-base);
}
.dropdown a:hover {
  background: rgba(123, 47, 253, 0.16);
  color: var(--white);
  padding-left: 1.1rem;
}

/* Right cluster */
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-toggle button {
  padding: 0.4rem 0.7rem;
  color: var(--muted);
  transition: color var(--t-base), background var(--t-base);
  line-height: 1;
}
.lang-toggle button:hover { color: var(--white); }
.lang-toggle button.is-active {
  color: var(--white);
  background: var(--quantum-purple);
}

/* Nav CTA reuses .btn .btn-primary .btn-sm */
.nav-cta { white-space: nowrap; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--t-base), opacity var(--t-base), top var(--t-base);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* -------- Mobile nav drawer -------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: var(--sp-5) clamp(1.1rem, 4vw, 2rem);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform var(--t-base);
    overflow-y: auto;
    z-index: var(--z-dropdown);
  }
  .nav.is-open .nav-links { transform: translateX(0); }
  .nav-links > li > a {
    font-size: 1.1rem;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    justify-content: space-between;
  }
  .nav-links > li > a.is-active::after { display: none; }

  /* dropdown becomes inline accordion on mobile */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(123, 47, 253, 0.06);
    border-radius: var(--r-sm);
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    transition: max-height var(--t-base), padding var(--t-base);
  }
  .has-dropdown:hover > .dropdown { /* don't open on hover for mobile */
    max-height: 0;
  }
  .has-dropdown.is-open > .dropdown {
    max-height: 420px;
    padding: 0.35rem 0.5rem;
  }
}

/* Show nav-actions inside drawer nicely on small screens */
@media (max-width: 480px) {
  .logo { font-size: 1.25rem; }
  .nav-cta .nav-cta-label-full { display: none; }
}

/* -----------------------------------------------------------------------------
   24. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: rgba(7, 10, 28, 0.85);
  border-top: 1px solid var(--glass-border);
  padding-top: clamp(3rem, 6vw, 5rem);
  margin-top: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand .logo { margin-bottom: var(--sp-4); }
.footer-blurb { color: var(--muted); font-size: 0.95rem; max-width: 38ch; margin-bottom: var(--sp-4); }
.footer-slogan {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--grad-quantum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--muted); font-size: 0.95rem; transition: color var(--t-base), padding-left var(--t-base); }
.footer-col a:hover { color: var(--cyber-blue); padding-left: 4px; }

.footer-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: all var(--t-base);
}
.footer-social a:hover { color: var(--white); border-color: var(--cyber-blue); box-shadow: var(--glow-cyan); transform: translateY(-3px); padding-left: 0; }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted); font-size: 0.88rem; }
.footer-bottom .footer-legal { display: flex; gap: var(--sp-4); }
.footer-bottom .footer-legal a { color: var(--muted); font-size: 0.88rem; }
.footer-bottom .footer-legal a:hover { color: var(--cyber-blue); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* -----------------------------------------------------------------------------
   25. HERO + SCROLL HINT
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); max-width: 60ch; margin-bottom: var(--sp-6); }
.hero .btn-group { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero.is-center { text-align: center; }
.hero.is-center .hero-inner { margin-inline: auto; }
.hero.is-center .hero-lead { margin-inline: auto; }
.hero.is-center .btn-group { justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-hint .scroll-arrow {
  width: 24px; height: 38px;
  border: 2px solid var(--glass-border);
  border-radius: var(--r-full);
  position: relative;
}
.scroll-hint .scroll-arrow::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  border-radius: var(--r-full);
  background: var(--cyber-blue);
  box-shadow: var(--glow-cyan);
  transform: translateX(-50%);
  animation: scroll-bob 1.6s ease-in-out infinite;
}

/* -----------------------------------------------------------------------------
   26. PARTICLE CANVAS
   -------------------------------------------------------------------------- */
#bg-particles {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
   27. SCROLL REVEAL + KEYFRAMES
   -------------------------------------------------------------------------- */
/* Hiding is applied by JS (which adds .reveal-armed) so that when JS is
   absent, blocked, or still loading, all [data-reveal] content stays visible. */
[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(123, 47, 253, 0.4), 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6), 0 0 30px 4px rgba(0, 240, 255, 0.35); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.is-floating { animation: float 6s ease-in-out infinite; }

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-glow-text {
  background: linear-gradient(135deg, #7B2FFD, #00F0FF, #FF2D95, #7B2FFD);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes scroll-bob {
  0% { top: 7px; opacity: 1; }
  100% { top: 20px; opacity: 0.2; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------------
   28. i18n DISPLAY RULES (CRITICAL)
   -------------------------------------------------------------------------- */
html[data-lang="th"] [data-en] { display: none !important; }
html[data-lang="en"] [data-th] { display: none !important; }

/* -----------------------------------------------------------------------------
   29. HELPERS
   -------------------------------------------------------------------------- */
.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;
}
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.wrap { flex-wrap: wrap; }
.full-width { width: 100%; }
.hidden { display: none !important; }
.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin-block: var(--sp-6);
}

/* Two-column content split (e.g. text + visual) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.is-reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.is-reverse > :first-child { order: 0; }
}

/* Glass visual placeholder block (for split sections, hero art, etc.) */
.glass-visual {
  position: relative;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--glow-soft);
}
.glass-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(123, 47, 253, 0.35), transparent 60%),
              radial-gradient(circle at 75% 75%, rgba(0, 240, 255, 0.28), transparent 60%);
}
.glass-visual .glass-visual-icon { position: relative; color: var(--white); opacity: 0.9; }
.glass-visual .glass-visual-icon svg { width: 84px; height: 84px; }

/* -----------------------------------------------------------------------------
   30. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-hint .scroll-arrow::before { animation: none; }
  .btn-primary:hover { animation: none; }
  .hero-glow-text { animation: none; }
  .is-floating { animation: none; }
}

/* --- Brand logo images (real logos) ----------------------------------------
   Logos are bright artwork on a near-black JPG background. mix-blend-mode:screen
   drops that black out against the dark UI so no rectangular box edge shows. */
.logo-img { height: 34px; width: auto; display: block; }
.site-header.is-scrolled .logo-img { height: 30px; }
.footer-brand .logo-img { height: 46px; margin-bottom: 4px; }
@media (max-width: 640px) { .logo-img { height: 28px; } }
/* --- Logo lockup: Z icon badge + wordmark ---------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-badge { height: 40px; width: 40px; border-radius: 10px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(123,47,253,.45), 0 4px 16px rgba(0,240,255,.20); }
.site-header.is-scrolled .logo-badge { height: 34px; width: 34px; }
.footer-brand .logo-badge { height: 48px; width: 48px; border-radius: 12px; }
@media (max-width: 640px) { .logo-badge { height: 34px; width: 34px; } .logo { gap: 8px; } }
/* Vector Z mark: float cleanly (override earlier badge framing) */
.logo-badge { border-radius: 0; object-fit: initial; box-shadow: none; height: 42px; width: 42px; }
.site-header.is-scrolled .logo-badge { height: 37px; width: 37px; }
.footer-brand .logo-badge { height: 50px; width: 50px; }
@media (max-width: 640px) { .logo-badge { height: 36px; width: 36px; } }
/* New raster Z logo as app-icon badge */
.logo-badge { border-radius: 11px; object-fit: cover; height: 40px; width: 40px;
  box-shadow: 0 0 0 1px rgba(123,47,253,.5), 0 6px 18px rgba(0,240,255,.18); }
.site-header.is-scrolled .logo-badge { height: 35px; width: 35px; }
.footer-brand .logo-badge { height: 48px; width: 48px; border-radius: 13px; }
@media (max-width: 640px) { .logo-badge { height: 34px; width: 34px; } }
/* Logo badge tweak: -6% size, no neon ring */
.logo-badge { box-shadow: none; height: 41.4px; width: 41.4px; }
.site-header.is-scrolled .logo-badge { height: 36.2px; width: 36.2px; }
.footer-brand .logo-badge { height: 49.6px; width: 49.6px; }
@media (max-width: 640px) { .logo-badge { height: 35.2px; width: 35.2px; } }