/* ============ Sway9 marketing — light ============ */
:root {
  --page: #f6f9fd;
  --surface: #ffffff;
  --ink: #0d1220;
  --ink-2: #4a5468;
  --muted: #8b93a7;
  --border: rgba(13, 18, 32, 0.09);
  --border-soft: rgba(13, 18, 32, 0.06);
  --accent: #2a78d6;
  --accent-deep: #1c5cab;
  --good: #0a8f3c;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(13, 18, 32, 0.05);
  --shadow-md: 0 10px 34px rgba(24, 45, 90, 0.10);
  --shadow-lg: 0 24px 60px rgba(24, 45, 90, 0.14);
  --max: 1150px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 253, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2a78d6, #174a8c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #222a3e; box-shadow: 0 10px 26px rgba(13, 18, 32, 0.22); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(13, 18, 32, 0.05); box-shadow: none; }
.btn-sm { padding: 9px 17px; font-size: 13.5px; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; padding: 92px 0 60px; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 460px at 82% 0%, rgba(42, 120, 214, 0.13), transparent 62%),
    radial-gradient(640px 420px at 8% 30%, rgba(97, 168, 255, 0.10), transparent 60%),
    var(--page);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 500px;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; color: var(--good); }

/* hero visual — layered dashboard mock */
.hero-visual { position: relative; height: 430px; }
@media (max-width: 920px) { .hero-visual { display: none; } }
.hv-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: floaty 8s ease-in-out infinite;
}
.hv-main {
  top: 30px; left: 20px; right: 60px;
  padding: 18px 20px;
  animation-delay: -1s;
}
.hv-main .hv-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; }
.hv-main .hv-title .live { color: var(--good); font-weight: 600; font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.hv-main .hv-title .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.hv-num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.hv-spark { margin-top: 10px; width: 100%; height: 58px; }
.hv-chip {
  padding: 13px 16px;
}
.hv-chip .c-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.hv-chip .c-value { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.hv-chip .c-sub { font-size: 11.5px; color: var(--good); font-weight: 600; }
.hv-c1 { bottom: 108px; left: 0; animation-delay: -3.4s; }
.hv-c2 { bottom: 40px; left: 190px; animation-delay: -5.2s; }
.hv-phone {
  top: 0; right: 0;
  width: 138px; height: 240px;
  border-radius: 20px;
  background: linear-gradient(160deg, #1d2333, #0d1220);
  color: #fff;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation-delay: -6.1s;
}
.hv-phone .ph-cap { font-size: 11.5px; font-weight: 600; line-height: 1.45; opacity: 0.95; }
.hv-phone .ph-views {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ sections ============ */
.section { padding: 88px 0; }
.section.tight { padding-top: 40px; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 800;
}
.section .sub { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; max-width: 600px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 46px;
}
@media (max-width: 900px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.stat-card .sc-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat-card .sc-label { font-weight: 700; margin-top: 4px; font-size: 15px; }
.stat-card .sc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  margin-top: 50px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a78d6, #174a8c);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; letter-spacing: -0.01em; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 50px;
}
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature h3 { font-size: 18.5px; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 14.5px; max-width: 460px; }
.feature .glyph {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(42, 120, 214, 0.1);
  color: var(--accent);
}
.feature .glyph svg { width: 21px; height: 21px; }
.feature ul { margin-top: 14px; list-style: none; }
.feature li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 5px 0 5px 26px;
  position: relative;
}
.feature li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(10, 143, 60, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a8f3c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* comparison */
.compare {
  margin-top: 50px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td {
  padding: 15px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 13.5px; font-weight: 700; }
.compare .col-us { background: rgba(42, 120, 214, 0.06); font-weight: 600; }
.compare thead th.col-us { color: var(--accent-deep); font-weight: 800; }
.compare td.dim { color: var(--muted); }

/* CTA */
.cta-block {
  background: linear-gradient(135deg, #12203a, #0d1220);
  border-radius: 26px;
  padding: 68px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(460px 260px at 18% 0%, rgba(42, 120, 214, 0.35), transparent 60%),
    radial-gradient(520px 300px at 85% 100%, rgba(97, 168, 255, 0.2), transparent 60%);
}
.cta-block > * { position: relative; }
.cta-block h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; }
.cta-block p { margin: 14px auto 28px; color: rgba(255, 255, 255, 0.72); max-width: 460px; }
.cta-block .btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.cta-block .btn-light:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

/* contact */
.contact-card {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: left;
}
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }
.contact-side {
  background: linear-gradient(160deg, rgba(42, 120, 214, 0.07), rgba(42, 120, 214, 0.02));
  padding: 34px 32px;
  border-right: 1px solid var(--border-soft);
}
.contact-side h3 { font-size: 22px; letter-spacing: -0.02em; }
.contact-side p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; max-width: 320px; }
.contact-side .direct { margin-top: 22px; font-size: 14px; font-weight: 600; }
.contact-side .direct a { color: var(--accent-deep); text-decoration: underline; }
.cform { padding: 30px 32px 34px; }
.cform label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 16px 0 6px;
}
.cform label:first-child { margin-top: 0; }
.cform input, .cform textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.cform input:focus, .cform textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 120, 214, 0.12);
}
.cform textarea { min-height: 110px; resize: vertical; }
.cform .btn { margin-top: 20px; }
.cform-status { margin-top: 12px; font-size: 13.5px; }
.cform-status.ok { color: var(--good); font-weight: 600; }
.cform-status.err { color: #c93b3b; font-weight: 600; }

/* ============ footer ============ */
footer {
  padding: 44px 0 36px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-brand { max-width: 300px; }
.foot-brand .logo { margin-bottom: 10px; }
.foot-brand p { font-size: 13.5px; color: var(--muted); }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.foot-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ============ legal pages ============ */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 { font-size: 38px; letter-spacing: -0.03em; margin-bottom: 6px; font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 36px 0 12px; font-weight: 700; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-deep); text-decoration: underline; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hv-card { animation: none; }
  .ticker-track { animation: none; }
}
