:root {
  color-scheme: light;
  --bg: #f4efe7;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: rgba(255, 248, 240, 0.92);
  --text: #1f1a16;
  --muted: #6f6458;
  --line: rgba(62, 46, 33, 0.12);
  --accent: #0f766e;
  --accent-strong: #0a4f4a;
  --shadow: 0 30px 70px rgba(78, 52, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(191, 122, 67, 0.17), transparent 30%),
    linear-gradient(180deg, #f6f0e6 0%, #efe4d3 100%);
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar,
.topbar-left,
.topbar-links,
.hero-actions,
.features,
.source-grid,
.note-grid,
.slider-meta,
.dots,
.footer {
  display: flex;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  padding: 10px 4px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-links {
  align-items: center;
  gap: 14px;
}

.topbar-links {
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-links a,
.footer,
.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.back-btn,
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.lang-btn {
  min-width: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #f7fffe;
}

.brand {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.icon-shell,
.card,
.feature-card,
.source-card,
.note-card {
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.card {
  border-radius: 28px;
  background: var(--surface);
}

.hero-copy {
  padding: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(15, 118, 110, 0.4);
}

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

h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.14;
  max-width: 16ch;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.app-cta,
.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
}

.app-cta {
  background: var(--accent);
  color: #f7fffe;
}

.ghost-cta {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--text);
}

.store-note {
  margin-top: 16px;
  max-width: 58ch;
}

.waitlist-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.waitlist-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-shell {
  position: relative;
  width: min(100%, 360px);
  padding: 20px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 237, 0.68));
}

.icon-shell::after,
.slider::after {
  content: "";
  position: absolute;
  inset: auto 12% 18px;
  height: 32px;
  filter: blur(28px);
  background: rgba(78, 52, 24, 0.16);
  border-radius: 999px;
}

.app-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 28px;
}

.card {
  padding: 30px;
  margin-top: 28px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.08rem, 1.3vw, 1.36rem);
  line-height: 1.22;
}

.section-head p {
  max-width: 680px;
}

.features,
.source-grid,
.note-grid,
.difference-grid {
  display: grid;
  gap: 18px;
}

.chart-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.features {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.source-grid,
.note-grid {
  grid-template-columns: repeat(2, 1fr);
}

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

.feature-card,
.source-card,
.note-card,
.difference-card,
.chart-category-card {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.feature-card h3,
.source-card h3,
.note-card h3,
.difference-card h3,
.chart-category-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.28;
}

.chart-category-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.chart-category-list li + li {
  margin-top: 8px;
}

.slider-wrap {
  position: relative;
}

.slider {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(15, 118, 110, 0.08), transparent 60%),
    rgba(255, 250, 245, 0.68);
  overflow: hidden;
}

.slide-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 237, 0.68));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.slide-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: rgba(31, 26, 22, 0.9);
  z-index: 2;
}

.app-screenshot {
  display: block;
  width: 100%;
  border-radius: 24px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.prev {
  left: 18px;
}

.next {
  right: 18px;
}

.slider-meta {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.slide-caption {
  font-size: 0.95rem;
}

.dots {
  gap: 10px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 26, 22, 0.18);
  cursor: pointer;
  padding: 0;
}

.dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
}

.footer {
  margin-top: 64px;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-copy {
    max-width: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .features,
  .source-grid,
  .note-grid,
  .difference-grid,
  .chart-category-grid {
    grid-template-columns: 1fr;
  }

  .slider {
    min-height: 540px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100vw - 20px, 1180px);
    padding-top: 18px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-copy,
  .card {
    padding: 22px;
  }

  .slider {
    min-height: 470px;
  }

  .slide-btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }
}
