:root {
  color-scheme: dark;
  --ink: #090806;
  --surface: #14110e;
  --panel: #1d1914;
  --border: #3a3024;
  --gold: #d6aa57;
  --gold-soft: #ffdfa3;
  --ivory: #f4ebdd;
  --muted: #b9aa99;
  --sage: #7aa49a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(9, 8, 6, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand,
nav,
footer,
.hero-actions,
.store-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

nav a:hover,
footer a:hover {
  color: var(--gold-soft);
}

.hero {
  position: relative;
  min-height: clamp(620px, 78svh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 8, 6, 0.99) 0%, rgba(9, 8, 6, 0.9) 42%, rgba(9, 8, 6, 0.46) 72%, rgba(9, 8, 6, 0.78) 100%),
    linear-gradient(180deg, rgba(214, 170, 87, 0.08), rgba(122, 164, 154, 0.04) 48%, rgba(9, 8, 6, 0)),
    url("/assets/hikayece-app-preview.png") right clamp(22px, 7vw, 96px) center / min(34vw, 430px) auto no-repeat,
    var(--ink);
}

.hero-content {
  position: relative;
  width: min(710px, calc(100% - 36px));
  padding: 58px 0 72px clamp(18px, 4vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

h3 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 22px;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ivory);
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.5;
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 223, 163, 0.22);
  border-radius: 8px;
  background: rgba(29, 25, 20, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.store-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.store-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

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

.button.secondary,
.store-actions span {
  border: 1px solid var(--border);
  color: var(--gold-soft);
  background: rgba(29, 25, 20, 0.75);
}

.section {
  padding: clamp(46px, 7vw, 82px) clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 850px;
}

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

article {
  min-height: 158px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

article p,
.split-band p,
.legal-content p {
  color: var(--muted);
  line-height: 1.65;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 28px;
  background: var(--surface);
}

.store-band {
  min-height: 280px;
}

.legal-page {
  background: var(--surface);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(40px, 7vw, 76px);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(24px, 4vw, 34px);
}

.legal-content a {
  color: var(--gold-soft);
}

footer {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 4vw, 54px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 22px;
  }

  .hero {
    min-height: 850px;
    align-items: flex-start;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(9, 8, 6, 0.99) 0%, rgba(9, 8, 6, 0.96) 52%, rgba(9, 8, 6, 0.72) 76%, rgba(9, 8, 6, 0.98) 100%),
      url("/assets/hikayece-app-preview.png") center bottom 22px / min(56vw, 220px) auto no-repeat,
      var(--ink);
  }

  .hero-content {
    padding-top: 46px;
    padding-bottom: 300px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 318px;
  }

  .hero-proof li {
    justify-content: center;
    min-width: 0;
    padding: 0 9px;
    text-align: center;
  }

  .hero-proof li:last-child {
    grid-column: 1 / -1;
  }

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