:root {
  --bg: #0b0e14;
  --bg-alt: #0f1320;
  --card: #141a29;
  --card-hover: #19213a;
  --border: #232b42;
  --text: #e8ecf5;
  --muted: #9aa4bd;
  --accent: #6c5ce7;
  --accent-2: #8b7bff;
  --accent-soft: rgba(108, 92, 231, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

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

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

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

.accent { color: var(--accent-2); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
}
.brand-text { color: var(--text); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600 !important;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.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; padding: 96px 0 80px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-glow {
  position: absolute; z-index: 1; top: -160px; right: -120px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.30) 0%, rgba(108, 92, 231, 0) 68%);
  filter: blur(10px); pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid rgba(108, 92, 231, 0.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.lead { margin-top: 20px; font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--muted); max-width: 620px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 54px; list-style: none; display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  cursor: pointer; border: 1px solid transparent; transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(108, 92, 231, 0.35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; max-width: 620px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }

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

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(108, 92, 231, 0.55); background: var(--card-hover); }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.app-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.app-card:hover { transform: translateY(-5px); border-color: rgba(108, 92, 231, 0.55); background: var(--card-hover); }
.app-icon {
  width: 68px; height: 68px; border-radius: 16px; object-fit: cover; margin-bottom: 14px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.app-card h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.app-card p { font-size: 0.82rem; color: var(--muted); margin-top: 7px; }
.app-card .app-link { margin-top: 12px; font-size: 0.8rem; font-weight: 600; color: var(--accent-2); }
.apps-more { text-align: center; margin-top: 40px; }

/* ---------- Why ---------- */
.grid-4 .stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
}
.stat-card strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--accent-2); letter-spacing: -0.02em; }
.stat-card span { font-size: 0.88rem; color: var(--muted); }
.checklist { list-style: none; margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); font-size: 0.96rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); border-radius: 50%;
  font-size: 0.72rem; font-weight: 800;
}

/* ---------- About ---------- */
.about-text { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.contact-item:hover { transform: translateY(-4px); border-color: rgba(108, 92, 231, 0.55); background: var(--card-hover); }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.contact-value { font-size: 1rem; font-weight: 600; color: var(--text); word-break: break-word; }
.contact-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 46px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-size: 1.05rem; }
.footer-brand p { font-size: 0.86rem; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent-2); }
.copyright { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.copyright p { font-size: 0.84rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 14, 20, 0.98); border-bottom: 1px solid var(--border);
    padding: 10px 22px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .footer-links { align-items: flex-start; }
}
@media (max-width: 460px) {
  .grid-3, .grid-4, .apps-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 60px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
