:root {
  --bg: #080d1a;
  --bg-elevated: #0d1424;
  --surface: #151f32;
  --surface-2: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --teal-deep: #0f766e;
  --teal: #14b8a6;
  --teal-bright: #2dd4bf;
  --teal-ink: #0f2d2a;
  --gold: #d9a74a;
  --gold-bright: #e5b842;
  --danger: #f87171;
  --radius: 16px;
  --header-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--teal-bright);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 13, 26, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-2);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 1px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand.compact strong {
  font-size: 0.95rem;
}

.nav-desktop {
  display: none;
  gap: 32px;
}

.nav-desktop a,
.nav-mobile a {
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  color: var(--text);
}

.header-cta {
  margin-left: auto;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--surface-2);
}

.nav-mobile[hidden] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal);
}

.btn-lg {
  padding: 13px 22px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-copy h1 span {
  color: var(--teal-bright);
}

.hero-copy p {
  max-width: 34rem;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.phone {
  width: min(260px, 70%);
  margin-left: auto;
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.phone-notch {
  width: 72px;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 99px;
  background: #080d1a;
}

.phone-screen {
  min-height: 360px;
  padding: 16px;
  border-radius: 24px;
  background: #0b1220;
}

.phone-status,
.phone-stats {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
}

.phone-greeting {
  margin: 18px 0 8px;
  font-weight: 600;
}

.rings {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}

.rings svg {
  width: 150px;
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.ring-track {
  stroke: #1e293b;
}

.ring-value {
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}

.ring-value.teal {
  stroke: #2dd4bf;
  stroke-dasharray: 301;
  stroke-dashoffset: 70;
}

.ring-value.mint {
  stroke: #14b8a6;
  stroke-dasharray: 226;
  stroke-dashoffset: 70;
}

.ring-value.gold {
  stroke: #d9a74a;
  stroke-dasharray: 151;
  stroke-dashoffset: 55;
}

.phone-stats {
  padding-top: 8px;
  text-align: center;
}

.phone-stats strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.vitals-card {
  position: absolute;
  left: 0;
  top: 42%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.vitals-card strong,
.vitals-card span {
  display: block;
}

.vitals-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.15);
}

.trust-bar {
  background: #0d3d37;
  color: var(--teal-bright);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  text-align: center;
}

.trust-inner p {
  margin: 0;
  font-weight: 600;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding-top: 24px;
}

.section-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-sub {
  max-width: 36rem;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 24px;
}

.icon-col {
  text-align: center;
}

.icon-col h3,
.panel h3,
.card h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
}

.icon-col p,
.panel p,
.card p {
  margin: 0;
  color: var(--muted);
}

.icon-circle,
.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.icon-square {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.teal {
  background: var(--teal-deep);
}

.mint {
  background: #115e56;
}

.gold {
  background: #9a6f1e;
}

.panel,
.card,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.panel,
.card {
  padding: 28px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.contact-panel h2 {
  margin: 0 0 8px;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--surface-2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
}

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

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-card {
  position: relative;
  width: min(440px, calc(100% - 32px));
  margin: 10vh auto 0;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
}

.modal-card h2 {
  margin: 0 0 8px;
}

.modal-lead {
  margin: 0 0 20px;
  color: var(--muted);
}

#signup-form {
  display: grid;
}

#signup-form label {
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

#signup-form input {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

#signup-form input:focus {
  outline: 2px solid rgba(45, 212, 191, 0.35);
  border-color: var(--teal);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  min-height: 1.3em;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--teal-bright);
}

@media (min-width: 800px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    justify-self: end;
    margin-left: 0;
  }

  .menu-toggle,
  .nav-mobile {
    display: none;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

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

  .section-title + .grid-3 {
    margin-top: 40px;
  }

  .contact-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Footer Links & Legal Navigation */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 10px 0;
}

.footer-links a {
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--teal-bright);
}

.form-legal-note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 14px 0 0;
}

.form-legal-note a {
  color: var(--teal-bright);
  text-decoration: underline;
}

/* Legal Pages (Privacy Policy & Terms of Use) */
.legal-main {
  padding: 40px 0 80px;
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--surface-2);
  padding-bottom: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-bright);
}

.legal-header h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-header .legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-section p,
.legal-section li {
  color: var(--soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-section li {
  margin-bottom: 8px;
}

/* Compliance Highlight Box (Twilio & Carrier Mandatory) */
.compliance-box {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-left: 4px solid var(--teal-bright);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

.compliance-box h3 {
  margin: 0 0 8px;
  color: var(--teal-bright);
  font-size: 1.05rem;
}

.compliance-box p {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.compliance-box p:last-child {
  margin-bottom: 0;
}

.compliance-box strong {
  color: #fff;
}

