/* ============================================================
   modernOS — landing page styles
   Design system: dark, premium, indigo→cyan accent
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #07070b;
  --bg-soft: #0d0d14;
  --surface: #12121c;
  --surface-2: #181826;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f4f8;
  --text-muted: #a2a2b5;
  --text-dim: #6f6f85;

  --accent: #7c5cff;
  --accent-2: #19d3e6;
  --accent-grad: linear-gradient(120deg, #7c5cff 0%, #19d3e6 100%);
  --accent-soft: rgba(124, 92, 255, 0.14);

  --success: #34d399;
  --danger: #fb7185;

  /* Spacing / radius */
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(124, 92, 255, 0.5);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(25, 211, 230, 0.12), transparent 60%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #07070b;
  box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(124, 92, 255, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #07070b;
  font-weight: 800;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(70px, 10vw, 130px) clamp(50px, 7vw, 90px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  max-width: 880px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.hero .lead {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 14px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.check {
  color: var(--success);
  font-weight: 700;
}

/* ---------- Channels strip ---------- */
.channels {
  padding-block: 40px;
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.channels-label {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

.card .stat {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 600;
}

/* ---------- Comparison ---------- */
.compare {
  background: var(--bg-soft);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
}

.compare-col.win {
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), var(--surface));
  box-shadow: var(--shadow);
}

.compare-col h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-list {
  list-style: none;
  display: grid;
  gap: 13px;
}

.compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
}

.compare-list .mark {
  flex-shrink: 0;
  font-weight: 700;
}

.win .mark {
  color: var(--success);
}

.lose .mark {
  color: var(--danger);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #07070b;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote p {
  font-size: 15px;
  color: var(--text);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #07070b;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quote-author strong {
  display: block;
  font-size: 14px;
}

.quote-author span {
  font-size: 13px;
  color: var(--text-dim);
}

.placeholder-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 28px;
  font-style: italic;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), var(--surface));
  box-shadow: var(--shadow);
}

.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.plan h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.plan .price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.plan .price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
}

.plan .capacity {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 24px;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.plan li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(25, 211, 230, 0.1));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.cta-card h2 {
  max-width: 640px;
  margin-inline: auto;
}

.cta-card .lead {
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 50px 36px;
  background: var(--bg-soft);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 14px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

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

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-4,
  .steps,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav .nav-actions .btn-nav-cta {
    display: none;
  }
  .grid-3,
  .grid-4,
  .grid-2,
  .steps,
  .plans,
  .compare-grid,
  .footer-top {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
