/* ========================================================================
   Alarmingly — marketing page
   Design tokens are pulled from the actual app icon (navy / teal / coral)
   so this page and the app feel like the same product.
   ======================================================================== */

:root {
  --navy-950: #081726;
  --navy-900: #0d2039;
  --navy-800: #14304f;
  --navy-700: #1c3f66;
  --navy-600: #2a527f;

  --teal: #2bb8a6;
  --teal-soft: rgba(43, 184, 166, 0.16);
  --coral: #f1543f;
  --coral-soft: rgba(241, 84, 63, 0.16);

  --ink: #f4f7fa;
  --ink-muted: #aebdd1;
  --ink-faint: #7c8ea6;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --shadow-lg: 0 30px 60px -20px rgba(3, 10, 20, 0.6);
  --shadow-md: 0 16px 32px -16px rgba(3, 10, 20, 0.5);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

em {
  color: var(--teal);
  font-style: normal;
}

a {
  color: inherit;
}

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

/* ---------------------------------------------------------------------
   Background glow — two soft blurred blobs, purely decorative
   --------------------------------------------------------------------- */

.bg-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  max-width: 90vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--teal {
  top: -220px;
  left: -160px;
  background: var(--teal);
}

.bg-glow--coral {
  top: 420px;
  right: -220px;
  background: var(--coral);
  opacity: 0.14;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 23, 38, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark {
  border-radius: 8px;
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill--ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}

.pill--solid {
  background: var(--teal);
  color: var(--navy-950);
}

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

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__note {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ---- Hero phone mockup ---- */

.hero__art {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900) 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border-strong);
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: var(--navy-950);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone__screen {
  position: relative;
  background: var(--navy-900);
  border-radius: 30px;
  padding: 44px 22px 26px;
  min-height: 460px;
  overflow: hidden;
}

.ring-badge {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ring-badge__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--coral);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.mock-kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.mock-fired {
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.mock-subject {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.mock-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  margin-bottom: 22px;
}

.chip {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.mock-attendees-label {
  color: var(--ink-faint);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.mock-attendees {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.mock-attendees li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.dot--muted {
  background: var(--ink-faint);
}

.mock-actions {
  position: absolute;
  bottom: 62px;
  left: 22px;
  right: 22px;
  display: flex;
  gap: 10px;
}

.mock-btn {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
}

.mock-btn--solid {
  background: var(--teal);
  color: var(--navy-950);
}

.mock-btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}

.mock-dismiss {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   Problem section
   --------------------------------------------------------------------- */

.problem {
  position: relative;
  z-index: 1;
  padding: 40px 24px 100px;
}

.problem__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.problem p {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

/* ---------------------------------------------------------------------
   Shared section heading
   --------------------------------------------------------------------- */

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 56px;
}

/* ---------------------------------------------------------------------
   Features
   --------------------------------------------------------------------- */

.features {
  position: relative;
  z-index: 1;
  padding: 40px 24px 110px;
}

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

.feature-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.feature-icon--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-icon--coral {
  background: var(--coral-soft);
  color: var(--coral);
}

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

.feature-card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------------
   How it works
   --------------------------------------------------------------------- */

.how {
  position: relative;
  z-index: 1;
  padding: 40px 24px 110px;
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.how__steps li {
  display: flex;
  gap: 20px;
}

.how__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
}

.how__steps h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.how__steps p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* ---- mini phone (armed alarms) ---- */

.mini-phone {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900) 65%);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border-strong);
}

.mini-phone__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.mini-phone__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mini-section-label {
  color: var(--ink-faint);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 18px 0 10px;
}

.mini-section-label:first-of-type {
  margin-top: 0;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 8px;
}

.mini-row--muted {
  opacity: 0.7;
}

.mini-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-soft);
  position: relative;
}

.mini-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 2px;
  background: var(--coral);
}

.mini-icon--cal {
  background: var(--teal-soft);
}

.mini-icon--cal::before {
  background: var(--teal);
  border-radius: 3px;
}

.mini-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.mini-sub {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------------
   Privacy
   --------------------------------------------------------------------- */

.privacy {
  position: relative;
  z-index: 1;
  padding: 20px 24px 130px;
}

.privacy__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.privacy .feature-icon {
  margin-bottom: 22px;
}

.privacy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.privacy p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand--footer {
  margin-right: 0;
  margin-bottom: 4px;
}

.site-footer__domain {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer__copy {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ring-badge__pulse {
    animation: none;
  }
}

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

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

  .how__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .how__art {
    order: -1;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 44px;
    text-align: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__cta {
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .phone {
    width: 100%;
    max-width: 300px;
  }
}
