/* ===== Tokens ===== */
:root {
  --blue: #3aa0ff;
  --purple: #6d5efc;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(135deg, var(--purple), var(--blue));
  --grad-soft: linear-gradient(135deg, rgba(109,94,252,.18), rgba(58,160,255,.18));

  --bg: #0a0c16;
  --bg-2: #0f1322;
  --surface: rgba(255,255,255,.05);
  --surface-strong: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --text: #eef1fb;
  --muted: #a6adc8;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
}
[data-theme="light"] {
  --bg: #f6f8ff;
  --bg-2: #ffffff;
  --surface: rgba(255,255,255,.7);
  --surface-strong: rgba(255,255,255,.9);
  --border: rgba(20,30,80,.10);
  --text: #131a35;
  --muted: #586089;
  --shadow: 0 20px 50px -24px rgba(60,80,180,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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;
  transition: background .4s var(--ease), color .4s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(109,94,252,.18), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(58,160,255,.15), transparent 55%);
}

h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow { color: #b3a8ff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(109,94,252,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(109,94,252,.8); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--purple); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}

/* ===== Glass ===== */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-family: 'Space Grotesk'; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(109,94,252,.8);
}
.brand-accent { color: var(--purple); }
[data-theme="dark"] .brand-accent { color: #b3a8ff; }

.nav-list { display: flex; gap: 28px; list-style: none; }
.nav-list a { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav-list a:hover { color: var(--text); }
.nav-list a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--grad); transition: width .3s var(--ease); }
.nav-list a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); border-color: var(--purple); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .icon-sun { display: block; } [data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; } [data-theme="light"] .icon-moon { display: block; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 2px; background: var(--text); transition: .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; background: radial-gradient(circle, rgba(109,94,252,.25), transparent 60%); filter: blur(20px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.tagline-line { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.25rem; margin-bottom: 14px; }
.tagline-line { background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline-line span { font-family: 'Inter'; font-weight: 500; font-size: .95rem; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .9rem; }
.hero-trust span { color: var(--text); }

/* hero art */
.hero-art { position: relative; height: 420px; }
.art-card { position: absolute; padding: 18px; box-shadow: var(--shadow); }
.float-a { top: 10px; left: 0; width: 240px; }
.float-b { top: 150px; right: 10px; width: 200px; }
.float-c { bottom: 0; left: 60px; width: 230px; }
.art-dot { display:inline-block; width:9px;height:9px;border-radius:50%;background:var(--muted);margin:0 5px 12px 0;opacity:.6;}
.art-line { height: 9px; border-radius: 6px; background: var(--grad-soft); margin: 9px 0; }
.w50{width:50%;} .w70{width:70%;} .w90{width:90%;}
.art-chip,.art-pill { display:inline-block; margin-top:10px; padding:6px 12px; border-radius:999px; font-size:.78rem; font-weight:700; background: var(--grad); color:#fff; }
.art-bar { height: 40px; border-radius: 8px; background: var(--grad-soft); margin-top: 10px; display:inline-block; width:28%; vertical-align:bottom;}
.art-bar.h60{height:60px;} .art-bar.h80{height:80px;}
.art-graph { height: 80px; margin-top: 12px; border-radius: 10px; background:
  linear-gradient(180deg, rgba(58,160,255,.35), transparent),
  repeating-linear-gradient(90deg, transparent, transparent 28px, var(--border) 29px); position: relative; }
.art-graph::after { content:""; position:absolute; left:8px; right:8px; bottom:14px; height:2px; background: var(--blue); box-shadow: 0 0 12px var(--blue); transform: rotate(-8deg); }
.art-avatars { position: absolute; bottom: 30px; right: 0; display: flex; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--surface-strong); border: 1px solid var(--border); margin-left: -12px; backdrop-filter: blur(8px); box-shadow: var(--shadow); }

@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.float-a{ animation: floaty 6s var(--ease) infinite; }
.float-b{ animation: floaty 7s var(--ease) infinite .8s; }
.float-c{ animation: floaty 6.5s var(--ease) infinite .4s; }
@media (prefers-reduced-motion: reduce){ .float-a,.float-b,.float-c{ animation: none; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 28px; margin-top: 56px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-family:'Space Grotesk'; font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display:block; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

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

/* service cards */
.service-card { padding: 30px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; position: relative; overflow: hidden; }
.service-card::before { content:""; position:absolute; inset:0; background: var(--grad-soft); opacity:0; transition: opacity .35s; }
.service-card:hover { transform: translateY(-8px); border-color: var(--purple); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-icon { font-size: 2.4rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.check-list li { padding-left: 26px; position: relative; color: var(--muted); }
.check-list li::before { content:"✓"; position:absolute; left:0; color: var(--blue); font-weight:800; }
.card-link { font-weight: 600; color: var(--purple); transition: gap .2s; }
[data-theme="dark"] .card-link { color:#b3a8ff; }

/* features */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { padding: 26px; transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-6px); border-color: var(--purple); }
.feature-ic { font-size: 1.8rem; display:block; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.timeline::before { content:""; position:absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: var(--grad); opacity:.4; }
.timeline-step { text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color:#fff; font-weight:800; font-size: 1.3rem; display:grid; place-items:center; margin: 0 auto 18px; box-shadow: 0 12px 28px -10px rgba(109,94,252,.8); position: relative; z-index:1; }
.timeline-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-step p { color: var(--muted); font-size: .92rem; }

/* portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.portfolio-item { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--g); position: relative; overflow: hidden; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.portfolio-item::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.portfolio-item figcaption { position: relative; z-index:1; padding: 18px; color:#fff; font-weight:600; transition: transform .35s var(--ease); }
.portfolio-item:hover figcaption { transform: translateY(-6px); }
.portfolio-item .tag { display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; opacity:.85; margin-bottom:4px; }
.portfolio-item img, .portfolio-item { transition: transform .5s var(--ease); }
.portfolio-item:hover { transform: scale(1.02); }

/* testimonials */
.testimonial { padding: 28px; transition: transform .3s var(--ease); }
.testimonial:hover { transform: translateY(-6px); }
.rating { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p { margin-bottom: 18px; }
.testimonial footer { display: flex; align-items: center; gap: 12px; }
.avatar-img { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color:#fff; display:grid; place-items:center; font-weight:700; font-size:.85rem; }
.testimonial footer small { display:block; color: var(--muted); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.price-card { padding: 32px; position: relative; transition: transform .35s var(--ease), border-color .35s; }
.price-card:hover { transform: translateY(-8px); border-color: var(--purple); }
.price-card.featured { border-color: var(--purple); box-shadow: 0 24px 60px -24px rgba(109,94,252,.6); }
.price-card.featured::before { content:""; position:absolute; inset:0; border-radius: var(--radius); padding:1px; background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color:#fff; font-size:.75rem; font-weight:700; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.price { font-family:'Space Grotesk'; font-size: 2.6rem; font-weight: 700; margin-bottom: 6px; }
.price span { font-size: 1.4rem; vertical-align: super; }
.price small { font-size: .95rem; color: var(--muted); font-weight:400; }
.price-desc { color: var(--muted); margin-bottom: 20px; font-size: .95rem; }
.price-card .btn { margin-top: 8px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style:none; display:grid; gap: 14px; margin: 22px 0; }
.contact-list li { display:flex; align-items:center; gap:12px; color: var(--muted); }
.contact-list a:hover { color: var(--purple); }
.ci { width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border); }
.socials { display:flex; gap:10px; margin-bottom: 24px; }
.socials a { width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);font-weight:700;font-size:.9rem;transition:transform .25s var(--ease),border-color .25s; }
.socials a:hover { transform: translateY(-4px); border-color: var(--purple); }
.map { height: 220px; overflow: hidden; }
.contact-form { padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  color: var(--text); font: inherit; transition: border-color .25s, box-shadow .25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,94,252,.2); outline: none; }
.field textarea { resize: vertical; }
.form-status { font-size: .9rem; color: var(--blue); min-height: 1.2em; }

/* footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 280px; font-size: .95rem; }
.footer-tagline { font-family: 'Space Grotesk'; font-weight: 700; margin-top: 12px !important; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; display: inline-block; }
.footer-tagline-en { font-size: .85rem !important; font-style: italic; margin-top: 4px !important; color: var(--muted) !important; }
.footer-col h4 { font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; text-align: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 360px; margin-top: 10px; }
  .cards-3, .features-grid, .pricing-grid, .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(2,1fr); }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 10px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a { display: block; padding: 14px 0; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 20px; }
}
@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .cards-3, .features-grid, .pricing-grid, .portfolio-grid, .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}
