:root {
  --deep-crimson: #7A1020;
  --wine-crimson: #9E1B32;
  --dark-burgundy: #3A0B12;
  --warm-beige: #F3E5C8;
  --soft-cream: #FFF7E6;
  --antique-gold: #C9A24A;
  --muted-brown: #5C3B2E;
  --text-dark: #261A16;
  --ink-green: #315347;
  --line: rgba(92, 59, 46, 0.18);
  --shadow: 0 18px 48px rgba(58, 11, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-dark);
  background:
    linear-gradient(90deg, rgba(122, 16, 32, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(122, 16, 32, 0.06) 1px, transparent 1px),
    var(--soft-cream);
  background-size: 44px 44px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-crimson);
  color: var(--antique-gold);
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--antique-gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.site-nav a {
  padding: 6px 2px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-color: var(--antique-gold);
}

.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(58, 11, 18, 0.92), rgba(122, 16, 32, 0.78)),
    var(--dark-burgundy);
  color: var(--soft-cream);
  overflow: hidden;
}

.hero-copy,
.hero-visual,
.download-copy,
.download-notes {
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: 5.5rem;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
}

h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 760px;
  margin: 22px 0 8px;
  font-size: 1.7rem;
  font-weight: 700;
}

.hero-english {
  margin: 0 0 28px;
  color: rgba(255, 247, 230, 0.82);
  font-size: 18px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--antique-gold);
  color: var(--dark-burgundy);
}

.button-secondary {
  background: var(--soft-cream);
  color: var(--deep-crimson);
}

.button-ghost {
  border-color: rgba(255, 247, 230, 0.42);
  color: var(--soft-cream);
}

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

.avatar-device {
  width: min(100%, 420px);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 247, 230, 0.34);
  border-radius: 8px;
  background: var(--soft-cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-top {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: var(--warm-beige);
  border-bottom: 1px solid rgba(58, 11, 18, 0.14);
}

.device-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wine-crimson);
}

.avatar-stage {
  position: relative;
  min-height: calc(100% - 39px);
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(45deg, rgba(201, 162, 74, 0.22) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(49, 83, 71, 0.12) 25%, transparent 25%),
    var(--soft-cream);
  background-size: 28px 28px;
}

.avatar-image {
  width: min(86%, 340px);
  max-height: 82%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(58, 11, 18, 0.18);
}

.status-pill {
  position: absolute;
  right: 24px;
  top: 28px;
  max-width: calc(100% - 48px);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink-green);
  color: var(--soft-cream);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-row {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.signal-row span {
  height: 10px;
  border-radius: 999px;
  background: var(--wine-crimson);
}

.signal-row span:nth-child(2) {
  background: var(--antique-gold);
}

.signal-row span:nth-child(3) {
  background: var(--ink-green);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.86);
  box-shadow: 0 10px 24px rgba(58, 11, 18, 0.08);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted-brown);
}

.band {
  background: var(--warm-beige);
  border-block: 1px solid var(--line);
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.flow-node {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-cream);
  font-size: 22px;
  font-weight: 800;
}

.flow-node span {
  margin-top: 6px;
  color: var(--muted-brown);
  font-size: 14px;
  font-weight: 700;
}

.flow-node-strong {
  background: var(--deep-crimson);
  color: var(--soft-cream);
}

.flow-node-strong span {
  color: rgba(255, 247, 230, 0.82);
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--wine-crimson);
  font-size: 28px;
  font-weight: 900;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: center;
}

.download-copy p {
  max-width: 720px;
  color: var(--muted-brown);
}

.download-notes {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dark-burgundy);
  color: var(--soft-cream);
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(49, 83, 71, 0.12);
  color: inherit;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
}

.download-notes code {
  background: rgba(255, 247, 230, 0.13);
}

.safety-list,
.steps {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0;
  padding-left: 22px;
  font-size: 18px;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.copy-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--deep-crimson);
  color: var(--soft-cream);
  font-weight: 800;
  cursor: pointer;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-grid span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-cream);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--dark-burgundy);
  color: var(--soft-cream);
}

.site-footer a {
  color: var(--antique-gold);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .flow-arrow {
    transform: rotate(90deg);
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.45rem;
  }
}

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

  .site-nav {
    justify-content: flex-start;
  }

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

  .button {
    width: 100%;
  }

  .hero-actions,
  .download-actions {
    width: 100%;
  }

  .avatar-device {
    width: calc(100vw - 48px);
  }

  .status-pill {
    left: 14px;
    right: auto;
  }

  .hero-english {
    max-width: 28ch;
  }

  .signal-row {
    grid-template-columns: repeat(3, 1fr);
    right: 64px;
  }

  .signal-row span:nth-child(4) {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}
