:root {
  --bg: #f7f1e6;
  --surface: #fffaf2;
  --text: #2b2520;
  --muted: #7d7062;
  --line: #e2d6c3;
  --accent: #b4532a;
  --accent-soft: #f3d9c6;
  --glow: #fbe3b8;
  --shadow: 0 20px 50px rgba(60, 40, 20, 0.18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --surface: #24211d;
    --text: #ece3d6;
    --muted: #a39686;
    --line: #3a352f;
    --accent: #e08a5c;
    --accent-soft: #4a3226;
    --glow: #3d2f1e;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -5%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--glow), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.brand img {
  border-radius: 8px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav nav a:not(.nav-cta) {
  color: var(--muted);
  transition: color 0.15s;
}

.nav nav a:not(.nav-cta):hover {
  color: var(--text);
}

.nav-cta {
  padding: 7px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- hero ---------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 80px);
  padding: 40px 0 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 34em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(180, 83, 42, 0.3);
}

.btn.primary:hover {
  filter: brightness(1.06);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-art {
  position: relative;
  height: clamp(460px, 52vw, 620px);
}

.phone {
  position: absolute;
  margin: 0;
  width: clamp(180px, 21vw, 270px);
  padding: 10px;
  border-radius: 44px;
  background: #1c1a18;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 34px;
}

/* Both phones stay inside the hero's right column. */
.phone.front {
  right: 0;
  top: 0;
  z-index: 2;
}

.phone.back {
  left: 0;
  top: 12%;
  transform: rotate(-6deg);
  opacity: 0.92;
}

/* ---------- features ---------- */

section h2 {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}

.features {
  padding: 60px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- how ---------- */

.how {
  padding: 60px 0 100px;
}

.how ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how li {
  display: flex;
  gap: 16px;
}

.step {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.how h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.how p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.how-cta {
  margin-top: 48px;
  text-align: center;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    width: min(440px, 100%);
    height: 470px;
    margin: 0 auto;
  }

  .phone {
    width: 200px;
    border-radius: 34px;
    padding: 8px;
  }

  .phone img {
    border-radius: 26px;
  }

  .grid,
  .how ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 12px 16px;
  }

  .nav nav {
    gap: 14px;
    font-size: 14px;
  }

  .nav nav a[href^="#"] {
    display: none;
  }

  main {
    padding: 0 16px;
  }

  .hero-art {
    height: 400px;
  }

  .phone {
    width: 170px;
  }

  .phone.back {
    left: 6%;
  }
}
