/* ============================================================
   Altea Studio — Vanilla CSS
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #FAFAFA;
  --ink:       #0A0A0A;
  --ink-soft:  #1A1A1A;
  --muted:     #8B8B8B;
  --line:      #ECECEC;
  --green:     #7CC242;
  --green-d:   #4F8B23;
  --green-l:   #B8E069;
  --pink:      #FF8AA0;
  --card:      #FFFFFF;
}

[data-theme="dark"] {
  --bg:        #0A0A0A;
  --bg-soft:   #141414;
  --ink:       #F5F5F5;
  --ink-soft:  #E5E5E5;
  --muted:     #8B8B8B;
  --line:      #222222;
  --card:      #141414;
}

/* ============================================================
   APPLE — recolor dark elements in dark mode so they stay visible
   ============================================================ */

/* Dark mode: keep the apple's character intact.
   Most "dark" outlines (sunglasses, freckles, AirPod cables, the apple
   silhouette) actually sit ON TOP of the green body, which IS visible
   in dark mode — so leaving them black/dark is correct and looks intentional.

   We only need to lift the truly invisible parts: the legs, feet,
   skateboard wheels, and arms — they sit AGAINST the dark page background
   directly. Lift those to a dark gray (not pure white, which looks chalky)
   that has just enough contrast against #0A0A0A. */

[data-theme="dark"] #apple svg .leg line,
[data-theme="dark"] #apple svg .leg ellipse        { stroke: #6B6B6B; fill: #6B6B6B; }
[data-theme="dark"] #apple svg #armLeft path,
[data-theme="dark"] #apple svg #armRight path      { stroke: #6B6B6B !important; }
[data-theme="dark"] #apple svg #armLeft circle,
[data-theme="dark"] #apple svg #armRight circle    { fill:   #6B6B6B !important; }
[data-theme="dark"] #apple svg #skateboard circle  { fill:   #5A5A5A !important; }

/* Mouth, sunglasses, freckles, stem stay where they are — they sit on the
   green body and are visible. Only lighten if the previous rule caught
   something that ISN'T overlapping the body. */
[data-theme="dark"] #apple svg [stroke="#3D7019"]  { stroke: #B8E069 !important; }
[data-theme="dark"] #apple svg #appleShadow        { fill:   #FFFFFF; opacity: 0.05; }

/* Pupil highlights stay light in both themes (they're reflections) */
[data-theme="dark"] #leftPupil circle, [data-theme="dark"] #rightPupil circle { fill: #FFFFFF; }

/* Speech bubble: invert fill/text in dark mode */
[data-theme="dark"] #speechBubble path { fill: #141414 !important; stroke: #F5F5F5 !important; }
[data-theme="dark"] #speechText        { fill: #F5F5F5 !important; }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* Body font: Manrope renders Cyrillic noticeably better than Inter
     and feels more elegant at small sizes. Inter stays loaded as a
     fallback (and is used by all headings/labels via .hero-title etc.). */
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Headings stay on Inter — its very-bold weights (800/900) work better
   for the giant title typography than Manrope's max 800. */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .contact-title,
.package-name, .package-price, .price-num,
.value-card h3, .work-card h3, .case-title,
.process-step h3, .faq-item summary,
.testimonial figcaption strong, .hero-meta strong,
.big-stats strong, .speed-stats strong, .case-stats strong,
.studio-list, .logo, .email, .btn, .nav-links a {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em {
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--green);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  opacity: 0.5;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}
body.cursor-hover .cursor-dot {
  width: 12px; height: 12px;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  opacity: 0.8;
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring { opacity: 0; }

@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Hide native cursor on devices that have the custom one */
@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: none !important; }
}

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  pointer-events: none;
}
.page-overlay.is-active { pointer-events: all; }
.overlay-apple {
  width: 120px; height: 120px;
  opacity: 0;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.4s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.logo span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: right 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover::after { right: 0; }

.nav-controls {
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.icon-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.icon-btn[aria-pressed="true"] {
  background: var(--green);
  color: #FFFFFF;
  border-color: var(--green);
}

/* Language toggle (BG / EN) — sits with the icon buttons in nav-controls */
.lang-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  margin-right: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lang-link:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============================================================
   MOBILE BURGER MENU
   ============================================================ */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  margin-left: 4px;
}
.nav-burger span {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-burger span::before,
.nav-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }

.nav.is-open .nav-burger span             { background: transparent; }
.nav.is-open .nav-burger span::before     { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-burger span::after      { top: 0; transform: rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav.is-open ~ .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 56px 80px;
  position: relative;
}

.hero-grid {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.apple-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* IMPORTANT: do NOT set `perspective` or `transform` here — those properties
     create a containing block for `position: fixed` descendants, which would
     break the floating-apple scroll behavior (the corner-pinned apple would
     be measured from .apple-stage instead of the viewport). */
}

.apple-wrapper {
  width: clamp(240px, 28vw, 340px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  will-change: transform;
}

/* When the apple is floating in the bottom-right corner, give it a soft
   drop shadow so it lifts off the page, and make it explicitly clickable. */
.apple-wrapper.is-floating {
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: filter 0.4s ease;
}
[data-theme="dark"] .apple-wrapper.is-floating {
  filter: drop-shadow(0 14px 32px rgba(124, 194, 66, 0.25));
}
.apple-wrapper.is-floating svg { overflow: visible; }
.apple-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Use view-box so transform-origin coords are in SVG viewBox units, not per-element bbox.
   #armLeft and #armRight are intentionally omitted: each is wrapped in an outer
   SVG-attribute translate so their natural (0,0) origin already lives at the
   shoulder. They rotate around (0,0) by default — no transform-box needed. */
#leftPupil, #rightPupil, #armRig, #leaf, #appleBody, #shades, #mouth, #speechBubble,
#stem, #skateboard {
  transform-box: view-box;
}

/* Green dot the apple "eats" — flies from the cursor into the open mouth. */
.eat-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 95;
  box-shadow: 0 0 14px rgba(124, 194, 66, 0.7);
}

.hero-title {
  /* Smaller cap so longer Cyrillic words fit on fewer lines and the
     hero stops feeling empty. Latin text still reads bold and confident. */
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.rotator {
  display: inline-block;
  vertical-align: top;
  height: 1em;
  overflow: hidden;
  position: relative;
}
.rotator-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1);
}
.rotator-word {
  height: 1em;
  display: flex;
  align-items: center;
  padding-right: 0.1em;
}
.rotator-word em {
  font-style: italic;
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-weight: 500;
  color: var(--green);
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--green-d);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 480px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero-meta span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: var(--ink);
  opacity: 0.3;
  animation: scrollPulse 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.2; }
  50%      { transform: scaleY(1);   opacity: 0.5; }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.marquee-track .dot { color: var(--green); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 140px 0; position: relative; }
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-head { margin-bottom: 80px; }
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.section-title,
.contact-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.section-sub {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

/* ============================================================
   PACKAGES
   ============================================================ */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.package:hover {
  transform: translateY(-8px);
  border-color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18);
}

.package-featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.package-featured:hover {
  border-color: var(--green);
  box-shadow: 0 24px 70px -20px color-mix(in srgb, var(--green) 60%, transparent);
}
.package-featured .package-tag,
.package-featured .price-note { color: var(--green-l); }
.package-featured .package-features li { border-bottom-color: rgba(255,255,255,0.1); }
.package-featured .package-features li::before { background: var(--green); }

.package-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 5px 12px;
  background: var(--green);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.package-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.package-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.package-name {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.package-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.package-featured .package-price { border-bottom-color: rgba(255,255,255,0.1); }
.price-num {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 32px;
}
.package-features li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.package-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--green);
}
.package-features li:last-child { border-bottom: 0; }

.package-cta {
  margin-top: auto;
  width: 100%;
}

.packages-note {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   VALUE GRID — "Why us" 3-card layout
   ============================================================ */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18);
}

.value-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-l);
  color: var(--ink);
  border-radius: 18px;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-style: italic;
}
[data-theme="dark"] .value-icon { color: #0A0A0A; }

.value-card h3 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 4px;
}
.value-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  flex-grow: 1;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.value-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.value-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* ============================================================
   INDUSTRIES GRID
   ============================================================ */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
}
.industry-grid li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}
.industry-grid li:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}
.industry-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 18px;
  color: var(--green-d);
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
}
.industry-grid li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.industry-grid li strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.industry-grid li em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item details {
  position: relative;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 60px 28px 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  position: relative;
  transition: color 0.25s ease;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
  background-image:
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0);
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--green-d);
  transition: transform 0.3s ease, border-color 0.25s ease;
}
.faq-item details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  border-color: var(--green);
}
.faq-item summary:hover { color: var(--green-d); }
.faq-item summary:hover::after { border-color: var(--green); }

.faq-body {
  overflow: hidden;
  padding-bottom: 28px;
  max-width: 70ch;
}
.faq-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.faq-body p a {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  padding-bottom: 1px;
}
.faq-body p a:hover { color: var(--green-d); }

/* ============================================================
   PROCESS
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--green);
}

.process-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green);
}
.process-step h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.process-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex-grow: 1;
}
.process-time {
  margin-top: 8px;
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ============================================================
   CASE STATS
   ============================================================ */

.case-stats {
  display: flex;
  gap: 28px;
  margin: 14px 0 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-stats strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.case-stats span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   FEATURE GRID — used on website / store / hosting / contact
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  list-style: none;
  padding: 0;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0 24px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.feature-grid li::before {
  content: '';
  position: absolute;
  left: 0; top: 30px;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: var(--green);
}
.feature-grid li strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.feature-grid li span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Legacy "feature-grid-dark" — kept for HTML compat, now styles match
   the light banner surface. The .section-dark cascade above takes
   precedence inside the banners, so this is effectively the fallback. */
.feature-grid-dark li        { border-top-color: rgba(0,0,0,0.08); }
.feature-grid-dark li strong { color: #0A0A0A; }
.feature-grid-dark li span   { color: #6B6B6B; }
.feature-grid-dark li::before { background: #4F8B23; }

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

/* ============================================================
   "FEATURE BANNER" SECTION — class is still .section-dark for
   compatibility, but it now uses a LIGHT off-white surface in
   BOTH themes with dark text. Rounded inset card on the page.
   ============================================================ */

.section-dark {
  background: #FAFAFA;
  color: #0A0A0A;
  border-radius: 32px;
  border: 1px solid #ECECEC;
  margin: 60px 40px;
  padding: 100px 0;
}
.section-dark .section-title { color: #0A0A0A !important; }
.section-dark .section-label { color: #4F8B23 !important; }
.section-dark .section-sub   { color: #6B6B6B !important; }

[data-theme="dark"] .section-dark {
  background: #F5F5F5;
  border-color: #2A2A2A;
}
/* Inner text stays the same hardcoded dark colors in both themes,
   since the banner background is always light. */

/* Feature grid inside the banner — dark text on light surface */
.section-dark .feature-grid li        { border-top-color: rgba(0,0,0,0.08) !important; }
.section-dark .feature-grid li strong { color: #0A0A0A !important; }
.section-dark .feature-grid li span   { color: #6B6B6B !important; }
.section-dark .feature-grid li::before { background: #4F8B23 !important; }

/* Speed grid inside the banner */
.section-dark .speed-copy p           { color: #0A0A0A !important; }
.section-dark .speed-copy p strong    { color: #4F8B23 !important; }
.section-dark .speed-stats            { border-top-color: rgba(0,0,0,0.1) !important; }
.section-dark .speed-stats strong     { color: #0A0A0A !important; }
.section-dark .speed-stats span       { color: #6B6B6B !important; }

/* Big stats (About page) — keep the green italic-serif numbers,
   but lighten the labels so they read on the light surface */
.section-dark .big-stats              { border-top-color: rgba(0,0,0,0.1) !important; }
.section-dark .big-stats strong       { color: #4F8B23 !important; }
.section-dark .big-stats span         { color: #6B6B6B !important; }

@media (max-width: 768px) {
  .section-dark { margin: 40px 16px; padding: 70px 0; border-radius: 24px; }
}

/* ============================================================
   SPEED GRID — two-column "stat copy" pattern
   ============================================================ */

.speed-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.speed-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.speed-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
}
.section:not(.section-dark) .speed-copy p { color: var(--ink); }
.speed-copy p strong { color: var(--green-l); }
.section:not(.section-dark) .speed-copy p strong { color: var(--green-d); }

.speed-stats {
  display: flex;
  gap: 36px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  list-style: none;
}
.section:not(.section-dark) .speed-stats { border-top-color: var(--line); }
.speed-stats li { display: flex; flex-direction: column; gap: 2px; }
.speed-stats strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.section:not(.section-dark) .speed-stats strong { color: var(--ink); }
.speed-stats span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.section:not(.section-dark) .speed-stats span { color: var(--muted); }

@media (max-width: 1024px) {
  .speed-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   BIG STATS — for About page numbers
   ============================================================ */

.big-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.big-stats div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.big-stats strong {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #FFFFFF;
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 500;
}
.big-stats span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

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

/* ============================================================
   CTA SECTION — bottom of every sub-page
   ============================================================ */

.cta-section { padding: 120px 0 80px; }
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-inner .section-title { max-width: 16ch; margin: 0 auto; }
.cta-inner p {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.cta-inner .btn { margin-top: 20px; }

/* ============================================================
   PROCESS-STEP LINK — clickable cards on contact page
   ============================================================ */

.process-step-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.process-step-link:hover { border-color: var(--green); transform: translateY(-6px); }

.process-contact {
  margin-top: auto;
  padding-top: 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-word;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}
.testimonial::before {
  content: '“';
  position: absolute;
  top: 12px;
  right: 22px;
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-size: 100px;
  line-height: 1;
  color: var(--green);
  opacity: 0.18;
}
.testimonial:hover {
  transform: translateY(-6px);
  border-color: var(--green);
}
.testimonial blockquote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  flex-grow: 1;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.testimonial figcaption span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ----- Cases ----- */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.case {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 32px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.case::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.case > * { position: relative; z-index: 1; }
.case:hover { padding: 32px 36px; }
.case:hover::before { opacity: 1; }

.case-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.case-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
}
.case-glyph {
  font-family: 'Cormorant Garamond', 'Instrument Serif', serif;
  font-size: 96px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
  font-style: italic;
}

.case-meta { display: flex; flex-direction: column; gap: 10px; }
.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}
.case-result {
  color: var(--muted);
  font-size: 15px;
  max-width: 56ch;
}
.case-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 6px;
}

/* ----- Studio ----- */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.studio-copy { display: flex; flex-direction: column; gap: 24px; }
.studio-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 56ch;
}
.studio-copy p em { color: var(--green); }
.studio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.studio-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.studio-list strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.18em;
  width: 32px;
}

/* ----- Contact ----- */

.contact { padding-bottom: 60px; }
.contact-title {
  margin-bottom: 60px;
  max-width: 14ch;
}
.email {
  display: inline-block;
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}
.email::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 5px;
  background: var(--green);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.email:hover { color: var(--green-d); }
.email:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

.contact-extras {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-extras p {
  font-size: 15px;
  line-height: 1.55;
}
.contact-extras a {
  position: relative;
  transition: color 0.25s ease;
}
.contact-extras a:hover { color: var(--green-d); }

.footer {
  margin-top: 140px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ============================================================
   REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .case { grid-template-columns: 200px 1fr; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .packages-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }
  .faq-item summary { padding-right: 50px; }
  .faq-item summary::after { width: 28px; height: 28px; right: 4px; }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
  .case-stats { gap: 18px; flex-wrap: wrap; }
  .case-stats strong { font-size: 18px; }
  .package { padding: 28px 24px; }
  .price-num { font-size: 38px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-text { align-items: center; text-align: center; order: 2; }
  .apple-stage { order: 1; padding-top: 40px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-meta { margin: 0 auto; justify-content: center; }
  .case { grid-template-columns: 1fr; }
  .case-visual { max-width: 280px; }
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 18px;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-controls .icon-btn:first-child { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-overlay { display: block; }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(86vw, 380px);
    z-index: 99;
    background: var(--bg);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 22px 24px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav.is-open .nav-links { transform: translateX(0); }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--line);
    list-style: none;
  }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }
  .nav-links a::after { display: none; }
  .nav-overlay { top: 64px; }
  .hero { padding: 110px 22px 70px; }
  .container { padding: 0 22px; }
  .section { padding: 100px 0; }
  .section-head { margin-bottom: 56px; }
  .scroll-hint { display: none; }
  .hero-meta { gap: 24px; padding-top: 22px; }
  .case { padding: 24px 16px; gap: 24px; }
  .case:hover { padding: 24px 16px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; margin-top: 80px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(36px, 11vw, 64px); }
  .apple-wrapper { width: 62vw; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .hero-meta strong { font-size: 22px; }
}

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