:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --surface: #151a22;
  --surface-2: #1b2230;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --accent: #2e80ff;
  --accent-2: #00c2ff;
  --accent-grad: linear-gradient(120deg, #2e80ff, #00c2ff);
  --radius: 16px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-note { color: var(--muted); margin-top: 0.8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  will-change: transform;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px var(--accent); }
.btn-ghost { background: rgba(255,255,255,0.06); border-color: var(--line); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent-grad); z-index: 1000; transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding: 1.1rem 0; transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
  /* subtle scrim so the logo and nav stay legible over a bright hero */
  background: linear-gradient(180deg, rgba(8,10,14,0.62) 0%, rgba(8,10,14,0.28) 55%, transparent 100%);
}
.site-header.scrolled {
  background: rgba(10,12,16,0.82); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); padding: 0.6rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 58px; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand-logo { height: 32px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.86); text-shadow: 0 1px 3px rgba(0,0,0,0.35); transition: color 0.25s; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent-grad); transition: width 0.3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover:not(.nav-cta)::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.2rem; border-radius: 999px; background: var(--accent-grad); color: #fff !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -12% 0 0 0; z-index: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 124%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.35) 40%, rgba(10,12,16,0.95) 100%),
    radial-gradient(60% 60% at 20% 50%, rgba(46,128,255,0.18), transparent 70%);
}
.hero-content { position: relative; z-index: 2; padding: 8rem 0 6rem; }
.hero-title { font-size: clamp(2.8rem, 8vw, 6rem); margin-bottom: 1.4rem; }
.hero-sub { max-width: 540px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d4dae4; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-badges { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-badges span {
  font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted);
  padding-left: 1.1rem; position: relative;
}
.hero-badges span::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent-grad); padding: 0.85rem 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 2rem; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.marquee i { color: rgba(255,255,255,0.6); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.8s var(--ease); }
.about-media:hover img { transform: scale(1.05); }
.about-media-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; background: rgba(10,12,16,0.78);
  backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1.2rem; display: flex; flex-direction: column; line-height: 1.1;
}
.about-media-badge strong { font-family: "Sora"; font-size: 1.8rem; color: var(--accent-2); }
.about-media-badge span { font-size: 0.8rem; color: var(--muted); }
.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text strong { color: var(--text); }
.check-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: #cfd6e2; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem;
  background: var(--accent-grad); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2.5rem, 5vw, 3.6rem) 1rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: "Sora"; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Clients ---------- */
.clients { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.clients-title { text-align: center; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--muted); margin-bottom: 2.2rem; }
.clients-row { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.client-chip {
  background: #fff; border-radius: 14px; padding: 1rem 1.6rem;
  height: 88px; min-width: 168px; display: grid; place-items: center;
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.client-chip:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -20px rgba(46,128,255,0.55); }
.client-chip img { max-height: 50px; max-width: 140px; width: auto; object-fit: contain; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.card:hover { border-color: rgba(46,128,255,0.5); box-shadow: 0 24px 50px -24px rgba(46,128,255,0.5); }
.card-icon {
  width: 56px; height: 56px; border-radius: 15px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  background: rgba(46, 128, 255, 0.12);
  border: 1px solid rgba(46, 128, 255, 0.28);
  color: var(--accent-2);
  transform: translateZ(40px);
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s;
}
.card-icon svg { width: 27px; height: 27px; }
.card:hover .card-icon { background: var(--accent-grad); border-color: transparent; color: #fff; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.cta-bg { position: absolute; inset: -15% 0; z-index: 0; will-change: transform; }
.cta-bg img { width: 100%; height: 130%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,0.82), rgba(10,12,16,0.88)); z-index: 1; }
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.cta-inner p { color: #d4dae4; max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; filter: saturate(0.9); }
.gallery-item::after { content: "↗"; position: absolute; top: 0.7rem; right: 0.9rem; color: #fff; opacity: 0; transform: translateY(-6px); transition: 0.3s var(--ease); font-size: 1.2rem; }
.gallery-item:hover img { transform: scale(1.12); filter: saturate(1.1); }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { padding: 2rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); position: relative; overflow: hidden; }
.step-num { font-family: "Sora"; font-weight: 800; font-size: 2.4rem; color: transparent; -webkit-text-stroke: 1.5px rgba(46,128,255,0.5); display: block; margin-bottom: 0.8rem; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; width: 0; background: var(--accent-grad); transition: width 0.5s var(--ease); }
.step:hover::before { width: 100%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--accent-2); }
.contact-list .ci svg { width: 21px; height: 21px; }
.contact-list a:hover { color: var(--accent-2); }
.contact-list small, .contact-list .muted { color: var(--muted); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.3rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.1rem 1rem 0.5rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 0.98rem; resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { padding-top: 1.4rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,128,255,0.18); }
.field label { position: absolute; left: 1rem; top: 0.95rem; color: var(--muted); font-size: 0.95rem; pointer-events: none; transition: 0.2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0.35rem; font-size: 0.7rem; color: var(--accent-2);
}
.contact-form .btn { justify-self: start; }
.form-status { font-size: 0.9rem; color: var(--accent-2); min-height: 1.2em; }
.form-status.error { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer-brand img { height: 36px; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 0.92rem; }
.footer-meta { text-align: right; font-size: 0.9rem; }
.footer-meta a:hover { color: var(--accent-2); }
.footer-meta .muted { color: var(--muted); margin-top: 0.4rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(5,7,10,0.94); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.lightbox.open { display: flex; opacity: 1; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background 0.25s; }
.lb-close { top: 1.5rem; right: 1.5rem; width: 46px; height: 46px; font-size: 1.6rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lb-prev { left: 1.5rem; } .lb-next { right: 1.5rem; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); flex-direction: column; justify-content: center; gap: 1.8rem; background: rgba(15,18,24,0.98); backdrop-filter: blur(16px); transform: translateX(100%); transition: transform 0.4s var(--ease); border-left: 1px solid var(--line); }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 950; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .footer-inner, .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .cards, .steps, .gallery, .stats-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stat { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .wheel { animation: none; }
  html { scroll-behavior: auto; }
}
