:root {
  color-scheme: light;
  --bg: #fff8ed;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #053d2b;
  --muted: #1f5d46;
  --line: rgba(20, 75, 48, 0.16);
  --green: #0a9f5a;
  --green-dark: #045b39;
  --orange: #f57f17;
  --orange-soft: #ffd6a3;
  --cream: #fff3df;
  --shadow: 0 24px 70px rgba(20, 65, 42, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark {
  color-scheme: dark;
  --bg: #06130f;
  --surface: rgba(13, 32, 25, 0.82);
  --surface-strong: #10251c;
  --text: #f4fff9;
  --muted: #b8ccc3;
  --line: rgba(181, 255, 219, 0.18);
  --cream: #102018;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 159, 90, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(245, 127, 23, 0.22), transparent 28rem),
    var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 3.5rem);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--line);
}

.brand,
.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img,
.site-footer img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(245, 127, 23, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--green-dark);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.62rem 0.95rem;
  cursor: pointer;
}

.hero-section,
.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.dark .eyebrow {
  color: #72e5a9;
}

h1,
h2,
h3 {
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.25rem, 6.6vw, 6.3rem);
  max-width: 780px;
  color: var(--green-dark);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  max-width: 760px;
  color: var(--green-dark);
  font-weight: 800;
}

body.dark h1,
body.dark h2 {
  color: #dffbed;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 500;
}

.hero-lede {
  max-width: 630px;
  font-size: clamp(1.08rem, 2vw, 1.33rem);
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--orange));
  box-shadow: 0 18px 40px rgba(245, 127, 23, 0.26);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-strip span {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 800;
}

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

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.orb-green {
  width: 220px;
  height: 220px;
  background: rgba(10, 159, 90, 0.2);
  left: 8%;
  top: 8%;
}

.orb-orange {
  width: 260px;
  height: 260px;
  background: rgba(245, 127, 23, 0.18);
  right: 1%;
  bottom: 3%;
}

.phone {
  position: absolute;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--cream));
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.phone-front {
  width: min(310px, 78vw);
  min-height: 545px;
  right: 0;
  top: 0;
  z-index: 2;
}

.phone-back {
  width: 196px;
  min-height: 220px;
  left: -18px;
  top: 228px;
  bottom: auto;
  transform: rotate(-2deg);
  z-index: 1;
}

.phone-back p {
  font-size: 0.92rem;
  line-height: 1.45;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
}

.phone-top img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.emergency-card,
.qr-card,
.record-list div,
.file-row,
.share-tile {
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--orange-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.emergency-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.2rem 0;
  padding: 0.8rem;
  font-weight: 800;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(10, 159, 90, 0.12);
}

.qr-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.qr-grid,
.large-qr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #fffaf2;
  border-radius: 14px;
  padding: 8px;
}

.qr-grid span,
.large-qr::before,
.large-qr::after {
  background: #0c3426;
  border-radius: 3px;
}

.qr-grid span {
  min-height: 13px;
}

.qr-grid span:nth-child(2n) {
  background: var(--green);
}

.qr-grid span:nth-child(5n) {
  background: var(--orange);
}

.record-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.record-list div,
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
}

.record-list b {
  color: var(--green-dark);
}

.mini-browser {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.4rem;
}

.mini-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-options span {
  background: rgba(10, 159, 90, 0.13);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.48rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.steps-grid,
.mockup-grid,
.legal-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.steps-grid article:last-child {
  grid-column: 1 / -1;
}

.steps-grid article,
.screen-card,
.legal-grid article,
.audience-grid article,
.privacy-card,
.beta-form,
.campaign-card,
.founding-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.steps-grid article,
.audience-grid article {
  padding: 1.3rem;
}

.audience-section {
  padding-top: 2rem;
}

.audience-grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.audience-grid article::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  bottom: -54px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 159, 90, 0.18), rgba(245, 127, 23, 0.18));
}

.audience-grid span {
  display: inline-flex;
  color: var(--orange);
  font-weight: 900;
  margin-bottom: 0.9rem;
}

.step-number {
  color: var(--orange);
  font-weight: 900;
}

.section-heading {
  margin-bottom: 2rem;
}

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

.screen-card {
  min-height: 360px;
  padding: 1rem;
}

.screen-top {
  font-weight: 900;
  margin-bottom: 1rem;
}

.category-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.category-row span {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(10, 159, 90, 0.1);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.category-row .active {
  background: var(--green);
  color: white;
}

.file-row {
  display: block;
  margin-bottom: 0.65rem;
}

.file-row small,
.screen-note {
  display: block;
  color: var(--green-dark);
  margin-top: 0.3rem;
}

.dark-screen {
  background: #073224;
  color: #ffffff;
}

.dark-screen p,
.dark-screen li {
  color: #d2efe3;
}

.large-qr {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 1.2rem auto;
}

.large-qr::before,
.large-qr::after {
  content: "";
  position: absolute;
  inset: 16px auto auto 16px;
  width: 34px;
  height: 34px;
  box-shadow: 58px 0 0 var(--orange), 0 58px 0 var(--green), 58px 58px 0 #0c3426;
}

.large-qr::after {
  inset: 54px auto auto 54px;
  width: 12px;
  height: 12px;
  box-shadow: 24px -30px 0 var(--green), -20px 26px 0 var(--orange), 30px 30px 0 #0c3426;
}

.privacy-section {
  padding-top: 2rem;
}

.privacy-card {
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(10, 159, 90, 0.12), rgba(245, 127, 23, 0.12)),
    var(--surface);
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.privacy-points div {
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
}

.privacy-points strong,
.privacy-points span {
  display: block;
}

.privacy-points span {
  color: var(--green-dark);
  margin-top: 0.4rem;
}

.beta-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.warning-note {
  border: 1px solid rgba(245, 127, 23, 0.28);
  background: rgba(245, 127, 23, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text);
}

.founding-card {
  padding: 1rem;
  margin: 1.2rem 0;
  background: linear-gradient(135deg, rgba(10, 159, 90, 0.12), rgba(245, 127, 23, 0.16));
}

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

.founding-card span {
  color: var(--green-dark);
  margin-top: 0.4rem;
  line-height: 1.55;
}

.beta-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.25rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.legal-grid article {
  padding: 1.25rem;
}

.campaign-section {
  padding-top: 1rem;
}

.campaign-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3rem);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green-dark) 92%, black), #042016 58%, color-mix(in srgb, var(--orange) 70%, #3a1800));
  color: #ffffff;
}

.campaign-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.campaign-card .eyebrow {
  color: #9ff0bf;
}

.campaign-card h2 {
  max-width: 820px;
}

.campaign-card p {
  max-width: 760px;
  color: #d9f4e8;
}

.campaign-card .button {
  position: relative;
  margin-top: 0.6rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  text-align: right;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
}

.hidden-field {
  display: none;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.success-card {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.success-card img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin-bottom: 1.2rem;
}

.success-card h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

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

  .hero-section,
  .split-section,
  .beta-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 640px;
  }

  .phone-front {
    right: 0;
  }

  .phone-back {
    left: 0;
  }

  .mockup-grid,
  .privacy-points,
  .legal-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .brand span {
    font-size: 1rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-front {
    width: 275px;
  }

  .phone-back {
    width: 218px;
    top: 340px;
    left: 0;
    bottom: auto;
  }

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

  .site-footer p {
    text-align: left;
  }
}
