/* ===== Tokens ===== */
:root{
  --bg: #000000;
  --bg-alt: #050817;
  --navy: #0A0F8C;
  --navy-2: #1E1B8F;
  --surface: rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.16);
  --text: #F5F7FF;
  --muted: #99A0C9;
  --accent: #7A5CFF;
  --accent-2: #00E5FF;
  --accent-3: #22D3EE;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-3));
  --grad-soft: linear-gradient(120deg, rgba(122,92,255,.28), rgba(0,229,255,.18));
  --radius: 20px;
  --container: 1220px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  cursor: none;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:'Space Grotesk', 'Inter', sans-serif; margin:0; line-height:1.08; letter-spacing:-0.02em; }
p{ margin:0; }
.container{ max-width: var(--container); margin:0 auto; padding: 0 28px; }
em{ font-style: normal; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

::selection{ background: var(--accent); color:#fff; }

/* ===== Custom cursor ===== */
.cursor-dot, .cursor-ring{
  position: fixed; top:0; left:0; pointer-events:none; z-index: 9999;
  border-radius:50%; transform: translate(-50%,-50%);
  transition: opacity .3s ease;
}
.cursor-dot{ width:6px; height:6px; background: var(--accent-3); }
.cursor-ring{ width:34px; height:34px; border:1px solid rgba(255,255,255,.35); transition: width .2s, height .2s, border-color .2s, transform .05s linear; }
@media (hover:none), (pointer:coarse){
  .cursor-dot, .cursor-ring{ display:none; }
  body{ cursor:auto; }
}

/* ===== Preloader ===== */
.preloader{
  position: fixed; inset:0; z-index: 10000;
  background: var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
}
.preloader-logo{
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size: clamp(28px,5vw,44px);
  letter-spacing:.08em; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.preloader-bar{ width:220px; height:2px; background: rgba(255,255,255,.1); border-radius:2px; overflow:hidden; }
.preloader-bar span{ display:block; height:100%; width:0%; background: var(--grad); }

/* ===== Texture overlays ===== */
.noise{
  position:fixed; inset:0; z-index: 2; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-overlay{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.35;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ===== Buttons ===== */
.btn{
  position:relative; display:inline-flex; align-items:center; gap:10px;
  padding:15px 28px; border-radius:100px; font-weight:600; font-size:15px;
  border:1px solid transparent; overflow:hidden; isolation:isolate;
}
.btn span{ position:relative; z-index:2; display:inline-flex; align-items:center; gap:8px; }
.btn-primary{ color:#0a0a12; background: var(--grad); background-size:200% 200%; }
.btn-primary:hover{ animation: grad-shift 2.4s ease infinite; }
@keyframes grad-shift{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.btn-ghost{ color:var(--text); border-color: var(--border); background: rgba(255,255,255,.02); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.btn-ghost:hover{ border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.btn-ghost svg{ transition: transform .3s var(--ease); }
.btn-ghost:hover svg{ transform: translateX(4px); }
.btn-lg{ padding:19px 36px; font-size:16px; }
.btn-small{ padding:10px 20px; font-size:13px; }

/* ===== Header ===== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  padding: 18px 0; transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(6,8,28,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 12px 0; border-color: var(--glass-border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; letter-spacing:.02em;
  background: linear-gradient(120deg, #B9C2FF, var(--accent) 60%, var(--accent-3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.logo span{ -webkit-text-fill-color: var(--accent-2); color: var(--accent-2); }
.main-nav{ display:flex; gap:32px; }
.main-nav a{ font-size:14px; color: var(--muted); position:relative; padding:4px 0; transition: color .25s; }
.main-nav a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--grad); transition: width .3s var(--ease); }
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover::after{ width:100%; }
.header-cta{ white-space:nowrap; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle span{ width:22px; height:2px; background:var(--text); border-radius:2px; }

/* ===== Hero ===== */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:center;
  padding: 140px 0 80px; overflow:hidden;
}
#particles{ position:absolute; inset:0; z-index:0; opacity:.6; }
.hero-glow{ position:absolute; border-radius:50%; filter: blur(90px); z-index:0; opacity:.55; }
.glow-1{ width:520px; height:520px; background: var(--accent); top:-160px; left:-120px; }
.glow-2{ width:460px; height:460px; background: var(--accent-2); bottom:-180px; right:-100px; }
.glow-3{ width:340px; height:340px; background: var(--accent-3); top:40%; left:60%; opacity:.3; }
.hero-inner{ position:relative; z-index:2; max-width:900px; }
.hero-tag{
  display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:100px;
  border:1px solid var(--border); background: rgba(255,255,255,.03); font-size:13px; color:var(--muted); margin-bottom:28px;
}
.dot-pulse{ width:7px; height:7px; border-radius:50%; background: var(--accent-3); box-shadow:0 0 0 0 rgba(79,216,255,.6); animation: pulse 1.8s infinite; }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(79,216,255,.55)} 70%{box-shadow:0 0 0 10px rgba(79,216,255,0)} 100%{box-shadow:0 0 0 0 rgba(79,216,255,0)} }
.hero-title{ font-size: clamp(40px, 6.4vw, 82px); font-weight:700; margin-bottom:28px; }
.hero-title .line{ display:block; overflow:hidden; }
.hero-sub{ font-size: clamp(16px,1.6vw,19px); color: var(--muted); max-width:620px; margin-bottom:40px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:64px; }
.hero-stats{ display:flex; gap:48px; flex-wrap:wrap; }
.hero-stat{ display:flex; flex-direction:column; }
.hero-stat strong{ font-family:'Space Grotesk',sans-serif; font-size:32px; font-weight:700; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stat span{ font-size:13px; color:var(--muted); margin-top:4px; }

.scroll-cue{ position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px; }
.scroll-cue span{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); }
.scroll-cue-line{ width:1px; height:44px; background: rgba(255,255,255,.15); overflow:hidden; }
.scroll-cue-line i{ display:block; width:100%; height:16px; background: var(--grad); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue{ 0%{ transform: translateY(-20px);} 100%{ transform: translateY(44px);} }

/* ===== Marquee ===== */
.marquee-wrap{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: var(--bg-alt); padding: 22px 0; position:relative; z-index:2; }
.marquee{ overflow:hidden; display:flex; }
.marquee-track{ display:flex; align-items:center; gap:28px; white-space:nowrap; flex-shrink:0; padding-right:28px; will-change: transform; }
.marquee-track span{ font-family:'Space Grotesk',sans-serif; font-size: clamp(18px,2.4vw,26px); font-weight:600; color: var(--muted); }
.marquee-track i{ color: var(--accent-2); font-style:normal; font-size:14px; }

/* ===== Section shared ===== */
section{ position:relative; z-index:2; }
.services, .work, .process, .testimonials{ padding: 130px 0; }
.section-head{ max-width:640px; margin-bottom:64px; }
.eyebrow{ display:inline-block; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color: var(--accent-3); margin-bottom:16px; font-weight:600; }
.section-head h2{ font-size: clamp(30px,4vw,46px); font-weight:700; }

/* ===== Services ===== */
.service-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.service-card{
  position:relative; padding:34px 28px; border-radius: var(--radius); border:1px solid var(--glass-border);
  background: var(--glass-bg); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  overflow:hidden;
}
.service-card::before{
  content:''; position:absolute; inset:0; opacity:0; background: var(--grad-soft); transition: opacity .4s var(--ease);
}
.service-card:hover{ transform: translateY(-8px); border-color: rgba(255,255,255,.2); }
.service-card:hover::before{ opacity:1; }
.card-lg{ grid-column: span 2; }
.service-icon{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06); border:1px solid var(--glass-border); color: var(--accent-3); margin-bottom:24px; position:relative; z-index:1;
}
.service-icon svg{ width:24px; height:24px; }
.service-card h3{ font-size:21px; margin-bottom:12px; position:relative; z-index:1; }
.service-card p{ color: var(--muted); font-size:14.5px; line-height:1.65; position:relative; z-index:1; }
.service-num{ position:absolute; top:24px; right:28px; font-family:'Space Grotesk',sans-serif; font-size:13px; color: rgba(255,255,255,.25); }

/* ===== Stats band ===== */
.stats-band{ padding: 90px 0; background: var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.stats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; text-align:center; }
.stat-item strong{ font-family:'Space Grotesk',sans-serif; font-size: clamp(34px,4vw,54px); font-weight:700; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-item small{ font-size:22px; color: var(--accent-2); }
.stat-item span{ display:block; margin-top:8px; color: var(--muted); font-size:14px; }

/* ===== Work ===== */
.work-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.work-card{ position:relative; border-radius: var(--radius); overflow:hidden; aspect-ratio: 4/5; display:block; }
.work-card.span-2{ grid-column: span 2; aspect-ratio: 16/9; }
.work-card img{ width:100%; height:100%; object-fit:cover; transition: transform .7s var(--ease); }
.work-card:hover img{ transform: scale(1.08); }
.work-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding:26px;
  background: linear-gradient(0deg, rgba(4,4,10,.9) 0%, rgba(4,4,10,.15) 55%, transparent 100%);
}
.work-tag{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color: var(--accent-3); margin-bottom:8px; }
.work-overlay h3{ font-size: clamp(18px,2vw,24px); font-weight:600; }

/* ===== Process ===== */
.process{ padding:0; background: var(--bg-alt); }
.process-sticky{ padding: 110px 0 0; }
.process-track{
  position:relative; display:flex; gap:24px; padding: 0 28px 100px; overflow-x: hidden;
}
.process-panel{
  flex: 0 0 min(420px, 82vw); padding: 44px 36px; border-radius: var(--radius);
  border:1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  min-height: 320px; display:flex; flex-direction:column; justify-content:flex-end;
}
.process-num{ font-family:'Space Grotesk',sans-serif; font-size:15px; color: var(--accent-2); margin-bottom:20px; }
.process-panel h3{ font-size:26px; margin-bottom:14px; }
.process-panel p{ color: var(--muted); font-size:15px; line-height:1.6; }

/* ===== Testimonials ===== */
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.testi-card{
  margin:0; padding:32px 28px; border-radius: var(--radius); border:1px solid var(--glass-border);
  background: var(--glass-bg); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display:flex; flex-direction:column; gap:24px; justify-content:space-between;
}
.testi-card p{ font-size:15.5px; line-height:1.7; color: var(--text); }
.testi-card footer{ display:flex; flex-direction:column; gap:2px; }
.testi-card strong{ font-size:14.5px; }
.testi-card span{ font-size:13px; color: var(--muted); }

/* ===== CTA ===== */
.cta{ padding: 140px 0; text-align:center; position:relative; overflow:hidden; }
.cta-inner{ position:relative; z-index:2; max-width:680px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:26px; }
.cta h2{ font-size: clamp(32px,4.6vw,52px); }
.cta p{ color: var(--muted); font-size:17px; }
.cta-buttons{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.contact-form{
  width:100%; margin-top:20px; padding:32px; text-align:left; display:flex; flex-direction:column; gap:16px;
  border-radius: var(--radius); border:1px solid var(--glass-border); background: var(--glass-bg);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.contact-form h3{ font-size:20px; margin-bottom:4px; }
.contact-form .form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.contact-form label{ display:flex; flex-direction:column; gap:8px; font-size:13px; color: var(--muted); }
.contact-form input, .contact-form textarea{
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text); font:inherit; font-size:15px; resize:vertical;
  transition: border-color .25s, background .25s;
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color: var(--accent-3); background: rgba(255,255,255,.07); }
.contact-form .btn{ align-self:flex-start; cursor:pointer; }
.contact-form .hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status{ font-size:14px; min-height:20px; }
.form-status.ok{ color:#4ade80; }
.form-status.err{ color:#f87171; }
.wa-float{
  position:fixed; right:20px; bottom:20px; z-index:90; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:#25D366; color:#fff;
  box-shadow:0 8px 24px rgba(37,211,102,.4); transition: transform .3s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width:30px; height:30px; }
.cta-glow{ position:absolute; width:800px; height:800px; background: var(--grad); opacity:.18; filter: blur(140px); border-radius:50%; top:50%; left:50%; transform: translate(-50%,-50%); z-index:1; }

/* ===== Footer ===== */
.site-footer{ background: var(--bg-alt); border-top:1px solid var(--border); padding: 80px 0 0; }
.footer-inner{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap:40px; padding-bottom:60px; }
.footer-brand p{ color: var(--muted); font-size:14px; margin-top:14px; max-width:260px; line-height:1.6; }
.footer-col h4{ font-size:14px; margin-bottom:18px; color: var(--text); }
.footer-col{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ color: var(--muted); font-size:14px; transition: color .25s; }
.footer-col a:hover{ color: var(--text); }
.footer-social{ display:flex; gap:10px; margin-top:6px; }
.footer-social a{ width:34px; height:34px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:11px; }
.footer-bottom{ border-top:1px solid var(--border); padding:22px 28px; font-size:13px; color: var(--muted); }

/* ===== Reveal base (JS controlled) ===== */
[data-reveal]{ opacity:0; transform: translateY(34px); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .main-nav{ display:none; }
  .main-nav.open{
    position:fixed; top:64px; left:16px; right:16px; flex-direction:column; gap:0;
    background: rgba(10,10,18,.96); border:1px solid var(--border); border-radius:16px;
    padding:10px 20px; backdrop-filter: blur(14px);
  }
  .main-nav.open a{ padding:14px 0; border-bottom:1px solid var(--border); }
  .main-nav.open a:last-child{ border-bottom:0; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .service-grid{ grid-template-columns: repeat(2,1fr); }
  .card-lg{ grid-column: span 2; }
  .work-grid{ grid-template-columns: repeat(2,1fr); }
  .work-card.span-2{ grid-column: span 2; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); gap:36px; }
  .testi-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-height: 820px){
  .scroll-cue{ display:none; }
}
@media (max-width: 900px){
  .process-sticky{ padding: 80px 0 0; }
  .process-track{ flex-direction:column; padding: 0 20px 80px; overflow:visible; }
  .process-panel{ flex: 0 0 auto; width:100%; min-height:0; padding: 32px 26px; justify-content:flex-start; }
}
@media (max-width: 640px){
  .contact-form{ padding:24px 18px; }
  .contact-form .form-row{ grid-template-columns:1fr; }
  .contact-form .btn{ align-self:stretch; justify-content:center; }
  .cta-buttons .btn{ width:100%; justify-content:center; }
  .service-grid{ grid-template-columns: 1fr; }
  .card-lg{ grid-column: span 1; }
  .work-grid{ grid-template-columns: 1fr; }
  .work-card.span-2{ grid-column: span 1; aspect-ratio:4/5; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .hero-stats{ gap:28px; }
  .footer-inner{ grid-template-columns: 1fr; }
  cursor: auto;
}

/* Language switcher */
.lang-switch{ display:flex; gap:2px; padding:3px; border:1px solid var(--border); border-radius:999px; margin-left:auto; margin-right:14px; }
.lang-switch button{ background:none; border:0; color:var(--muted); font:600 12px/1 'Inter',sans-serif; letter-spacing:.06em; padding:7px 11px; border-radius:999px; cursor:pointer; transition: background .25s, color .25s; }
.lang-switch button:hover{ color:var(--text); }
.lang-switch button.active{ background:var(--text); color:var(--bg, #0a0a0f); }
@media (max-width: 980px){ .lang-switch{ margin-right:10px; } }
