:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #0b0d12;
  --ink-2: #161a22;
  --text: #0b0d12;
  --muted: #5b6270;
  --line: #e6e8ec;
  --accent: #3d63ff;
  --accent-2: #8a5cff;
  --radius: 16px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9ecf3; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262b36; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open {
  background: rgba(11, 13, 18, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-color: rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo-mark { width: 28px; height: 28px; }
.logo-mark rect { fill: #fff; }
.logo-mark path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a:not(.btn) { color: rgba(255,255,255,.7); transition: color .2s; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { background: #fff; color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 168px 0 0;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 78% 30%, rgba(61, 99, 255, .35), transparent 70%),
    radial-gradient(500px 360px at 95% 80%, rgba(138, 92, 255, .22), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 28px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 4px rgba(57,217,138,.18); }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 600; margin-bottom: 24px; }
.lead { font-size: 18px; color: rgba(255,255,255,.66); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; height: 440px; }
.browser {
  position: absolute; top: 10px; left: 0; width: 88%;
  border-radius: 12px; overflow: hidden;
  background: #151923; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.browser-bar span { margin-left: 14px; height: 18px; flex: 1; max-width: 220px; border-radius: 5px; background: rgba(255,255,255,.06); }
.browser-body { padding: 32px 28px 28px; }
.sk { border-radius: 6px; background: rgba(255,255,255,.1); }
.sk-title { height: 22px; width: 70%; margin-bottom: 16px; background: rgba(255,255,255,.22); }
.sk-line { height: 10px; width: 90%; margin-bottom: 10px; }
.sk-line.short { width: 60%; }
.sk-row { display: flex; gap: 10px; margin: 22px 0 28px; }
.sk-btn { width: 92px; height: 28px; background: var(--accent); }
.sk-btn.alt { background: rgba(255,255,255,.1); }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-cards div { height: 74px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }

.phone {
  position: absolute; right: 0; bottom: 0; width: 190px; height: 380px;
  border-radius: 34px; padding: 10px;
  background: #0f1219; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 80px -10px rgba(0,0,0,.7), inset 0 0 0 4px #1b202b;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 10px; background: #000; z-index: 1; }
.phone-body {
  height: 100%; border-radius: 26px; padding: 48px 16px 16px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1a2030, #121722);
}
.sk-avatar { width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.sk-tile { height: 70px; border-radius: 12px; margin-top: 14px; background: rgba(255,255,255,.07); }
.sk-tile.alt { background: linear-gradient(135deg, rgba(61,99,255,.5), rgba(138,92,255,.4)); }
.sk-tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.06); display: flex; justify-content: space-around; align-items: center; }
.sk-tabbar i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.18); }
.sk-tabbar i:first-child { background: var(--accent); }

.platforms {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between;
  margin-top: 96px; padding: 28px 0 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px; color: rgba(255,255,255,.5); font-weight: 500;
}

/* Sections */
.section { padding: 128px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-dark .kicker { color: #8aa2ff; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; margin-bottom: 20px; }
.section-lead { font-size: 18px; color: var(--muted); }
.section-dark .section-lead { color: rgba(255,255,255,.62); }
h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { padding: 40px 36px 44px; background: #fff; transition: background .25s; }
.service + .service { border-left: 1px solid var(--line); }
.service:hover { background: var(--bg-alt); }
.service > p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 32px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.checks { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(61,99,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%233d63ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li {
  padding: 32px 28px 36px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.07);
}
.num { display: inline-block; font-family: var(--display); font-size: 14px; font-weight: 600; color: #8aa2ff; margin-bottom: 48px; }
.process p { color: rgba(255,255,255,.6); font-size: 15px; }

/* Why us */
.engagements { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.engagements .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.engagements .section-lead { margin-bottom: 36px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: #fff; padding: 36px 32px 40px; }
.value h3 { font-size: 18px; }
.value p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 26px 48px 26px 0; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s, margin-top .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 48px 28px 0; }

/* Contact */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: #fff; border-radius: 24px;
  padding: 104px 32px;
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(61,99,255,.45), transparent 70%),
    radial-gradient(400px 220px at 50% 110%, rgba(138,92,255,.25), transparent 70%);
}
.cta > *:not(.cta-glow) { position: relative; }
.cta .kicker { color: #8aa2ff; }
.cta .section-lead { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }
.cta-actions { margin-top: 40px; }

/* Footer */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.footer .logo-mark rect { fill: var(--ink); }
.footer .logo-mark path { stroke: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; }
.footer-brand p { color: var(--muted); margin-top: 14px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom a:hover { color: var(--text); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; max-width: 560px; }
  .services { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr 1fr; }
  .engagements, .faq-wrap { grid-template-columns: 1fr; gap: 56px; }
  .engagements .section-head { position: static; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px; background: rgba(11, 13, 18, .96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin-top: 18px; height: 46px; }
  .hero { padding-top: 128px; }
  .hero-visual { height: 330px; }
  .browser { width: 92%; }
  .browser-body { padding: 22px 18px; }
  .sk-cards div { height: 50px; }
  .phone { width: 140px; height: 280px; border-radius: 28px; }
  .phone-body { border-radius: 20px; padding-top: 40px; }
  .platforms { margin-top: 64px; justify-content: flex-start; gap: 10px 24px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 44px; }
  .process { grid-template-columns: 1fr; }
  .num { margin-bottom: 24px; }
  .values { grid-template-columns: 1fr; }
  .cta { padding: 72px 24px; border-radius: 20px; }
  .btn-lg { padding: 0 22px; font-size: 15px; }
  .footer-cols { gap: 40px; }
}
