@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

:root {
  --pounamu: #1A6140;
  --pounamu-light: #2B8A5C;
  --pounamu-deep: #0F3D28;
  --kowhai: #CF9120;
  --kowhai-light: #EDB84A;
  --kokowai: #B83030;
  --kokowai-light: #DE4848;
  --po: #0B0F14;
  --po-light: #131A24;
  --huarua: #F5EDE0;
  --atea: #FBF7F1;
  --aruhe: #8BAA88;
  --ink: #FDFBF6;
  --ink-dim: rgba(253, 251, 246, 0.72);
  --ink-faint: rgba(253, 251, 246, 0.45);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--po);
  color: var(--ink);
  overflow-x: hidden;
  cursor: default;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

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

/* ── Grain + gradient noise overlay ─────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Cursor glow ─────────────────────────────────────────── */
.glow-cursor {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207,145,32,0.12) 0%, rgba(207,145,32,0) 70%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  transition: opacity 0.3s ease; opacity: 0;
}
body.cursor-active .glow-cursor { opacity: 1; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6vw; transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  padding: 14px 6vw;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; }
.nav-logo .heart-mark { color: var(--kokowai); font-size: 20px; }
.nav-logo .logo-mark, .footer-brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.footer-brand .logo-mark { width: 26px; height: 26px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--kokowai); color: white; box-shadow: 0 8px 24px rgba(184,48,48,0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 32px rgba(184,48,48,0.5); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.25); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,0.08); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 720px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: -10%; z-index: 0;
  background: url('../assets/img/hero-coffee-couple.jpg') center 30% / cover no-repeat;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(11,15,20,0.88) 0%, rgba(11,15,20,0.62) 32%, rgba(11,15,20,0.22) 58%, rgba(11,15,20,0.4) 100%),
    linear-gradient(180deg, rgba(11,15,20,0.25) 0%, rgba(11,15,20,0.05) 30%, rgba(11,15,20,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--kowhai-light); font-weight: 600; margin-bottom: 22px;
  opacity: 0; transform: translateY(16px);
  animation: riseIn 1s var(--ease) 0.2s forwards;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--kowhai-light); }
.hero h1 {
  font-size: clamp(44px, 8vw, 104px); font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(30px);
  animation: riseIn 1.1s var(--ease) 0.4s forwards;
}
.hero h1 em { font-style: italic; color: transparent; -webkit-text-stroke: 1.5px var(--kowhai-light); }
.hero p.sub {
  margin: 26px auto 0; max-width: 560px; font-size: 19px; color: var(--ink-dim); font-weight: 400;
  opacity: 0; transform: translateY(24px);
  animation: riseIn 1s var(--ease) 0.65s forwards;
}
.hero-cta {
  margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(24px);
  animation: riseIn 1s var(--ease) 0.85s forwards;
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-faint); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; animation: riseIn 1s ease 1.3s forwards;
}
.scroll-cue .line { width: 1px; height: 44px; background: linear-gradient(var(--kowhai-light), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(var(--ink), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-wrap {
  position: relative; z-index: 3; background: var(--po-light);
  border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0; overflow: hidden;
}
.marquee { display: flex; width: max-content; gap: 60px; animation: marquee 32s linear infinite; }
.marquee span { font-family: 'Fraunces', serif; font-style: italic; font-size: 20px; color: var(--ink-faint); white-space: nowrap; }
.marquee span.dot { color: var(--kokowai); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections general ────────────────────────────────────── */
section { position: relative; }
.section-pad { padding: 160px 6vw; }
.section-head { max-width: 640px; margin: 0 auto 80px; text-align: center; }
.section-head .eyebrow { animation: none; opacity: 1; transform: none; justify-content: center; width: 100%; }
.section-head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; margin-top: 18px; }
.section-head p { margin-top: 20px; color: var(--ink-dim); font-size: 17px; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(56px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-64px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(64px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.88); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.12s); }

/* ── App showcase / phone mockups ───────────────────────── */
.showcase { position: relative; overflow: hidden; }
.fern-bg { position: absolute; top: 0; height: 100%; width: auto; opacity: 0.05; pointer-events: none; z-index: 0; }
.fern-bg--left { left: -80px; transform: scaleX(-1); }
.fern-bg--right { right: -80px; }

.phone-stack {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 0;
  max-width: 1100px; margin: 0 auto; padding: 40px 0 20px;
}
.phone {
  width: 260px; height: 540px; border-radius: 42px; background: #0d0d0d;
  padding: 14px; box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative; flex-shrink: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.phone--left { z-index: 1; }
.phone--right { z-index: 1; }
.phone--center { z-index: 2; box-shadow: 0 50px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }

/* These beat the generic .reveal-scale rules on specificity (3 classes) so the
   per-phone rotation survives the reveal-on-scroll opacity/scale transition. */
.showcase .phone--left.reveal-scale { transform: rotate(-9deg) translateY(30px) translateX(36px) scale(0.85); }
.showcase .phone--left.reveal-scale.is-visible { transform: rotate(-9deg) translateY(30px) translateX(36px) scale(1); }
.showcase .phone--right.reveal-scale { transform: rotate(9deg) translateY(30px) translateX(-36px) scale(0.85); }
.showcase .phone--right.reveal-scale.is-visible { transform: rotate(9deg) translateY(30px) translateX(-36px) scale(1); }
.showcase .phone--center.reveal-scale { transform: translateY(10px) scale(0.85); }
.showcase .phone--center.reveal-scale.is-visible { transform: translateY(0) scale(1); }

.phone-stack:hover .phone--left.is-visible { transform: rotate(-12deg) translateY(20px) translateX(30px) scale(1.02); }
.phone-stack:hover .phone--right.is-visible { transform: rotate(12deg) translateY(20px) translateX(-30px) scale(1.02); }
.phone-stack:hover .phone--center.is-visible { transform: translateY(-6px) scale(1.03); }
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0d0d0d; border-radius: 0 0 16px 16px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--atea);
  display: flex; flex-direction: column; font-family: 'Inter', sans-serif;
}
.app-statusbar { display: flex; justify-content: space-between; padding: 18px 20px 4px; font-size: 11px; font-weight: 700; color: var(--po); }
.app-header { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; color: var(--pounamu-deep); padding: 10px 18px 14px; }

/* Discover card (center phone) */
.swipe-card {
  margin: 0 14px; border-radius: 20px; overflow: hidden; flex: 1;
  background: linear-gradient(160deg, #6b2338, #3a1220);
  display: flex; flex-direction: column; justify-content: flex-end; position: relative;
}
.swipe-card-photo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 80px; font-weight: 700; color: rgba(255,255,255,0.18);
}
.swipe-card-info { position: relative; z-index: 1; padding: 18px; color: white; background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent); }
.swipe-card-info strong { font-family: 'Fraunces', serif; font-size: 19px; display: block; }
.swipe-card-info span { font-size: 12px; opacity: 0.8; }
.swipe-card-info p { font-size: 12px; margin-top: 6px; opacity: 0.85; line-height: 1.4; }
.swipe-actions { display: flex; justify-content: center; gap: 16px; padding: 16px 0; }
.swipe-btn {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 6px 16px rgba(0,0,0,0.15); cursor: pointer; transition: transform 0.3s var(--ease);
}
.phone-stack:hover .swipe-btn { transform: scale(1); }
.swipe-btn--close { background: var(--kokowai-light); color: white; }
.swipe-btn--star { background: #3A7CA5; color: white; }
.swipe-btn--like { background: var(--pounamu); color: white; }

/* Chat screen (left phone) */
.app-chat { flex: 1; padding: 6px 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 12.5px; line-height: 1.4; }
.bubble--in { background: white; color: var(--po); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.bubble--out { background: var(--pounamu); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

/* Match screen (right phone) */
.phone-screen--match { align-items: center; justify-content: center; text-align: center; padding: 0 24px; background: linear-gradient(160deg, var(--pounamu-deep), var(--po)); color: white; }
.phone-screen--match .app-statusbar { position: absolute; top: 0; left: 0; right: 0; color: white; }
.match-burst { display: flex; margin-bottom: 22px; }
.match-avatar {
  width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; color: white; border: 3px solid var(--po);
}
.match-avatar--a { background: #6b2338; margin-right: -18px; z-index: 1; }
.match-avatar--b { background: var(--kowhai); }
.phone-screen--match h3 { font-family: 'Fraunces', serif; font-size: 26px; margin-bottom: 8px; }
.phone-screen--match p { font-size: 13px; opacity: 0.75; margin-bottom: 22px; }
.match-cta { background: var(--kokowai); padding: 12px 28px; border-radius: 999px; font-size: 13px; font-weight: 700; }

.mascot-float {
  position: absolute; bottom: -10px; left: 4%; width: 130px; z-index: 3;
  animation: mascotBob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
}
@keyframes mascotBob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }

@media (max-width: 860px) {
  .phone-stack { flex-direction: column; gap: 50px; }
  .phone--left, .phone--right { transform: none; }
  .phone-stack:hover .phone--left, .phone-stack:hover .phone--right { transform: none; }
  .mascot-float { display: none; }
}

/* ── Stats band ──────────────────────────────────────────── */
.stats {
  background: linear-gradient(rgba(11,15,20,0.82), rgba(11,15,20,0.9)), url('../assets/img/nz-mountains-2.jpg') center / cover fixed;
  padding: 120px 6vw; text-align: center;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; max-width: 1100px; margin: 0 auto; }
.stat-num { font-family: 'Fraunces', serif; font-size: clamp(40px, 6vw, 68px); font-weight: 600; color: var(--kowhai-light); }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Feature rows ────────────────────────────────────────── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 90px 6vw;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-row:hover .feature-media img { transform: scale(1.06); }
.feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,15,20,0.5)); }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--pounamu-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.feature-tag .num { color: var(--kokowai); }
.feature-copy h3 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; margin-bottom: 20px; }
.feature-copy p { color: var(--ink-dim); font-size: 17px; line-height: 1.7; max-width: 460px; }
.feature-copy .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: var(--ink-dim); }

/* ── How it works ────────────────────────────────────────── */
.steps { max-width: 1000px; margin: 0 auto; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 46px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { text-align: center; }
.step-num {
  width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600;
  background: var(--po-light); border: 1px solid rgba(255,255,255,0.1); color: var(--kowhai-light);
  position: relative; z-index: 2; transition: transform 0.5s var(--ease), background 0.5s;
}
.step:hover .step-num { transform: scale(1.1); background: var(--kokowai); color: white; border-color: var(--kokowai); }
.step h4 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.step p { font-size: 14px; color: var(--ink-faint); line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials { background: var(--po-light); padding: 160px 0; overflow: hidden; }
.testi-track { display: flex; gap: 28px; width: max-content; animation: testiScroll 40s linear infinite; }
.testimonials:hover .testi-track { animation-play-state: paused; }
@keyframes testiScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi-card {
  width: 380px; background: var(--po); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
  padding: 32px; flex-shrink: 0;
}
.testi-card .stars { color: var(--kowhai-light); letter-spacing: 4px; margin-bottom: 18px; font-size: 14px; }
.testi-card p.quote { font-size: 16px; line-height: 1.7; color: var(--ink-dim); font-style: italic; font-family: 'Fraunces', serif; }
.testi-who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-name { font-weight: 700; font-size: 14px; }
.testi-loc { font-size: 12px; color: var(--ink-faint); }

/* ── Fern divider ────────────────────────────────────────── */
.fern-divider { height: 140px; display: flex; align-items: center; justify-content: center; opacity: 0.15; }

/* ── CTA / download ──────────────────────────────────────── */
.cta-section {
  position: relative; padding: 200px 6vw; text-align: center; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0; background: url('../assets/img/nz-landscape.jpg') center / cover fixed;
}
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--po) 0%, rgba(11,15,20,0.55) 30%, rgba(11,15,20,0.85) 100%); }
.cta-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 600; }
.cta-content p { margin: 24px 0 44px; color: var(--ink-dim); font-size: 18px; }
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.store-badge:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.store-badge .icon { font-size: 22px; }
.store-badge .label small { display: block; font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge .label strong { font-size: 16px; }

/* ── Footer ──────────────────────────────────────────────── */
footer { padding: 70px 6vw 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-faint); font-size: 14px; line-height: 1.6; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-dim); margin-bottom: 12px; }
.footer-col a:hover { color: var(--kowhai-light); }
.footer-bottom {
  max-width: 1200px; margin: 60px auto 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-faint);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .section-pad { padding: 100px 6vw; }
}
