/* ==========================================================================
   OCTUPUS.DIGI.DEV — Main stylesheet
   --------------------------------------------------------------------------
   Structure:
   1.  Design tokens (colours, spacing, radii)
   2.  Base / reset
   3.  Layout helpers
   4.  Buttons & badges
   5.  Header / navigation
   6.  Hero
   7.  Sections (services, process, pricing, testimonials, FAQ, contact)
   8.  Footer
   9.  Legal pages
   10. Scroll-reveal animations
   11. Responsive breakpoints
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ecebf5;
  --text-muted: #a3a2b8;
  --text-dim: #6f6e85;

  --violet: #7c5cff;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #e879f9;
  --success: #34d399;

  --grad: linear-gradient(135deg, #7c5cff 0%, #3b82f6 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(59, 130, 246, 0.12));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1180px;
  --gutter: 24px;

  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 20px 60px -15px rgba(124, 92, 255, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Icon sprite: hidden container (not display:none, so gradients keep working) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Stroke icons referenced from the sprite via <use> */
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(124, 92, 255, 0.45); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--violet); color: #fff; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 3. Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { position: relative; padding: 120px 0; }

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 16px; }
.section-head p { color: var(--text-muted); font-size: 1.075rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #b9a9ff;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px var(--violet);
}

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

/* Subtle grid texture used behind sections */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* 4. Buttons & badges ----------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  color: #fff; background: var(--grad); background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  background-position: 100% 50%; transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(124, 92, 255, .85), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }

.btn-lg { padding: 16px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-muted);
}

/* 5. Header / navigation -------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 13, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-mark .tentacle { transform-origin: 20px 18px; transition: transform .6s var(--ease); }
.logo:hover .logo-mark .t1 { transform: rotate(-8deg); }
.logo:hover .logo-mark .t3 { transform: rotate(8deg); }
.logo span em { font-style: normal; color: var(--text-dim); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero ----------------------------------------------------------------- */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; isolation: isolate; }

.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: -1; pointer-events: none;
}
.hero-glow.g1 { width: 620px; height: 620px; background: #5b3dff; top: -260px; left: -160px; animation: drift 18s ease-in-out infinite; }
.hero-glow.g2 { width: 520px; height: 520px; background: #1d6cf5; top: -120px; right: -200px; opacity: .4; animation: drift 22s ease-in-out infinite reverse; }
.hero-glow.g3 { width: 380px; height: 380px; background: #0ea5e9; bottom: -220px; left: 40%; opacity: .25; animation: drift 26s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; margin: 22px 0 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; color: var(--text-dim); font-size: .88rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--success); }

/* Abstract octopus illustration */
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: end; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art .orbit { transform-origin: 260px 260px; animation: spin 40s linear infinite; }
.hero-art .orbit.rev { animation-duration: 60s; animation-direction: reverse; }
.hero-art .arm { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s var(--ease) forwards; }
.hero-art .arm:nth-child(2) { animation-delay: .15s; }
.hero-art .arm:nth-child(3) { animation-delay: .3s; }
.hero-art .arm:nth-child(4) { animation-delay: .45s; }
.hero-art .arm:nth-child(5) { animation-delay: .6s; }
.hero-art .arm:nth-child(6) { animation-delay: .75s; }
.hero-art .arm:nth-child(7) { animation-delay: .9s; }
.hero-art .arm:nth-child(8) { animation-delay: 1.05s; }
.hero-art .node { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-art .node:nth-of-type(2n) { animation-delay: 1s; }
.hero-art .node:nth-of-type(3n) { animation-delay: 2s; }
.hero-art .float { animation: float 6s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Floating chips around illustration */
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: .82rem; font-weight: 600;
  background: rgba(14, 14, 26, .78); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
  animation: float 7s ease-in-out infinite;
}
.chip i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad-soft); font-style: normal; }
.chip i svg { width: 15px; height: 15px; }
.chip small { display: block; color: var(--text-dim); font-weight: 500; font-size: .72rem; }
.chip.c1 { top: 12%; left: -4%; }
.chip.c2 { top: 48%; right: -6%; animation-delay: 1.5s; }
.chip.c3 { bottom: 8%; left: 6%; animation-delay: 3s; }

/* Trust strip */
.trust { padding: 0 0 40px; }
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px;
  padding: 26px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--text-dim); font-size: .9rem;
}
.trust-inner strong { color: var(--text-muted); font-weight: 600; }
.trust-inner .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }

/* 7. Sections ------------------------------------------------------------- */

/* Generic card */
.card {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
  overflow: hidden;
}
/* Cursor-following spotlight (position set in JS via --mx/--my) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }

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

.service-icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 24px;
  background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.service-icon svg { width: 26px; height: 26px; color: #c4b5fd; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card > p { color: var(--text-muted); margin-bottom: 22px; }
.service-card .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.service-card .tag { font-size: .76rem; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52, 211, 153, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list li.muted { color: var(--text-muted); }

/* Process */
.process { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-grid::before {
  content: ""; position: absolute; top: 40px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .6), rgba(59, 130, 246, .6), transparent);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative; z-index: 1; width: 80px; height: 80px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 8px var(--bg-2);
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.step-num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step:hover .step-num { border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 8px var(--bg-2), 0 0 40px -6px rgba(124, 92, 255, .7); transform: translateY(-4px); }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .94rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.price-card { display: flex; flex-direction: column; padding: 36px 32px; }
.price-card .plan-name { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b9a9ff; }
.price-card .plan-desc { color: var(--text-muted); font-size: .93rem; margin-top: 10px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 6px; }
.price .amount { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .currency { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.price-note { font-size: .82rem; color: var(--text-dim); margin-bottom: 26px; }
.price-custom { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin: 26px 0 6px; }

.price-card .divider { height: 1px; background: var(--border); margin: 0 0 26px; }
.price-card .check-list { flex: 1; margin-bottom: 30px; }
.price-card .delivery {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border); font-size: .88rem; color: var(--text-muted);
}
.price-card .delivery svg { width: 18px; height: 18px; color: #93c5fd; flex-shrink: 0; }
.price-card .delivery strong { color: var(--text); font-weight: 600; }

/* Highlighted plan */
.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #13112a, #0d0d1c) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-glow);
  transform: translateY(-12px);
}
.price-card.featured:hover { transform: translateY(-18px); }
.featured-badge {
  position: absolute; top: 20px; right: 20px;
  padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .9);
}

.price-card.custom { background: linear-gradient(180deg, rgba(34, 211, 238, .06), rgba(255,255,255,.015)); }

.pricing-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px;
  margin-top: 48px; color: var(--text-dim); font-size: .88rem; text-align: center;
}
.pricing-foot span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-foot svg { width: 16px; height: 16px; }

/* Stripe badge (pricing + footer) */
.stripe-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-muted); font-size: .84rem; font-weight: 500;
}
.stripe-badge .lock { width: 15px; height: 15px; color: var(--text-muted); }
.stripe-badge .stripe-logo { height: 20px; width: auto; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 20px; color: #fbbf24; }
.stars svg { width: 16px; height: 16px; }
.quote-card blockquote { margin: 0 0 28px; font-size: 1.02rem; color: var(--text); flex: 1; }
.author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: .9rem; color: #fff;
}
.avatar.a1 { background: linear-gradient(135deg, #7c5cff, #e879f9); }
.avatar.a2 { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.avatar.a3 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.author strong { display: block; font-size: .95rem; }
.author span { color: var(--text-dim); font-size: .85rem; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; transition: border-color .3s, background .3s; }
.faq-item.is-open { border-color: rgba(124, 92, 255, .45); background: rgba(124, 92, 255, .05); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.04rem; font-weight: 600;
}
.faq-q .icon {
  position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--surface-2);
  transition: transform .35s var(--ease), background .3s;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--text); transform: translate(-50%, -50%);
}
.faq-q .icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq-item.is-open .faq-q .icon { background: var(--violet); }
.faq-item.is-open .faq-q .icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px; color: var(--text-muted); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 14px 0 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 1px solid var(--border); }
.info-list .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, .3); }
.info-list .ic svg { width: 19px; height: 19px; color: #c4b5fd; }
.info-list small { display: block; color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 2px; }
.info-list a:hover { color: #c4b5fd; }
.info-list address { font-style: normal; }

.form-card { padding: 36px; }
.form-card:hover { transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.field label .req { color: #c4b5fd; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, .3); color: var(--text); font-size: .96rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a2b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field select option { background: #12121e; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet); background: rgba(124, 92, 255, .06);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .18);
}
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.field .error { display: none; color: #fca5a5; font-size: .8rem; margin-top: 6px; }
.field.has-error .error { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); margin-bottom: 22px; }
.consent input { margin-top: 4px; accent-color: var(--violet); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }

.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; }
.form-status.ok { display: block; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); color: #a7f3d0; }
.form-status.err { display: block; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 72px 32px; border-radius: 28px; border: 1px solid var(--border-strong);
  background: radial-gradient(ellipse at top, rgba(124, 92, 255, .35), transparent 60%), var(--bg-2);
}
.cta-banner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.cta-banner .hero-ctas { justify-content: center; margin-top: 0; }

/* 8. Footer --------------------------------------------------------------- */
.site-footer { position: relative; padding: 80px 0 36px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 56px; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; margin: 18px 0 22px; max-width: 320px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 18px; font-weight: 600; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col address { color: var(--text-muted); font-size: .93rem; font-style: normal; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s, border-color .2s, transform .25s var(--ease), background .2s;
}
.socials a:hover { color: #fff; border-color: rgba(124, 92, 255, .5); background: rgba(124, 92, 255, .12); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: 28px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--text-dim);
}
.footer-legal-line { max-width: 720px; }
.footer-legal-line strong { color: var(--text-muted); font-weight: 600; }

/* Back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer; border: 1px solid var(--border-strong);
  background: rgba(14, 14, 26, .85); backdrop-filter: blur(10px); color: var(--text);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* 9. Legal pages ---------------------------------------------------------- */
.legal-hero { position: relative; padding: 150px 0 50px; isolation: isolate; }
.legal-hero .hero-glow { opacity: .35; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 14px; }
.legal-hero p { color: var(--text-muted); }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-bottom: 110px; }
.legal-toc { position: sticky; top: 100px; align-self: start; }
.legal-toc h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.legal-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--border); color: var(--text-muted); font-size: .9rem; transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--text); border-color: var(--violet); }

.prose { max-width: 760px; color: var(--text-muted); }
.prose h2 { color: var(--text); font-size: 1.45rem; margin: 48px 0 16px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose .callout {
  padding: 20px 22px; border-radius: var(--radius); margin: 24px 0;
  background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, .3); color: var(--text);
}
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); background: var(--surface); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Placeholder marker — visible highlight so unfinished values are easy to spot */
.ph { background: rgba(251, 191, 36, .14); color: #fcd34d; padding: 0 4px; border-radius: 4px; }

/* 10. Scroll-reveal animations ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* No-JS fallback: show everything */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-art .arm { stroke-dashoffset: 0; }
}

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-art { justify-self: center; max-width: 440px; margin-top: 20px; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > :last-child, .testimonials-grid > :last-child { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .price-card .plan-desc { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: rgba(7, 7, 13, .97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .site-header { background: rgba(7, 7, 13, .97); }
  .nav-toggle { display: inline-flex; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process-grid::before { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 130px 0 70px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .chip { display: none; }
  .services-grid, .testimonials-grid, .process-grid { grid-template-columns: 1fr; }
  .card, .price-card, .form-card { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: .88rem; }
  .logo span { font-size: .92rem; }
  .cta-banner { padding: 52px 22px; }
}

/* Very small phones: keep the full logo, drop the header CTA (hero CTAs are right below) */
@media (max-width: 440px) {
  .nav-cta .btn-primary { display: none; }
}
