/* === Mend Memories landing ============================================ */
:root {
  --bg: #0e0a05;
  --bg-2: #1a1208;
  --bg-3: #221708;
  --gold: #c9a24a;
  --gold-soft: #8a6f2a;
  --gold-deep: #5a4818;
  --yellow: #f4c430;
  --yellow-2: #f0b91d;
  --cream: #f5efe2;
  --cream-dim: #d8cdb6;
  --muted: #9a8e74;
  --line: rgba(201, 162, 74, 0.18);
  --card: rgba(255, 245, 220, 0.04);
  --card-border: rgba(201, 162, 74, 0.16);
  --shadow-warm: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,162,74,0.08);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Helvetica Neue", Helvetica, "Arial", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* === Type ============================================================= */
.deco {
  font-family: "Poiret One", "Trajan Pro", "Cinzel", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.mono {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}

/* MEND·MEMORIES wordmark (uses the supplied SVG logo) */
.wordmark {
  display: inline-block;
  width: clamp(126px, 15vw, 218px);
  height: auto;
  line-height: 0;
}
.wordmark img,
.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* deco arch background — fan/rising sun */
.deco-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%,
      rgba(138, 111, 42, 0.28) 0%,
      rgba(138, 111, 42, 0.06) 45%,
      transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%,
      rgba(90, 72, 24, 0.35) 0%,
      transparent 60%);
  z-index: 0;
}
.deco-bg svg { width: 100%; height: 100%; opacity: 0.6; }

/* === Layout =========================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* === Nav ============================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(14, 10, 5, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-mark {
  font-family: "Poiret One", serif;
  font-size: 16px;
  letter-spacing: 0.28em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}
.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,74,0.2);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--cream-dim); }
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s;
}
.nav-cta:hover { background: var(--yellow-2); transform: translateY(-1px); }

/* === Hero ============================================================= */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 90svh;
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 35vw 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 3;          /* sit above the phones image where they overlap */
  padding-left: clamp(8px, 3.5vw, 56px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .pill {
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.hero .wordmark {
  display: block;
  width: clamp(126px, 15vw, 218px);
  margin-bottom: 36px;
}
.hero h1 {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  font-family: "Poiret One", serif;
  letter-spacing: 0.01em;
}
.hero p.lead {
  font-size: 18px;
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cream);
  color: #000;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  font-family: "Helvetica Neue", sans-serif;
  transition: transform 0.15s, background 0.15s;
}
.appstore:hover { transform: translateY(-2px); }
.appstore .apple { width: 26px; height: 26px; }
.appstore .label { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .label .small { font-size: 11px; letter-spacing: 0.04em; }
.appstore .label .big { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255,245,220,0.03);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.ghost-btn:hover { background: rgba(255,245,220,0.07); border-color: var(--gold-soft); }

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--gold); }

/* hero device */
.hero-device {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 96px);
  transform: translateY(-50%);
  z-index: 1;                 /* behind hero copy (z-index 3) so text sits on top */
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-phones-img {
  height: 72svh;        /* ≈ 80% of the 90svh hero */
  max-height: 820px;
  width: auto;          /* width follows height → aspect ratio preserved */
  max-width: none;      /* override global img max-width:100% that was squishing it */
  flex: 0 0 auto;       /* don't let the grid track squeeze the width */
  display: block;
  mix-blend-mode: multiply;
}
.hero-device::before {
  /* glow */
  content: ""; position: absolute; inset: -40px;
  background: radial-gradient(circle at 50% 40%, rgba(244,196,48,0.15), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}
.iphone {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 52px;
  background: #111;
  padding: 11px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.7),
    0 0 0 1.5px rgba(201,162,74,0.25),
    0 0 60px rgba(244,196,48,0.05);
  z-index: 2;
}
.iphone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
}
.iphone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.iphone-notch {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

/* stacked photos behind device */
.hero-photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-photos .stack {
  position: absolute;
  width: 200px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 8px solid #f5efe2;
  background: #f5efe2;
  opacity: 0.85;
}
.hero-photos .stack.s1 { top: -10px; left: -90px; transform: rotate(-12deg); }
.hero-photos .stack.s2 { bottom: 20px; right: -70px; transform: rotate(8deg); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-device { width: 100%; max-width: 420px; }
  .hero .wordmark { width: 80vw; max-width: 420px; }
}
