:root {
  --ink: #151c1a;
  --muted: #5f6e68;
  --paper: #fffdf8;
  --mist: #f0f6ef;
  --line: rgba(21, 28, 26, 0.14);
  --green: #0b7d67;
  --green-dark: #075545;
  --blue: #1762aa;
  --coral: #c75643;
  --amber: #c28a20;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(21, 28, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(11, 125, 103, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(23, 98, 170, 0.12), transparent 24rem),
    var(--paper);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-elevated {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 12px 34px rgba(21, 28, 26, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.footer-logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.brand-text span,
.footer-logo span {
  color: var(--green);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.lang-switch button {
  min-width: 34px;
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: 700 13px/1 "Times New Roman", Times, serif;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: var(--white);
  background: var(--green);
}

.nav-links a,
.nav-cta,
.primary-action,
.secondary-action,
.developer-links a,
.download-actions a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(11, 125, 103, 0.08);
}

.nav-cta,
.primary-action {
  color: var(--white);
  background: var(--green);
}

.nav-cta:hover,
.primary-action:hover,
.developer-links a:hover,
.download-actions a:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: min(680px, calc(100vh - 70px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero-copy,
.developer-copy,
.download-card > div {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.16;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 700;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-lead,
.developer-copy p,
.download-card p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.hero-actions,
.developer-links,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.secondary-action,
.developer-links a,
.download-actions a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.hero-facts div {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone-shell {
  width: min(350px, 86vw);
  padding: 12px;
  border: 1px solid rgba(21, 28, 26, 0.25);
  border-radius: 34px;
  background: linear-gradient(145deg, #202927, #0f1513);
  box-shadow: var(--shadow);
}

.phone-shell img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
}

.signal-strip {
  position: absolute;
  right: 0;
  bottom: 36px;
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 40px rgba(21, 28, 26, 0.12);
  backdrop-filter: blur(12px);
}

.signal-strip span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.signal-strip span:nth-child(1) {
  background: var(--green);
}

.signal-strip span:nth-child(2) {
  background: var(--blue);
}

.signal-strip span:nth-child(3) {
  background: var(--coral);
}

.feature-band,
.developer-band,
.download-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 880px;
}

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

.feature-card {
  min-height: 198px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.feature-card:nth-child(2) {
  background: rgba(240, 246, 239, 0.9);
}

.feature-card:nth-child(3) {
  background: rgba(255, 244, 230, 0.84);
}

.feature-index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  font-size: 16px;
}

.developer-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.code-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #111c19;
  box-shadow: var(--shadow);
}

.code-title {
  padding: 12px 16px;
  color: #b7e5d5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #f8f3e8;
  font: 14px/1.7 "Cascadia Code", "Courier New", monospace;
}

.download-band {
  border-bottom: 1px solid var(--line);
}

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 32px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 125, 103, 0.12), transparent 55%),
    var(--mist);
}

.download-card h2 {
  max-width: 760px;
}

.download-actions {
  justify-content: flex-end;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

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

.reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: transform 360ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .developer-band,
  .download-card,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

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

  .download-actions {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .feature-band,
  .developer-band,
  .download-band,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 12px;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .brand {
    align-self: flex-start;
  }

  .hero-copy {
    width: 100%;
    max-width: 340px;
  }

  .hero-visual {
    justify-items: start;
    overflow: hidden;
  }

  .nav-cta {
    max-width: 100%;
    white-space: nowrap;
  }

  h1 {
    max-width: 340px;
    font-size: 28px;
    line-height: 1.22;
    overflow-wrap: normal;
    word-break: normal;
  }

  h2 {
    font-size: 25px;
    line-height: 1.2;
  }

  .hero-lead,
  .developer-copy p,
  .download-card p {
    font-size: 16px;
  }

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

  .signal-strip {
    position: static;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .phone-shell {
    width: min(310px, 100%);
    padding: 10px;
    border-radius: 30px;
  }

  .phone-shell img {
    border-radius: 22px;
  }

  .feature-band,
  .developer-band,
  .download-band {
    padding: 52px 0;
  }

  .download-card {
    padding: 24px;
  }
}
