:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4ff;
  --text: #101828;
  --muted: #667085;
  --line: #dbe3f0;
  --primary: #e11d48;
  --primary-dark: #be123c;
  --accent: #175cd3;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

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

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #fb7185);
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 18px;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-btn,
.solid-btn,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  transition: 0.2s ease;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.solid-btn,
.primary-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.22);
}

.secondary-cta {
  background: #fff;
  border: 1px solid var(--line);
}

.ghost-btn:hover,
.secondary-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}

.solid-btn:hover,
.primary-cta:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.hero-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f2d4dc;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.install-note {
  margin-top: 18px;
}

.note-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

.note-card strong {
  color: var(--text);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 360px;
  border-radius: 42px;
  padding: 14px;
  background: #0f172a;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
}

.phone-screen {
  min-height: 720px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 30px;
  padding: 18px;
}

.phone-status,
.bottom-tabs {
  display: flex;
  justify-content: space-between;
  color: #475467;
  font-size: 13px;
}

.app-preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.app-preview-header h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.app-preview-header p {
  margin: 0;
  color: var(--muted);
}

.sos-preview {
  width: 214px;
  height: 214px;
  border-radius: 50%;
  margin: 34px auto;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #fb7185 0%, #e11d48 70%);
  color: #fff;
  font-size: 50px;
  font-weight: 800;
  box-shadow: 0 24px 50px rgba(225, 29, 72, 0.35);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(16, 24, 40, 0.06);
}

.bottom-tabs {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section {
  padding: 88px 0;
}

.section-accent {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title.left-align {
  text-align: left;
}

.section-title span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
}

.section-accent .section-title span,
.section-accent h2,
.section-accent p,
.section-accent h3 {
  color: #fff;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.features-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.benefit-card,
.install-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff1f2;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-card h3,
.benefit-card strong,
.install-card h3,
.step-item h3 {
  font-size: 20px;
}

.feature-card p,
.benefit-card p,
.step-item p,
.install-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.steps-list {
  display: grid;
  gap: 18px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.step-item b {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
}

.install-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.install-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.wide {
  width: 100%;
}

.footer {
  padding: 24px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  z-index: 40;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(540px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.25);
}

.modal-card h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

.modal-section + .modal-section {
  margin-top: 16px;
}

.modal-section p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .hero-body,
  .two-col,
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .cta-row,
  .footer-links {
    flex-direction: column;
  }

  .hero-body,
  .two-col,
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 360px);
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .section {
    padding: 68px 0;
  }
}
