:root {
  --bg: #0a0a12;
  --bg-2: #10101c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --brand: #6c5ce7;
  --brand-2: #00d2ff;
  --brand-3: #a855f7;
  --grad: linear-gradient(120deg, #00d2ff 0%, #6c5ce7 50%, #a855f7 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Animated background ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(1200px 800px at 80% -10%, #16162a 0%, var(--bg) 55%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  will-change: transform;
}
.blob-1 { width: 520px; height: 520px; background: #6c5ce7; top: -120px; left: -80px; animation: float1 18s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: #00d2ff; top: 20%; right: -120px; animation: float2 22s ease-in-out infinite; }
.blob-3 { width: 400px; height: 400px; background: #a855f7; bottom: -120px; left: 30%; animation: float3 20s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(120px,80px) scale(1.15); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px,120px) scale(1.1); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,-90px) scale(1.2); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #0a0a12; box-shadow: 0 10px 30px rgba(108,92,231,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(108,92,231,0.55); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,18,0.75); backdrop-filter: blur(14px); border-bottom-color: var(--border); padding: 12px 32px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; }
.brand-mark {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.brand-text { color: var(--text); font-weight: 500; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--grad); transition: width .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch button { background: transparent; border: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .2s; }
.lang-switch button.active { background: var(--grad); color: #0a0a12; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 120px 0 60px; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: 14px; margin-bottom: 28px;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.08; max-width: 15ch; margin-bottom: 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#typed::after { content: "|"; -webkit-text-fill-color: var(--brand-2); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 60ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num, .stat-plus { font-family: "Space Grotesk"; font-size: 2.6rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat { position: relative; }
.stat label { color: var(--muted); font-size: 14px; margin-top: 2px; }
.stat-plus { display: inline; }
.stat > .stat-num + .stat-plus { position: static; }
.stat { }
.stat-num { display: inline-block; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--brand-2); border-radius: 4px; animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* make stat number+suffix sit inline */
.stat { flex-direction: column; }
.stat .stat-num, .stat .stat-plus { line-height: 1; }
.stat > * { }

/* ---------- Clients marquee ---------- */
.clients { padding: 40px 0 20px; text-align: center; }
.clients-label { color: var(--muted); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track span { font-family: "Space Grotesk"; font-size: 1.9rem; font-weight: 700; color: rgba(255,255,255,0.35); white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; color: var(--brand-2); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .3s, border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .3s; z-index: 0; }
.card:hover { transform: translateY(-6px); border-color: rgba(108,92,231,0.5); background: var(--surface-hover); }
.card > * { position: relative; z-index: 1; }
.card-icon { font-size: 2.4rem; margin-bottom: 18px; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card ul { display: flex; flex-direction: column; gap: 8px; }
.card li { color: var(--text); font-size: 14px; padding-left: 22px; position: relative; }
.card li::before { content: "✦"; position: absolute; left: 0; color: var(--brand-2); }

/* Portfolio */
.pf-group { font-size: 1.05rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 0 20px; }
.pf-group + .portfolio-grid { margin-bottom: 44px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
a.pf-card { display: block; color: inherit; text-decoration: none; }
a.pf-card:hover .pf-cat { background: rgba(0,210,255,0.18); }
.pf-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s;
  min-height: 200px;
}
.pf-card:hover { transform: translateY(-6px); border-color: rgba(0,210,255,0.4); }
.pf-tag { position: absolute; top: -10px; right: 20px; font-family: "Space Grotesk"; font-size: 4.5rem; font-weight: 700; color: rgba(255,255,255,0.05); user-select: none; }
.pf-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.pf-card p { color: var(--muted); margin-bottom: 18px; max-width: 42ch; }
.pf-cat { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(0,210,255,0.1); border: 1px solid rgba(0,210,255,0.25); color: var(--brand-2); font-size: 13px; font-weight: 600; }

/* Timeline / process */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; position: relative; }
.step-num { font-family: "Space Grotesk"; font-size: 2.2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(108,92,231,0.45); background: var(--surface-hover); }
.faq-item summary { list-style: none; cursor: pointer; font-family: "Space Grotesk"; font-weight: 600; font-size: 1.08rem; padding: 18px 34px 18px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brand-2); transition: transform .3s; line-height: 1; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 20px; margin: 0; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.ci-icon { font-size: 1.4rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; flex-shrink: 0; }
.contact-list label { display: block; color: var(--muted); font-size: 13px; }
.contact-list a, .contact-list span { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--brand-2); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,92,231,0.2); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 0; margin-top: 40px; background: rgba(0,0,0,0.2); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { font-family: "Space Grotesk"; font-size: 1.3rem; font-weight: 600; }
.footer-brand p { font-family: "Inter"; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 8px; max-width: 30ch; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100% - 32px)); z-index: 100;
  background: rgba(16,16,28,0.95); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 20px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transition: transform .5s cubic-bezier(.16,1,.3,1); opacity: 1;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { color: var(--muted); font-size: 14px; flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .timeline { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links {
    position: fixed; top: 64px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: rgba(10,10,18,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  }
  .nav-links.open { max-height: 320px; padding: 16px 24px 24px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .nav-links a::after { display: none; }
  .cards, .portfolio-grid, .timeline { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .pf-tag { font-size: 3.2rem; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .marquee-track, .scroll-hint span, #typed::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
