/* ---------- Reset & tokens ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05060c;
  --bg-soft: #0a0d1a;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --text: #eef0fb;
  --text-dim: #9aa0c2;
  --text-faint: #6b7195;

  --violet: #7C6CFF;
  --cyan: #33D2FF;
  --pink: #FF9DEE;

  --grad: linear-gradient(135deg, var(--violet), var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(124,108,255,0.18), rgba(51,210,255,0.18));

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

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

/* ---------- Starfield background ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #14183a 0%, var(--bg) 55%);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--grad);
  color: #05060c;
  box-shadow: 0 10px 30px -8px rgba(124,108,255,0.55);
}
.btn--primary:hover { box-shadow: 0 14px 38px -6px rgba(124,108,255,0.7); }

.btn--outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: var(--surface-strong); border-color: rgba(255,255,255,0.2); }

.btn--ghost { color: var(--text-dim); padding: 12px 14px; }
.btn--ghost:hover { color: var(--text); transform: none; }

.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--full { width: 100%; margin-top: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5,6,12,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-color: var(--border); background: rgba(5,6,12,0.8); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.nav__links { display: flex; gap: 28px; margin-left: 12px; flex: 1; }
.nav__links a { color: var(--text-dim); font-size: 0.94rem; font-weight: 500; transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }

.hero__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.hero__glow--a { background: var(--violet); top: -220px; left: -160px; }
.hero__glow--b { background: var(--cyan); top: -120px; right: -220px; opacity: 0.25; }

.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.hero__meta { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 64px; }

/* ---------- Mockup ---------- */
.hero__mockup { position: relative; width: 100%; max-width: 980px; }

.mockup {
  background: linear-gradient(180deg, rgba(20,24,52,0.9), rgba(10,13,26,0.95));
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
  text-align: left;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f56; }
.dot--y { background: #ffbd2e; }
.dot--g { background: #27c93f; }
.mockup__url {
  margin-left: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 8px;
}

.mockup__body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }

.mockup__side {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side__compose {
  display: flex; align-items: center; gap: 8px;
  background: var(--grad);
  color: #05060c;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.side__item {
  display: flex; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.side__item span { color: var(--text-faint); font-size: 0.75rem; }
.side__item--active { background: var(--surface-strong); color: var(--text); }
.side__divider { height: 1px; background: var(--border); margin: 10px 0; }
.side__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 4px 10px 6px; }
.tag { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 8px; }
.tag--violet { background: var(--violet); }
.tag--cyan { background: var(--cyan); }
.tag--pink { background: var(--pink); }

.mockup__list { padding: 6px; }
.mail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.mail-row:hover { background: rgba(255,255,255,0.03); }
.mail-row--unread { background: rgba(124,108,255,0.06); }
.mail-row--unread .mail-row__text b { color: var(--text); }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700;
  color: #05060c;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

.mail-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-row__text b { font-size: 0.88rem; color: var(--text-dim); font-weight: 600; }
.mail-row__text span { font-size: 0.82rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row time { font-size: 0.75rem; color: var(--text-faint); flex-shrink: 0; }

.floaty {
  position: absolute;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
  animation: float 5s ease-in-out infinite;
}
.floaty--1 { top: -18px; right: -10px; animation-delay: 0.3s; }
.floaty--2 { bottom: 40px; left: -24px; animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ---------- Logos ---------- */
.logos { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos__label { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-bottom: 26px; }
.logos__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* ---------- Section shared ---------- */
section { padding: 120px 0; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

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

/* ---------- Feature cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); background: var(--surface-strong); }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--from) 25%, transparent), color-mix(in srgb, var(--to) 25%, transparent));
  color: var(--text);
  border: 1px solid var(--border);
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Stats ---------- */
.stats { padding: 80px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat__num, .stat__suffix {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { color: var(--text-dim); margin-top: 8px; font-size: 0.92rem; }

/* ---------- Security ---------- */
.security__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.security__visual { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.orbit-ring { position: absolute; border: 1px dashed rgba(255,255,255,0.14); border-radius: 50%; }
.orbit-ring--1 { width: 260px; height: 260px; animation: spin 22s linear infinite; }
.orbit-ring--2 { width: 360px; height: 360px; animation: spin 34s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(124,108,255,0.35);
}

.orbit-chip {
  position: absolute;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.orbit-chip--1 { top: 8%; left: 8%; }
.orbit-chip--2 { bottom: 12%; right: 4%; }
.orbit-chip--3 { bottom: 8%; left: 14%; }

.security__copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.security__copy p { color: var(--text-dim); margin-bottom: 26px; font-size: 1.02rem; }

.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dim); margin-bottom: 14px; font-size: 0.96rem; }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Pricing ---------- */
.pricing__grid { align-items: stretch; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.plan:hover { transform: translateY(-6px); }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan__desc { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 22px; }
.plan__price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin-bottom: 26px; }
.plan__price span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price small { font-size: 0.9rem; color: var(--text-faint); font-family: var(--font-body); font-weight: 400; }

.plan__list { flex: 1; margin-bottom: 28px; }
.plan__list li { padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--text-dim); font-size: 0.92rem; }
.plan__list li:last-child { border-bottom: none; }

.plan--featured {
  background: linear-gradient(180deg, rgba(124,108,255,0.12), rgba(51,210,255,0.05));
  border-color: rgba(124,108,255,0.4);
  box-shadow: 0 30px 60px -20px rgba(124,108,255,0.35);
}
.plan__tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #05060c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote p { color: var(--text); font-size: 1rem; line-height: 1.6; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote footer b { display: block; font-size: 0.92rem; }
.quote footer small { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 780px; }
.accordion details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { color: var(--text-faint); font-size: 1.3rem; transition: transform 0.25s ease; }
.accordion details[open] summary span { transform: rotate(45deg); color: var(--cyan); }
.accordion details p { color: var(--text-dim); margin-top: 14px; font-size: 0.96rem; max-width: 640px; }

/* ---------- CTA ---------- */
.cta { padding: 100px 0; }
.cta__inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(124,108,255,0.15), rgba(51,210,255,0.08));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 70px 40px;
}
.cta__inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta__inner p { color: var(--text-dim); margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-top: 64px; background: var(--bg-soft); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
.footer__brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 14px; max-width: 220px; }
.footer__col h4 { font-size: 0.85rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 12px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { color: var(--text-faint); transition: color 0.2s ease; }
.footer__socials a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .security__inner { grid-template-columns: 1fr; }
  .security__visual { order: -1; height: 300px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5,6,12,0.97);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav__links--open { max-height: 260px; }
  .nav__actions .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger--open span:nth-child(2) { opacity: 0; }
  .nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3 { grid-template-columns: 1fr; }
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__side { display: none; }
  section { padding: 80px 0; }
  .hero { padding-top: 64px; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .cta__inner { padding: 48px 22px; }
  .floaty { display: none; }
}
