:root {
  --bg: #0c0a09;
  --bg-2: #14110f;
  --card: #1c1815;
  --card-2: #241e1a;
  --ink: #f6efe6;
  --mute: #b9ab9a;
  --dim: #8a7b6c;
  --acc: #e8a33d;
  --acc-2: #f3c56b;
  --teal: #5fb49c;
  --line: #3a312b;
  --danger: #e06c5a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1160px;
  --font: "Heebo", "Assistant", "Rubik", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-2); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.ltr { direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(12, 10, 9, 0.78);
  border-bottom: 1px solid rgba(58, 49, 43, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
}

.nav-links a { color: var(--mute); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--acc);
  color: #1a130b;
}

.btn-primary:hover { background: var(--acc-2); color: #1a130b; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--acc); color: var(--acc-2); }

.nav .btn { padding: 9px 16px; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -20%;
  height: 520px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  color: var(--acc);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.15rem;
  color: var(--mute);
  max-width: 38rem;
  margin-bottom: 28px;
}

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

/* Two iPad mockups in the hero */
.ipad-stage {
  position: relative;
  aspect-ratio: 16 / 11.2;
  min-height: 360px;
  margin-bottom: 8px;
}

.ipad-stage .ipad { position: absolute; margin: 0; }

.ipad-back {
  width: 64%;
  left: -2%;
  top: 0;
  z-index: 1;
}
.ipad-back .ipad-device {
  transform: rotate(-7deg);
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.5));
}

.ipad-front {
  width: 70%;
  right: -2%;
  top: 14%;
  z-index: 2;
}
.ipad-front .ipad-device {
  transform: rotate(5deg);
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.58));
}

.ipad-device {
  position: relative;
  background: linear-gradient(165deg, #55555a 0%, #2f2f33 26%, #19191c 68%, #2a2a2e 100%);
  border-radius: 18px;
  padding: 9px 15px;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.32), inset 0 -1px 1.5px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
}

.ipad-cam {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a68, #16161a 55%, #000);
  box-shadow: 0 0 0 2px #2c2c30, 0 0 0 3px #1a1a1c;
  z-index: 2;
}

.ipad-sleep {
  position: absolute;
  right: -2px;
  top: 26%;
  width: 2px;
  height: 14%;
  background: #3d3d42;
  border-radius: 1px 0 0 1px;
}

.ipad-vol {
  position: absolute;
  left: -2px;
  top: 30%;
  width: 2px;
  height: 18%;
  background: #3d3d42;
  border-radius: 0 1px 1px 0;
}

.ipad-screen {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
}

.ipad-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 951;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.ipad-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 34%);
  pointer-events: none;
}

.ipad-stage figcaption {
  display: none;
  margin-top: 8px;
  text-align: center;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 8px 0 64px;
}

.trust article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
}

.trust h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--acc-2); }
.trust p { color: var(--mute); font-size: 0.92rem; line-height: 1.5; }

/* Sections */
section { padding: 32px 0 72px; }

.section-head { margin-bottom: 28px; max-width: 40rem; }

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-head p { color: var(--mute); font-size: 1.05rem; }

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

.feature {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(232, 163, 61, 0.12);
  color: var(--acc);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--mute); font-size: 0.95rem; }

.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--acc);
  color: var(--acc);
  background: #3d2e14;
  vertical-align: middle;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.gallery img { width: 100%; background: #f4f6f8; }

.gallery figcaption {
  padding: 12px 16px 14px;
  color: var(--mute);
  font-size: 0.92rem;
}

.gallery .wide { grid-column: 1 / -1; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  border-right: 3px solid var(--acc);
  background: var(--card);
  border-radius: 0 14px 14px 0;
  padding: 20px 20px 18px 18px;
}

.step .n { color: var(--acc); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 8px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--mute); font-size: 0.95rem; }

.note {
  margin-top: 18px;
  border-right: 4px solid var(--acc);
  background: #1b1714;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--mute);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 28px;
}

.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--mute); max-width: 36rem; margin: 0 auto 22px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.placeholder {
  display: inline-block;
  border: 1px dashed #7a684e;
  color: #d9c4a4;
  background: #2a2219;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

.placeholder em { font-style: normal; color: var(--acc-2); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--dim);
  font-size: 0.88rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Lightbox */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lb.open { display: flex; }

.lb img {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  border-radius: 12px;
}

.lb button {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid, .gallery, .features, .trust, .steps {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 40px; padding-bottom: 36px; }
  .ipad-stage {
    aspect-ratio: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .ipad-stage .ipad {
    position: static;
    width: 100%;
  }
  .ipad-back .ipad-device,
  .ipad-front .ipad-device {
    transform: none;
    filter: drop-shadow(0 16px 24px rgba(0,0,0,.4));
  }
  .ipad-device { border-radius: 14px; padding: 7px 11px; }
  .ipad-stage figcaption { display: block; }
  .gallery .wide { grid-column: auto; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .trust { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
  .hero-actions .btn, .cta .btn { width: 100%; }
}

@media (max-width: 520px) {
  .trust { grid-template-columns: 1fr; }
}
