:root {
  --bg: #0b0d1f;
  --bg-2: #13163a;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef0ff;
  --muted: #a3a8d1;
  --accent: #b388ff;
  --accent-2: #5ce1e6;
  --radius: 18px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 60%) fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Starfield */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff8, transparent),
    radial-gradient(1px 1px at 30% 70%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 50% 40%, #fffa, transparent),
    radial-gradient(1px 1px at 70% 80%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, #fff9, transparent),
    radial-gradient(1px 1px at 20% 90%, #fff5, transparent),
    radial-gradient(1px 1px at 90% 60%, #fff6, transparent);
  background-size: 600px 600px;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 600px 600px; } }

/* Nav */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 31, 0.7);
  border-bottom: 1px solid var(--border);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 18px;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text); background: var(--card);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255,255,255,.1); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #7c4dff); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, #c39bff, #8c62ff); }
.btn small { display: block; font-size: .7rem; font-weight: 400; opacity: .8; line-height: 1.1; }
.btn span { line-height: 1.2; text-align: left; }

/* Hero */
.hero { padding: 140px 0 120px; }
.hero-inner { max-width: 820px; text-align: center; }
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(179, 136, 255, .15); color: var(--accent); font-size: .85rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.1; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 36px; }

/* Sections */
section { padding: 88px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.section-title p { color: var(--muted); max-width: 600px; margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(179, 136, 255, .4); }
.card .icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--muted); }

.contact {
  text-align: center; border-radius: 28px; padding: 64px 32px;
  background: linear-gradient(135deg, rgba(179,136,255,.18), rgba(92,225,230,.12));
  border: 1px solid var(--border);
}
.contact h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.contact p { color: var(--muted); margin-bottom: 28px; }

footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { padding: 88px 0 64px; }
  .features { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 4%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
