:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-muted: #eef1f4;
  --ink: #111827;
  --muted: #5b6472;
  --muted-strong: #374151;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --line: #d8dde3;
  --line-strong: #c3cad3;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 241, 244, 0.9), rgba(246, 247, 248, 0) 28rem),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.75rem);
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 74vh;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

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

.hero-text,
.section-heading > p:not(.eyebrow) {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions,
.app-actions,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.78rem 1.05rem;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.hero-panel {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.panel-row {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.panel-row strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.app-card,
.contact,
.page-card {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.app-card p,
.principles p,
.contact p,
.page-card p,
.page-card li {
  color: var(--muted);
}

.tag,
.store-row span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(15, 118, 110, 0.25);
  padding: 0.32rem 0.58rem;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 4rem);
}

.principles {
  display: grid;
  gap: 1rem;
}

.principles > div {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.74);
  padding: 1rem 1.1rem;
}

.contact {
  margin-bottom: 4rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.contact-link {
  display: inline-flex;
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer span:first-child {
  display: inline-flex;
  gap: 0.3rem;
  white-space: nowrap;
}

.site-footer span:last-child {
  display: flex;
  gap: 1rem;
}

.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.62);
  padding: 1rem;
}

.privacy-modal-card {
  width: min(34rem, 100%);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.28);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.privacy-modal-card h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.privacy-modal-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.privacy-choice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--surface-muted);
  margin: 1.25rem 0;
  padding: 1rem;
}

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

.privacy-choice span {
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.privacy-modal-actions a {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.privacy-modal-actions button {
  border: 0;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.8rem 1rem;
}

.page {
  max-width: 880px;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-card {
  padding: clamp(1.3rem, 4vw, 2.4rem);
}

.page-card h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-card h2 {
  margin-top: 1.9rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.page-card h3 {
  margin-top: 1.6rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.page-card p,
.page-card li {
  font-size: 1rem;
  line-height: 1.7;
}

.page-card ul {
  padding-left: 1.25rem;
}

.page-card li {
  margin-bottom: 0.5rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .hero,
  .split,
  .app-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .panel-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .app-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .privacy-modal-actions {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 1rem, 1160px);
  }

  .site-header {
    padding: 0.9rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.35rem);
  }

  .button {
    width: 100%;
  }
}
