/* ============================================================
   STEINWALD TECHNOLOGIES — Design System
   Dark premium tech · Glassmorphism · Emerald→Teal→Cyan
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #060912;
  --bg-2: #0a0f1d;
  --surface: #0f1525;
  --surface-2: #141b2e;
  --glass: rgba(20, 27, 46, 0.55);
  --glass-strong: rgba(20, 27, 46, 0.8);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  /* Brand */
  --emerald: #22c55e;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --indigo: #6366f1;
  --accent: var(--teal);
  --grad: linear-gradient(135deg, #22c55e 0%, #14b8a6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,197,94,.18), rgba(6,182,212,.18));

  /* Text */
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Sizing */
  --container: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 60px -10px rgba(20, 184, 166, 0.45);

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(34, 197, 94, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ---------- Background ambience (global decorative) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(34,197,94,.10), transparent 60%),
    radial-gradient(50% 50% at 85% 0%, rgba(6,182,212,.10), transparent 55%),
    radial-gradient(50% 60% at 50% 100%, rgba(99,102,241,.08), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Floating ambient orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -2; pointer-events: none; }
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(34,197,94,.5), transparent 70%); top: -120px; left: -100px; animation: float-a 18s var(--ease) infinite; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(6,182,212,.45), transparent 70%); top: 30%; right: -120px; animation: float-b 22s var(--ease) infinite; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(99,102,241,.35), transparent 70%); bottom: -100px; left: 30%; animation: float-a 26s var(--ease) infinite reverse; }

@keyframes float-a { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(40px,50px) scale(1.12);} }
@keyframes float-b { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-50px,30px) scale(1.08);} }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-2xl { max-width: 680px; }
.maxw-3xl { max-width: 820px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { color: var(--text-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  padding: 7px 16px; border: 1px solid var(--border-strong); border-radius: 100px;
  background: var(--grad-soft); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .4; transform: scale(.7);} }

.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-muted { color: var(--text-muted); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin: 18px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 100px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
  position: relative; white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #04130c; box-shadow: 0 10px 30px -10px rgba(20,184,166,.6); }
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(20,184,166,.8); transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--accent); transform: translateY(-3px); }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: var(--container); z-index: 100;
  transition: all .4s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 22px; border-radius: 100px;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); box-shadow: 0 10px 40px -16px rgba(0,0,0,.6);
  transition: all .4s var(--ease);
}
.nav.scrolled .nav-inner { background: var(--glass-strong); border-color: var(--border-strong); }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand b { font-weight: 700; color: var(--text); }
.brand .brand-name { color: var(--text-muted); font-weight: 500; display: inline-flex; gap: 5px; align-items: baseline; }
.brand .brand-name b { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 16px; border-radius: 100px; font-size: .94rem; color: var(--text-soft); font-weight: 500; transition: color .25s, background .25s; position: relative; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content:""; position:absolute; bottom:4px; left:50%; transform:translateX(-50%); width:5px; height:5px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent); }
.nav-cta { margin-left: 6px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 320px; padding: 12px; border-radius: var(--radius);
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; align-items: flex-start; gap: 13px; padding: 12px 14px; border-radius: var(--radius-sm); background: none; }
.dropdown a:hover { background: rgba(255,255,255,.05); }
.dropdown .di { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); flex-shrink: 0; }
.dropdown .di svg { width: 20px; height: 20px; stroke: var(--accent); }
.dropdown .dt { font-weight: 600; color: var(--text); font-size: .95rem; }
.dropdown .dd { font-size: .82rem; color: var(--text-muted); line-height: 1.45; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: all .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: 100px 24px 40px;
  background: rgba(6,9,18,.92); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-16px); transition: all .35s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 500; padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 90px) 0 100px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 26px 0 24px; }
.hero .lead { max-width: 640px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-spotlight { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.18), transparent 65%); top: -10%; left: 50%; transform: translateX(-50%); pointer-events: none; z-index: 1; }
#particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Hero stats row */
.hero-meta { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.hero-meta .m { text-align: center; }
.hero-meta .mv { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-meta .ml { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }

/* Hero split layout */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero-copy { text-align: left; }
.hero-copy h1 { margin: 22px 0 22px; }
.hero-copy .lead { max-width: 540px; margin: 0 0 36px; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-visual { position: relative; z-index: 2; }

/* ---------- Cards / Glass ---------- */
.glass {
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, background .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.card:hover::before { opacity: .6; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service cards */
.svc-card { display: flex; flex-direction: column; }
.svc-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad-soft); border: 1px solid var(--border-strong); position: relative; }
.svc-icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.svc-icon::after { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow: var(--glow); opacity:0; transition: opacity .4s; }
.svc-card:hover .svc-icon::after { opacity: .5; }
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { font-size: .96rem; margin-bottom: 20px; flex-grow: 1; }
.svc-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 18px; }
.svc-price span { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.svc-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* Feature list */
.flist { display: grid; gap: 14px; }
.flist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: .96rem; }
.flist .ck { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; margin-top: 1px; }
.flist .ck svg { width: 13px; height: 13px; stroke: var(--emerald); stroke-width: 3; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; }
.stat .v { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { margin-top: 10px; color: var(--text-muted); font-size: .9rem; }

/* ---------- Process / timeline ---------- */
.process { position: relative; display: grid; gap: 26px; }
.process-line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--emerald), var(--cyan)); opacity: .25; }
.step { display: flex; gap: 24px; align-items: flex-start; position: relative; }
.step-num { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; background: var(--surface); border: 1px solid var(--border-strong); color: var(--accent); position: relative; z-index: 1; }
.step-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step-body p { font-size: .96rem; }

/* ---------- Testimonials ---------- */
.tst-track { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tst { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.tst .quote { font-size: 1.02rem; color: var(--text-soft); line-height: 1.65; flex-grow: 1; }
.tst .stars { display: flex; gap: 3px; }
.tst .stars svg { width: 18px; height: 18px; fill: var(--emerald); }
.tst-author { display: flex; align-items: center; gap: 14px; }
.tst-avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: #04130c; background: var(--grad); flex-shrink: 0; }
.tst-author .n { font-weight: 600; color: var(--text); font-size: .98rem; }
.tst-author .r { font-size: .82rem; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 72px 40px; text-align: center; background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(6,182,212,.10)); border: 1px solid var(--border-strong); }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin: 0 auto 34px; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 36px; margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer .brand { margin-bottom: 18px; }
.footer-about p { font-size: .92rem; max-width: 300px; color: var(--text-muted); }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: .92rem; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .85rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: all .3s; }
.footer-social a:hover { border-color: var(--accent); background: var(--grad-soft); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; stroke: var(--text-muted); }
.footer-social a:hover svg { stroke: var(--accent); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 60px; text-align: center; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 20px; }
.page-hero .lead { max-width: 620px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: .85rem; color: var(--text-faint); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-faint); }

/* ---------- Service detail ---------- */
.svc-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.svc-hero-grid .eyebrow { margin-bottom: 22px; }
.svc-hero-grid h1 { margin-bottom: 22px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 26px; border-radius: 100px; background: var(--grad-soft); border: 1px solid var(--border-strong); margin: 8px 0 28px; }
.price-tag .pv { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip:text; -webkit-text-fill-color: transparent; }
.price-tag .pl { color: var(--text-muted); font-size: .9rem; }
.deliverables { display: grid; gap: 16px; }
.deliverable { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,.02); transition: all .35s var(--ease); }
.deliverable:hover { border-color: var(--border-strong); background: rgba(255,255,255,.04); transform: translateX(6px); }
.deliverable .di { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; }
.deliverable .di svg { width: 22px; height: 22px; stroke: var(--accent); }
.deliverable h4 { font-size: 1.05rem; font-family: 'Space Grotesk', sans-serif; margin-bottom: 5px; }
.deliverable p { font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.contact-card { padding: 26px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; transition: all .35s var(--ease); }
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.contact-card .ci { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; }
.contact-card .ci svg { width: 24px; height: 24px; stroke: var(--accent); }
.contact-card .cl { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-card .cv { font-size: 1.05rem; color: var(--text); font-weight: 500; word-break: break-word; }
.contact-card a.cv:hover { color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: .96rem; transition: all .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.05); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: 14px; text-align: center; }
.form-success { display: none; padding: 18px; border-radius: var(--radius-sm); background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--text); font-size: .92rem; margin-top: 16px; align-items: center; gap: 10px; }
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; stroke: var(--emerald); flex-shrink: 0; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; padding: 24px; }
.legal-toc h4 { font-family: 'Space Grotesk', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 16px; }
.legal-toc ul { display: grid; gap: 4px; }
.legal-toc a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .9rem; color: var(--text-muted); border-left: 2px solid transparent; transition: all .25s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--text); background: rgba(255,255,255,.04); border-left-color: var(--accent); }
.legal-content { max-width: 760px; }
.legal-content .updated { font-size: .88rem; color: var(--text-faint); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-content section { margin-bottom: 44px; scroll-margin-top: 100px; }
.legal-content h2 { font-size: 1.5rem; margin-bottom: 16px; }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-soft); font-size: .98rem; margin-bottom: 14px; }
.legal-content ul { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.legal-content ul li { display: flex; gap: 10px; padding-left: 2px; }
.legal-content ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex-shrink: 0; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; transition: width .1s linear; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--border); position: relative; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.1rem; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; stroke: var(--text-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 800px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; text-align: left; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.05rem; color: var(--text); }
.faq-q .ic { width: 24px; height: 24px; flex-shrink: 0; position: relative; transition: transform .3s var(--ease); }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .ic::before { width: 14px; height: 2px; }
.faq-q .ic::after { width: 2px; height: 14px; transition: transform .3s; }
.faq-item.open .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 26px 24px; color: var(--text-muted); font-size: .96rem; }

/* ---------- Decorative animated bits ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.ring { border-radius: 50%; border: 1px solid var(--border-strong); }
.ring-spin { animation: spin 24s linear infinite; }
.ring-spin-rev { animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.floaty { animation: floaty 6s var(--ease) infinite; }
.floaty-2 { animation: floaty 8s var(--ease) infinite; animation-delay: -2s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-16px); } }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{ opacity: .25; transform: scale(.8);} 50%{ opacity: 1; transform: scale(1.2);} }
.dash-rotate { animation: spin 40s linear infinite; }
.cursor-blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pulse-ring { animation: pulse-ring 3s var(--ease) infinite; }
@keyframes pulse-ring { 0%{ transform: scale(.85); opacity: .8;} 70%{ transform: scale(1.4); opacity: 0;} 100%{ opacity: 0;} }

/* Hero — technology orbit ("cosmos") */
.cosmos { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin-inline: auto; }
.cosmos-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.25), transparent 68%); filter: blur(8px); }
.cosmos .star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #e2e8f0; box-shadow: 0 0 8px rgba(226,232,240,.85); animation: twinkle 3s ease-in-out infinite; }

.orbit { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid var(--border-strong); transform: translate(-50%,-50%); }
.o1 { width: 40%; height: 40%; animation: orbit-cw 18s linear infinite; }
.o2 { width: 67%; height: 67%; border-style: dashed; animation: orbit-ccw 27s linear infinite; }
.o3 { width: 94%; height: 94%; animation: orbit-cw 38s linear infinite; }
@keyframes orbit-cw { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes orbit-ccw { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(-360deg); } }

.chip { position: absolute; left: 50%; top: -23px; transform: translateX(-50%); }
.chip-2 { top: auto; bottom: -23px; }
.chip-l { top: 50%; left: -23px; transform: translateY(-50%); }
.chip-r { top: 50%; left: auto; right: -23px; transform: translateY(-50%); }
.chip-inner { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.chip-inner svg { width: 22px; height: 22px; stroke: var(--accent); }
.o1 .chip-inner { animation: spin-self-ccw 18s linear infinite; }
.o2 .chip-inner { animation: spin-self-cw 27s linear infinite; }
.o3 .chip-inner { animation: spin-self-ccw 38s linear infinite; }
@keyframes spin-self-cw { to { transform: rotate(360deg); } }
@keyframes spin-self-ccw { to { transform: rotate(-360deg); } }

.orbit-dot { position: absolute; top: 50%; left: -5px; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(34,197,94,.85); }

.core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 98px; height: 98px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, #4ade80, #0891b2); box-shadow: 0 0 50px -4px rgba(20,184,166,.7), inset 0 2px 16px rgba(255,255,255,.35); z-index: 3; }
.core svg { width: 48px; height: 48px; }
.core-pulse { position: absolute; top: 50%; left: 50%; width: 98px; height: 98px; border-radius: 50%; border: 1px solid var(--emerald); z-index: 2; animation: core-pulse 3s var(--ease) infinite; }
@keyframes core-pulse { 0% { transform: translate(-50%,-50%) scale(.7); opacity: .7; } 70% { transform: translate(-50%,-50%) scale(1.7); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 640px) {
  .chip-inner { width: 40px; height: 40px; border-radius: 11px; }
  .chip-inner svg { width: 19px; height: 19px; }
  .core, .core-pulse { width: 80px; height: 80px; }
  .core svg { width: 40px; height: 40px; }
}

/* Floating mini badges */
.float-badge { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: var(--glass-strong); backdrop-filter: blur(12px); border: 1px solid var(--border-strong); font-size: .85rem; font-weight: 500; box-shadow: var(--shadow); z-index: 3; }
.float-badge svg { width: 16px; height: 16px; }
.float-badge .bdot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }

/* ---------- Visual mock (hero illustration) ---------- */
.mock { position: relative; }
.mock-window { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1){ background:#ef4444;} .mock-bar i:nth-child(2){ background:#f59e0b;} .mock-bar i:nth-child(3){ background:#22c55e;}
.mock-bar .url { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: rgba(255,255,255,.04); }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel.w-70{ width:70%;} .skel.w-50{ width:50%;} .skel.w-90{ width:90%;} .skel.w-40{ width:40%;}
.skel-block { height: 90px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--border); }
.mock-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

/* Animated code window */
.code-window .mock-body { font-family: 'Space Grotesk', monospace; font-size: .9rem; gap: 8px; }
.code-line { display: flex; gap: 12px; opacity: 0; animation: code-in .5s var(--ease) forwards; }
.code-line .ln { color: var(--text-faint); width: 20px; text-align: right; flex-shrink: 0; }
.code-line .k { color: var(--cyan); } .code-line .f { color: var(--emerald); } .code-line .s { color: #fbbf24; } .code-line .c { color: var(--text-faint); }
@keyframes code-in { from{ opacity:0; transform: translateX(-8px);} to{ opacity:1; transform:none;} }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px); max-width: 760px; z-index: 150; padding: 22px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--glass-strong); backdrop-filter: blur(20px); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .5s var(--ease);
}
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie .ctxt { flex: 1; min-width: 240px; font-size: .9rem; color: var(--text-soft); }
.cookie .ctxt b { color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.cookie .ctxt a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 11px 22px; font-size: .9rem; }

/* ---------- Helpers ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .tst-track, .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .svc-hero-grid, .contact-grid, .split-grid, .legal-layout, .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-cta { justify-content: center; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .legal-toc { position: static; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .grid-3, .grid-4, .tst-track, .stats, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 26px; }
  .cta-band { padding: 48px 24px; }
  .container { padding-inline: 18px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  #particles { display: none; }
}
