/* ============================================================
   SplitDash static website — premium Apple-style dark design
   System fonts, inline SVG icons, no external assets/CDN.
   ============================================================ */

:root {
  --bg: #0a0a0e;
  --bg-2: #101017;
  --surface: rgba(28, 28, 35, 0.66);
  --surface-solid: #1b1b23;
  --surface-hover: rgba(38, 38, 46, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f5f7;
  --text-2: #a6a6af;
  --text-3: #71717a;
  --accent: #ff3b30;
  --accent-2: #ff9500;
  --gradient: linear-gradient(135deg, #ff3b30 0%, #ff6b3a 55%, #ff9500 100%);
  --green: #30d158;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.38);
  --shadow-cta: 0 10px 28px rgba(255, 59, 48, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(255, 59, 48, 0.28); color: #fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ------------------------------ Nav ------------------------------ */

nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
  color: var(--text); text-decoration: none;
}

.brand::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.55);
}

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

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 0.92rem;
  padding: 8px 13px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  padding: 104px 0 72px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  width: 520px; height: 520px; top: -220px; left: 50%; transform: translateX(-70%);
  background: radial-gradient(circle, rgba(255, 59, 48, 0.20), transparent 65%);
}

.hero::after {
  width: 460px; height: 460px; top: -160px; right: 50%; transform: translateX(70%);
  background: radial-gradient(circle, rgba(255, 149, 0, 0.16), transparent 65%);
}

.hero .container { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.84rem; margin-bottom: 26px;
}

.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 1.1; margin: 0 0 20px;
  letter-spacing: -0.025em; font-weight: 800;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-2); max-width: 640px; margin: 0 auto 34px;
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.trust-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}

.trust-chip {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-3); font-size: 0.82rem;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.trust-chip svg { width: 14px; height: 14px; color: var(--green); }

/* ------------------------------ Buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 59, 48, 0.36); }

.btn-secondary {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover { background: var(--surface-hover); transform: translateY(-2px); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ------------------------------ Sections ------------------------------ */

section { padding: 64px 0; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin: 0 0 10px; letter-spacing: -0.02em; font-weight: 700;
}

.section-sub { color: var(--text-2); margin: 0 0 36px; max-width: 620px; }

/* ------------------------------ Feature grid ------------------------------ */

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

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

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}

.card .icon-tile {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.16), rgba(255, 149, 0, 0.16));
  border: 1px solid rgba(255, 149, 0, 0.18);
  margin-bottom: 18px;
}

.card .icon-tile svg { width: 23px; height: 23px; color: #ff8a5c; }

.card h3 { margin: 0 0 9px; font-size: 1.08rem; letter-spacing: -0.01em; }

.card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ------------------------------ Comparison table ------------------------------ */

.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow-x: auto; background: var(--surface);
}

.table-wrap table { min-width: 560px; }

table { width: 100%; border-collapse: collapse; }

th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }

th {
  color: var(--text-3); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

td.col-pro, th.col-pro {
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.08), rgba(255, 149, 0, 0.05));
}

.check { color: var(--green); font-weight: 600; }
.cross { color: var(--text-3); }

/* ------------------------------ Pricing ------------------------------ */

.pricing-card {
  max-width: 480px; margin: 0 auto; position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 26px; padding: 38px 34px; text-align: center;
  box-shadow: var(--shadow-card);
}

.pricing-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 26px;
  background: var(--gradient); opacity: 0.25; z-index: -1;
}

.pricing-card h3 { margin: 0 0 6px; font-size: 1.25rem; }

.price { font-size: 2.6rem; font-weight: 800; margin: 12px 0; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; color: var(--text-2); font-weight: 500; letter-spacing: 0; }

.check-list { list-style: none; text-align: left; margin: 26px 0 30px; padding: 0; display: grid; gap: 13px; }

.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 0.97rem; }

.check-list li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ------------------------------ FAQ ------------------------------ */

.faq-list { display: grid; gap: 12px; }

.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px;
  transition: border-color 0.2s;
}

.faq details[open] { border-color: var(--border-strong); }

.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg); transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(225deg); }

.faq p { color: var(--text-2); margin: 13px 0 0; }

/* ------------------------------ Legal / support pages ------------------------------ */

.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }

.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.3rem); margin-bottom: 6px; letter-spacing: -0.02em; }

.legal h2 { margin-top: 36px; font-size: 1.22rem; letter-spacing: -0.01em; }

.legal h3 { margin-top: 24px; font-size: 1.02rem; }

.legal .meta { color: var(--text-3); font-size: 0.86rem; margin-bottom: 26px; }

.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }

.legal ul { padding-left: 20px; display: grid; gap: 10px; }

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

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gradient);
  border-radius: var(--radius-md); padding: 20px 24px; margin: 18px 0;
}

.help-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 14px;
}

.help-item h3 { margin-top: 0; }
.help-item p { margin-bottom: 0; }

.contact-card {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; margin-top: 10px;
}

/* ------------------------------ Footer ------------------------------ */

footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 48px; }

.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  color: var(--text-3); font-size: 0.88rem; align-items: center;
}

.footer-inner .tagline { color: var(--text-3); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-inner a { color: var(--text-2); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 44px; }
  .grid { grid-template-columns: 1fr; }
  .nav-inner {
    height: auto; flex-wrap: wrap; gap: 6px;
    padding: 10px 0; align-items: center;
  }
  .brand { font-size: 1.05rem; }
  .nav-links { flex-wrap: wrap; justify-content: flex-start; gap: 2px; width: 100%; }
  .nav-links a { padding: 6px 9px; font-size: 0.82rem; }
  section { padding: 44px 0; }
  th, td { padding: 13px 14px; }
  .pricing-card { padding: 30px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
