:root {
  --bg: #05070d;
  --panel: #0c111d;
  --panel-2: #111827;
  --panel-3: #151f31;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f7fb;
  --muted: #99a3b7;
  --muted-2: #c2c8d4;
  --brand: #17d6a3;
  --brand-2: #3b82f6;
  --accent: #ff6b5f;
  --tiktok: #6ee7f0;
  --meta: #73a7ff;
  --paper: #f7f4ed;
  --ink: #141313;
  --paper-line: #ded9cf;
  --paper-muted: #7d7a72;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family: "Inter", "DM Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--brand);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(23, 214, 163, 0.95), rgba(59, 130, 246, 0.5));
  box-shadow: 0 0 28px rgba(23, 214, 163, 0.22);
}

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

.nav-links a {
  color: var(--muted-2);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #03110d;
  box-shadow: 0 12px 34px rgba(23, 214, 163, 0.2);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: #03110d;
  background: #4ee1bb;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
  min-height: 100vh;
  padding: 140px clamp(20px, 5vw, 64px) 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 92px clamp(20px, 5vw, 64px) 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

h1,
h2,
h3,
.metric-value,
.login-heading,
.side-word {
  font-family: "Syne", "Inter", "Segoe UI", Arial, sans-serif;
}

h1 {
  max-width: 850px;
  margin: 24px 0 26px;
  font-size: 4.25rem;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-line {
  display: block;
}

.gradient-word {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-sub {
  max-width: 610px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 430;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #03110d;
  box-shadow: 0 16px 42px rgba(23, 214, 163, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #55e0bd;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 54px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-2);
  text-transform: none;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.035);
}

.platform-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.platform-pill.tiktok::before {
  background: var(--tiktok);
}

.platform-pill.meta::before {
  background: var(--meta);
}

.dashboard-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(8, 12, 22, 0.96));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.dash-title {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.dash-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(23, 214, 163, 0.22);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 760;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.dashboard-body {
  padding: 18px;
}

.chart {
  height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 38px 38px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  height: 100%;
  gap: 10px;
}

.chart-bars span {
  display: block;
  min-height: 22px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.insight {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.insight span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight strong {
  display: block;
  margin-top: 7px;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.stat {
  padding: 42px clamp(20px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 96px clamp(20px, 5vw, 64px);
}

.section-header {
  max-width: 700px;
  margin-bottom: 52px;
}

h2 {
  margin: 18px 0 14px;
  font-size: 3rem;
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-lede {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.feature-card {
  min-height: 255px;
  padding: 32px;
  background: var(--panel);
  transition: background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  background: var(--panel-2);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: rgba(23, 214, 163, 0.09);
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  color: var(--accent);
  background: rgba(255, 107, 95, 0.1);
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
  color: var(--brand-2);
  background: rgba(59, 130, 246, 0.11);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.platforms {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

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

.platform-panel {
  padding: 72px clamp(24px, 5vw, 64px);
}

.platform-panel:first-child {
  border-right: 1px solid var(--line);
}

.platform-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 3rem;
  line-height: 1;
}

.platform-name::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.platform-name.tiktok {
  color: var(--tiktok);
}

.platform-name.tiktok::before {
  background: var(--tiktok);
}

.platform-name.meta {
  color: var(--meta);
}

.platform-name.meta::before {
  background: var(--meta);
}

.platform-panel p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.platform-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

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

.platform-list li::before {
  content: ">";
  color: var(--brand);
  font-weight: 900;
}

.cta-section {
  text-align: center;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-inner .section-kicker {
  justify-content: center;
}

.cta-inner .section-kicker::before {
  display: none;
}

.cta-inner p {
  margin: 0 auto 34px;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background: var(--bg);
}

.legal-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 130px 24px 80px;
}

.legal-main h1 {
  margin: 0 0 16px;
  font-size: 4.4rem;
}

.legal-main .updated {
  margin: 0 0 40px;
  color: var(--muted);
}

.legal-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted-2);
}

.legal-card a {
  color: var(--brand);
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  min-width: 100vw;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(360px, 500px) minmax(270px, 1fr);
  align-items: stretch;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.login-page > * {
  min-height: 100vh;
  min-height: 100dvh;
}

.login-side {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 44px;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 42px, rgba(255,255,255,0.035) 42px, rgba(255,255,255,0.035) 43px),
    #111318;
  color: white;
}

.side-word {
  position: absolute;
  top: 50%;
  left: -34px;
  color: rgba(255, 255, 255, 0.055);
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  white-space: nowrap;
}

.login-side-content {
  position: relative;
  z-index: 1;
}

.login-side-content p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-side-content h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

.login-side-content span {
  color: var(--brand);
}

.login-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  border-right: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
  background: #fff;
  box-shadow: 0 0 74px rgba(0, 0, 0, 0.05);
}

.login-logo {
  margin-bottom: 54px;
  color: var(--ink);
}

.login-logo::before {
  box-shadow: none;
}

.login-heading {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 820;
  line-height: 1.12;
}

.login-sub {
  margin: 0 0 36px;
  color: var(--paper-muted);
  font-size: 0.92rem;
}

.login-form {
  display: grid;
  gap: 19px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.login-form label,
.auth-label {
  color: var(--paper-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-line);
  border-radius: 8px;
  outline: none;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input:focus {
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 4px rgba(23, 214, 163, 0.12);
}

.forgot,
.login-footer a {
  color: #0e9e7a;
  font-size: 0.8rem;
  font-weight: 760;
  text-decoration: none;
}

.remember {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--paper-muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.login-submit,
.copy-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-family: "Syne", "Inter", sans-serif;
  font-size: 0.94rem;
  font-weight: 820;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.login-submit:hover,
.copy-button:hover {
  background: #252322;
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-muted);
  font-size: 0.78rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--paper-line);
}

.sso-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1.5px solid var(--paper-line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.login-footer {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--paper-line);
  color: var(--paper-muted);
  font-size: 0.8rem;
  text-align: center;
}

.metric-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.metric-stack {
  display: grid;
  gap: 14px;
  width: min(260px, 100%);
}

.metric-card {
  padding: 17px 20px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.045);
}

.metric-card:nth-child(odd) {
  transform: translateX(26px);
}

.metric-label {
  margin-bottom: 7px;
  color: var(--paper-muted);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-value {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1;
}

.metric-delta {
  margin-top: 6px;
  color: #10996f;
  font-size: 0.75rem;
  font-weight: 760;
}

.metric-delta.down {
  color: #e04f45;
}

.auth-box {
  display: grid;
  gap: 10px;
}

.auth-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--paper-line);
  border-radius: 8px;
  background: #fbfaf8;
}

.auth-code-value {
  flex: 1;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy-button {
  min-width: 78px;
  padding: 0 16px;
}

.auth-hint {
  margin: 4px 0 0;
  color: var(--paper-muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.35rem;
  }

  h2,
  .platform-name {
    font-size: 2.55rem;
  }

  .stat strong {
    font-size: 2.6rem;
  }

  .legal-main h1 {
    font-size: 3.5rem;
  }

  .side-word {
    font-size: 8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 620px;
  }

  .stats,
  .features-grid,
  .platforms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-panel:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-page {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .login-side,
  .metric-side {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    border: 0;
    padding: 44px 28px;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2rem;
  }

  h2,
  .platform-name {
    font-size: 2.15rem;
  }

  .legal-main h1 {
    font-size: 2.65rem;
  }

  .platform-strip {
    align-items: flex-start;
  }

  .platform-strip > span:first-child {
    flex-basis: 100%;
  }

  .site-nav {
    position: sticky;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav-links {
    justify-content: space-between;
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-links .nav-cta {
    min-height: 34px;
    padding: 7px 10px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero::before {
    inset: 24px 20px 42px;
  }

  .stats,
  .features-grid,
  .platforms-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .feature-card {
    min-height: auto;
  }

  .platform-name {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row,
  .contact-row {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
