/* ── COUPLESPACE LANDING CSS ── */

/* ── THEME VARIABLES ── */
:root {
  --bg: #080810;
  --surface: #0f0f1a;
  --surface2: #161625;
  --border: #1e1e32;
  --accent: #e8654a;
  --accent2: #ff9f7f;
  --gold: #c9a96e;
  --text: #f0ede8;
  --text2: #8b8aa0;
  --text3: #44435a;
  --shadow: rgba(0,0,0,0.5);
  --hero-glow: rgba(232,101,74,0.12);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --transition-theme: background 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo img:hover {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 6px 18px rgba(232,101,74,0.6));
}
.nav-logo {
  font-size: 1.7rem;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface2: #f3f0ea;
  --border: #e2ddd5;
  --accent: #e8654a;
  --accent2: #d44d32;
  --gold: #a07830;
  --text: #1a1814;
  --text2: #6b6860;
  --text3: #a8a49e;
  --shadow: rgba(0,0,0,0.08);
  --hero-glow: rgba(232,101,74,0.07);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  transition: var(--transition-theme);
}

/* ── NOISE OVERLAY (dark only) ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.4;
  transition: opacity 0.6s ease;
}
[data-theme="light"] body::before { opacity: 0.1; }

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 12px; height: 12px;
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(232,101,74,0.4);
}
/* In dark mode make cursor more visible with a brighter glow */
[data-theme="dark"] .cursor {
  background: #ff7a5c;
  box-shadow: 0 0 10px #ff7a5c, 0 0 24px rgba(255,122,92,0.6), 0 0 40px rgba(255,122,92,0.2);
}
.cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid rgba(232,101,74,0.5);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}
[data-theme="dark"] .cursor-ring {
  border-color: rgba(255,122,92,0.5);
}
.cursor.hovering { width: 22px; height: 22px; }
.cursor-ring.hovering { width: 64px; height: 64px; border-color: rgba(232,101,74,0.25); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-theme), border-color 0.4s, padding 0.3s;
}
nav.scrolled {
  border-bottom-color: var(--border);
  padding: 14px 48px;
}
[data-theme="light"] nav { background: rgba(250,248,245,0.88); }
[data-theme="dark"]  nav { background: linear-gradient(to bottom, rgba(8,8,16,0.92), transparent); }

.nav-logo {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
  color: var(--text); text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-logo span { color: var(--accent); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.05em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* Theme toggle button */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; position: relative; transition: var(--transition-theme);
  flex-shrink: 0;
}
.theme-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
}
[data-theme="light"] .theme-toggle-knob { transform: translateX(20px); }

.btn-nav {
  padding: 10px 24px;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); border-radius: 40px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
}
.btn-nav:hover { background: var(--accent); color: white; box-shadow: 0 4px 20px rgba(232,101,74,0.3); }

/* ── FLOATING EMOJIS ── */
.floaters {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden;
  /* z-index 5: above all sections (z-index 2), below nav (z-index 100) and modal (9000) */
  z-index: 5;
}
.floater {
  position: absolute;
  bottom: -80px;
  top: auto;
  --drift: 30px;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  user-select: none;
  will-change: transform, opacity;
}
/* boost saturation in light so colorful emoji hearts are gently visible on cream background */
[data-theme="light"] .floaters { filter: saturate(1.1); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden; z-index: 2;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--hero-glow) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(201,169,110,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 60%, var(--hero-glow) 0%, transparent 50%);
  pointer-events: none;
  transition: var(--transition-theme);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  background: rgba(232,101,74,0.1); border: 1px solid rgba(232,101,74,0.25);
  border-radius: 40px; font-size: 0.78rem; font-weight: 500;
  color: var(--accent2); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 32px; animation: fadeUp 0.8s ease 0.2s both;
}
.hero-eyebrow::before { content: '💬'; font-size: 0.85rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 28px; animation: fadeUp 0.8s ease 0.35s both;
  transition: color 0.6s;
}
.hero-title em {
  font-style: italic; color: var(--accent); position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: lineGrow 1.2s ease 1.2s both; transform-origin: left;
}

.hero-sub {
  font-size: 1.1rem; color: var(--text2);
  max-width: 520px; line-height: 1.7; font-weight: 300;
  margin-bottom: 48px; animation: fadeUp 0.8s ease 0.5s both;
  transition: color 0.6s;
}

.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.65s both;
}

.btn-primary-lg {
  padding: 16px 40px; background: var(--accent); color: white;
  border: none; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 32px rgba(232,101,74,0.3); letter-spacing: 0.02em;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232,101,74,0.45); }
.btn-primary-lg:active { transform: translateY(0); }

.btn-ghost-lg {
  padding: 16px 40px; background: transparent;
  color: var(--text2); border: 1px solid var(--border);
  border-radius: 50px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 400; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-lg:hover { border-color: var(--text2); color: var(--text); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text3); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  animation: fadeUp 1s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── CHAT PREVIEW (3 mockups) ── */
.preview-section {
  padding: 60px 24px 120px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}

.chat-mockup {
  width: 100%; max-width: 360px; flex: 0 1 360px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 32px 80px var(--shadow), 0 0 0 1px rgba(255,255,255,0.04);
  transition: var(--transition-theme);
  position: relative;
}

/* Each card floats at a slightly different offset for a layered look */
.mock-float-1 { animation: float  6s  ease-in-out infinite; }
.mock-float-2 { animation: float2 7s  ease-in-out infinite 0.8s; }
.mock-float-3 { animation: float3 6.5s ease-in-out infinite 1.6s; }

/* The two group mockups are slightly smaller and offset vertically */
.mockup-group {
  max-width: 320px; flex: 0 1 320px;
  margin-top: 32px;
}

/* Mockup label badge at the bottom */
.mockup-label {
  text-align: center; padding: 8px 0 14px;
  font-size: 0.76rem; font-weight: 500;
  color: var(--text3); letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  transition: var(--transition-theme);
}

.mockup-header {
  padding: 16px 18px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition-theme);
}
[data-theme="light"] .mockup-header { background: rgba(0,0,0,0.02); }

.mockup-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.95rem; color: white;
  position: relative; flex-shrink: 0;
}
.group-av {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  font-size: 1rem; border-radius: 10px;
}
.fam-av { background: linear-gradient(135deg, #0984e3, #74b9ff); }

.mockup-online {
  position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; border: 2px solid var(--surface);
}
.mockup-info h4 { font-size: 0.88rem; font-weight: 500; transition: color 0.6s; }
.mockup-info span { font-size: 0.73rem; color: #4ade80; }

.mockup-msgs {
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px; min-height: 220px;
}

.mock-sender {
  font-size: 0.68rem; color: var(--accent);
  font-weight: 600; padding-left: 2px; margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.mock-msg { display: flex; opacity: 0; animation: msgAppear 0.4s ease forwards; }
.mock-msg.me { justify-content: flex-end; }

.mock-bubble {
  max-width: 78%; padding: 9px 14px;
  border-radius: 16px; font-size: 0.86rem; line-height: 1.5;
  transition: var(--transition-theme);
}
.mock-msg.me   .mock-bubble { background: var(--accent); color: white; border-bottom-right-radius: 3px; }
.mock-msg.them .mock-bubble {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-bottom-left-radius: 3px;
}
.mock-time { font-size: 0.66rem; opacity: 0.45; margin-top: 2px; }
.mock-msg.me   .mock-time { text-align: right; }
.mock-msg.them .mock-time { text-align: left; }

.mockup-input {
  padding: 10px 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.02); transition: var(--transition-theme);
}
[data-theme="light"] .mockup-input { background: rgba(0,0,0,0.015); }
.mockup-input-box {
  flex: 1; padding: 9px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.82rem; color: var(--text3);
  transition: var(--transition-theme);
}
.mockup-send {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: 9px; display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 0.9rem; flex-shrink: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .preview-section { flex-direction: column; align-items: center; gap: 16px; }
  .mockup-group { margin-top: 0; max-width: 360px; flex: 0 1 360px; }
}

/* ── SECTION BASE ── */
.section {
  padding: 100px 24px;
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 2;
}

.section-label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300;
  line-height: 1.15; margin-bottom: 64px; max-width: 600px;
  transition: color 0.6s;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── HOW IT WORKS — bigger ── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px; background: var(--border); border-radius: 24px; overflow: hidden;
  transition: var(--transition-theme);
}

.step {
  background: var(--surface); padding: 48px 36px;
  position: relative; transition: background 0.35s, var(--transition-theme);
}
.step:hover { background: var(--surface2); }

.step-num {
  font-family: var(--font-display); font-size: 5.5rem; font-weight: 300;
  color: var(--text3); line-height: 1; margin-bottom: 24px;
  transition: color 0.3s;
}
.step:hover .step-num { color: var(--accent); }
.step h3 {
  font-family: var(--font-display); font-size: 1.65rem;
  font-weight: 400; margin-bottom: 14px;
}
.step p { color: var(--text2); font-size: 0.95rem; line-height: 1.75; font-weight: 300; transition: color 0.6s; }
.step-icon { position: absolute; top: 36px; right: 36px; font-size: 2rem; opacity: 0.35; }

/* ── CHAT JOURNEY SAMPLES ── */
.journey-section {
  padding: 100px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;       /* clip local emojis to this section */
  z-index: 2;
  transition: var(--transition-theme);
}

/* Local emoji layer — absolute inside section so always visible here */
.journey-emojis {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.journey-emoji {
  position: absolute;
  animation: journeyDrift linear forwards;
  user-select: none;
  will-change: transform, opacity;
  --jy: 0px; --jrot0: -8deg; --jrotm: 4deg; --jrotp: 12deg; --jrot1: 22deg;
}

/* Content above the emoji layer */
.journey-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 2;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 60px;
}
/* Content sits above the tint layer and above floaters' visual plane */
.journey-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
}


/* ── RESPONSIVE — full mobile overhaul ── */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .preview-section { gap: 16px; padding: 40px 16px 80px; }
  .chat-mockup  { max-width: 300px; flex: 0 1 300px; }
  .mockup-group { max-width: 280px; flex: 0 1 280px; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .steps        { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  /* Hide custom cursor on touch */
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }

  /* Nav */
  nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-right { gap: 10px; }
  .btn-nav { padding: 8px 16px; font-size: 0.8rem; }

  /* Hero */
  .hero { padding: 100px 20px 70px; }
  .hero-title { font-size: clamp(2.8rem, 11vw, 5rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary-lg, .btn-ghost-lg { padding: 14px 32px; font-size: 0.9rem; width: 100%; max-width: 300px; text-align: center; }

  /* Preview mockups — stack vertically, full width */
  .preview-section {
    flex-direction: column; align-items: center;
    gap: 20px; padding: 32px 16px 60px;
  }
  .chat-mockup,
  .mockup-group { max-width: 100%; flex: unset; width: 100%; margin-top: 0; }

  /* Sections */
  .section { padding: 64px 18px; }
  .section-title { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 40px; }

  /* How it works — single column */
  .steps { grid-template-columns: 1fr; border-radius: 18px; }
  .step { padding: 36px 28px; }
  .step-num { font-size: 4rem; margin-bottom: 16px; }
  .step h3 { font-size: 1.4rem; }
  .step-icon { top: 28px; right: 28px; font-size: 1.6rem; }

  /* Journey grid — single column */
  .journey-section { padding: 64px 18px; }
  .journey-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }

  /* Features — single column */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 28px 24px; }

  /* Privacy badges — 2 per row */
  .privacy-section { padding: 64px 18px; }
  .privacy-badges { gap: 8px; }
  .badge { font-size: 0.78rem; padding: 8px 14px; }

  /* CTA */
  .cta-section { padding: 80px 18px; }
  .cta-section .section-title { font-size: clamp(2rem, 8vw, 3rem); }

  /* Footer */
  footer {
    padding: 32px 18px; flex-direction: column;
    align-items: flex-start; gap: 10px;
  }

  /* Auth modal */
  .auth-modal { padding: 36px 22px; }
  .modal-logo { font-size: 1.6rem; margin-bottom: 24px; }
}

/* Small mobile (≤ 420px) */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-eyebrow { font-size: 0.7rem; padding: 5px 14px; }
  nav { padding: 12px 14px; }
  .nav-logo { font-size: 1.3rem; }
  .theme-toggle { width: 38px; height: 20px; }
  .theme-toggle-knob { width: 14px; height: 14px; }
  [data-theme="light"] .theme-toggle-knob { transform: translateX(18px); }
  .section-title { font-size: clamp(1.8rem, 9vw, 2.5rem); margin-bottom: 32px; }
  .journey-card-msgs { padding: 14px 12px; }
  .jbubble { font-size: 0.82rem; padding: 8px 12px; }
  .badge { font-size: 0.74rem; padding: 7px 12px; }
}


.journey-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, var(--transition-theme);
  cursor: default;
}
.journey-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px var(--shadow);
}

.journey-card-header {
  padding: 14px 18px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition-theme);
}
.jc-dot { width: 8px; height: 8px; border-radius: 50%; }
.jc-dot.green { background: #4ade80; }
.jc-dot.yellow { background: #fbbf24; }
.jc-dot.red { background: #f87171; }
.jc-label {
  margin-left: 4px; font-size: 0.75rem;
  color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase;
}

.journey-card-msgs { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }

.jmsg { display: flex; }
.jmsg.me { justify-content: flex-end; }

.jbubble {
  max-width: 80%; padding: 9px 14px;
  border-radius: 16px; font-size: 0.85rem; line-height: 1.5;
  transition: var(--transition-theme);
  opacity: 0;
  /* animation triggered when .revealed is added to card */
}
.journey-card.revealed .jbubble {
  animation: msgPopUp 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.jmsg.me   .jbubble { background: var(--accent); color: white; border-bottom-right-radius: 3px; }
.jmsg.them .jbubble {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-bottom-left-radius: 3px;
}
.jtime { font-size: 0.65rem; opacity: 0.45; margin-top: 2px; }
.jmsg.me   .jtime { text-align: right; }
.jmsg.them .jtime { text-align: left; }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}

.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s, var(--transition-theme);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(232,101,74,0.3); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(232,101,74,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 10px; }
.feature-card p { color: var(--text2); font-size: 0.88rem; line-height: 1.7; font-weight: 300; transition: color 0.6s; }
.feature-card p em { color: var(--accent); font-style: italic; }


/* ── PRIVACY ── */
.privacy-section {
  padding: 100px 24px;
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); text-align: center;
  transition: var(--transition-theme);
}
.privacy-section .section-title { margin: 0 auto 20px; text-align: center; max-width: 700px; }
.privacy-section .section-label { text-align: center; }

.privacy-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.badge {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: rgba(232,101,74,0.08); border: 1px solid rgba(232,101,74,0.2);
  border-radius: 40px; font-size: 0.83rem; color: var(--text2); font-weight: 400;
  transition: var(--transition-theme);
}
.badge span { color: var(--accent); }

/* ── CTA ── */
.cta-section {
  padding: 140px 24px; text-align: center;
  position: relative; overflow: hidden; z-index: 2;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none; transition: var(--transition-theme);
}
.cta-section .section-title { margin: 0 auto 16px; text-align: center; max-width: 700px; }
.cta-sub {
  color: var(--text2); font-size: 1rem; font-weight: 300;
  margin-bottom: 48px; max-width: 400px; margin-left: auto; margin-right: auto;
  transition: color 0.6s;
}

/* ── AUTH MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }

.auth-modal {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 40px;
  animation: fadeUp 0.4s ease; position: relative;
  transition: var(--transition-theme);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--text2);
  font-size: 1.4rem; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-logo {
  text-align: center; font-family: var(--font-display);
  font-size: 2rem; margin-bottom: 32px;
}
.modal-logo span { color: var(--accent); font-style: italic; }

.auth-tabs {
  display: flex; gap: 4px; background: var(--bg);
  border-radius: 12px; padding: 4px; margin-bottom: 28px;
  transition: var(--transition-theme);
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: var(--text2); font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500; border-radius: 9px; cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active { background: var(--surface2); color: var(--text); }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 500;
  color: var(--text2); margin-bottom: 6px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.form-group input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: var(--font-body); font-size: 0.93rem;
  outline: none; transition: border-color 0.2s, var(--transition-theme);
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text3); }

.btn-submit {
  width: 100%; padding: 14px; background: var(--accent); color: white;
  border: none; border-radius: 12px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; cursor: pointer; margin-top: 8px;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(232,101,74,0.3);
}
.btn-submit:hover { opacity: 0.9; }
.btn-submit:active { transform: scale(0.98); }

.auth-error {
  background: #3d1a17; border: 1px solid #6b2d26;
  color: #f0a896; border-radius: 10px;
  padding: 10px 14px; font-size: 0.83rem;
  margin-top: 10px; display: none;
}
[data-theme="light"] .auth-error { background: #fdecea; border-color: #f5c6c0; color: #c0392b; }

/* ── FOOTER ── */
footer {
  padding: 48px 48px 36px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; position: relative; z-index: 2;
  transition: var(--transition-theme);
}
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--text2); text-decoration: none; }
.footer-logo span { color: var(--accent); font-style: italic; }
footer p { color: var(--text3); font-size: 0.82rem; transition: color 0.6s; }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(-6px) rotate(0.5deg); }
  50%       { transform: translateY(6px) rotate(-0.5deg); }
}
@keyframes floatUp {
  0%   { transform: translateY(0)     translateX(0)                rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translateY(-52vh) translateX(var(--drift, 0px)) rotate(12deg); }
  92%  { opacity: 1; }
  100% { transform: translateY(-108vh) translateX(calc(var(--drift, 0px) * 1.6)) rotate(25deg); opacity: 0; }
}
/* Bubble pops up from bottom — like a real incoming message */
@keyframes msgPopUp {
  0%   { opacity: 0; transform: translateY(22px) scale(0.88); }
  55%  { opacity: 1; transform: translateY(-4px)  scale(1.03); }
  75%  { transform: translateY(2px)  scale(0.98); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Journey section — emojis drift horizontally across the section background */
@keyframes journeyDrift {
  0%   { transform: translateX(-80px) translateY(var(--jy, 0px)) rotate(var(--jrot0,-8deg)) scale(0.75); opacity: 0; }
  7%   { opacity: 1; }
  35%  { transform: translateX(30vw)  translateY(calc(var(--jy, 0px) - 25px))  rotate(var(--jrotm, 4deg))  scale(1.05); }
  65%  { transform: translateX(62vw)  translateY(calc(var(--jy, 0px) + 15px))  rotate(var(--jrotp, 12deg)) scale(0.95); }
  93%  { opacity: 0.75; }
  100% { transform: translateX(110vw) translateY(calc(var(--jy, 0px) - 40px))  rotate(var(--jrot1, 22deg)) scale(0.8);  opacity: 0; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* responsive is defined above near journey section */
/* ══════════════════════════════════════════
   FEATURE PREVIEW SECTIONS (Notebook / Space / Album)
══════════════════════════════════════════ */

.feature-preview-section {
  padding: 80px 0 100px;
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  transition: var(--transition-theme);
}
.feature-preview-section.fp-dark {
  background: var(--surface);
}

/* Section header */
.fp-header {
  text-align: center;
  padding: 0 24px 60px;
  max-width: 680px;
  margin: 0 auto;
}
.fp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  background: rgba(232,101,74,0.1); border: 1px solid rgba(232,101,74,0.25);
  border-radius: 40px; font-size: 0.78rem; font-weight: 500;
  color: var(--accent2); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.fp-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 14px;
  transition: color 0.6s;
}
.fp-title em { font-style: italic; color: var(--accent); }
.fp-sub {
  color: var(--text2); font-size: 1rem; font-weight: 300;
  line-height: 1.7; transition: color 0.6s;
}

/* Carousel wrapper — horizontal scroll */
.fp-carousel-wrap {
  position: relative;
  padding: 0 48px 20px;
}
.fp-carousel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 20px 48px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: flex-start;
  cursor: grab;
}
.fp-carousel:active { cursor: grabbing; }
.fp-carousel::-webkit-scrollbar { display: none; }

.fp-scroll-hint {
  text-align: center;
  font-size: 0.72rem; color: var(--text3);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 8px;
  animation: pulse 2.5s ease infinite;
}

/* ── FEAT MOCKUP (shared shell) ── */
.feat-mockup {
  flex: 0 0 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 64px var(--shadow), 0 0 0 1px rgba(255,255,255,0.04);
  scroll-snap-align: start;
  transition: var(--transition-theme);
}
.feat-mockup-mid  { flex: 0 0 300px; margin-top: 28px; }
.feat-mockup-right { flex: 0 0 300px; margin-top: 14px; }

.feat-mockup-header {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: var(--transition-theme);
}
[data-theme="light"] .feat-mockup-header { background: rgba(0,0,0,0.02); }

.feat-mockup-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.feat-mockup-info h4 { font-size: 0.87rem; font-weight: 500; transition: color 0.6s; }
.feat-mockup-info span { font-size: 0.72rem; color: var(--text2); transition: color 0.6s; }

.feat-mockup-label {
  text-align: center; padding: 8px 0 12px;
  font-size: 0.74rem; font-weight: 500;
  color: var(--text3); letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  transition: var(--transition-theme);
}

/* ── NOTEBOOK STYLES ── */
.nb-header {}
.nb-note-list { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.nb-note {
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  cursor: default; transition: background 0.2s, var(--transition-theme);
}
.nb-note.active { border-color: rgba(232,101,74,0.4); background: rgba(232,101,74,0.06); }
.nb-note-title  { font-size: 0.83rem; font-weight: 500; margin-bottom: 3px; transition: color 0.6s; }
.nb-note-preview { font-size: 0.74rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-note-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; font-size: 0.67rem; color: var(--text3);
}
.nb-pin { color: var(--accent); }
.nb-tag { color: var(--accent); font-size: 0.67rem; }

.nb-editor { padding: 14px 16px; min-height: 120px; position: relative; }
.nb-editor-content {
  font-size: 0.84rem; color: var(--text2); line-height: 1.7;
  transition: color 0.6s;
}
.nb-editor-content em { color: var(--accent); font-style: italic; }
.nb-editor-cursor {
  display: inline-block; color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
  font-weight: 300; font-size: 1rem;
}
@keyframes cursorBlink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.nb-toolbar {
  padding: 8px 12px; border-top: 1px solid var(--border);
  display: flex; gap: 6px; align-items: center;
}
.nb-tool {
  padding: 4px 9px; border-radius: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 0.74rem; color: var(--text2); cursor: default;
  transition: var(--transition-theme);
}
.nb-tool-save { background: var(--accent); border-color: var(--accent); color: white; margin-left: auto; }

.nb-search-bar {
  margin: 10px 12px 8px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
  font-size: 0.82rem; color: var(--text2);
  transition: var(--transition-theme);
}
.nb-search-icon { font-size: 0.82rem; }
.nb-search-input { flex: 1; color: var(--text); }

.nb-tags-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 12px 10px;
}
.nb-tag-pill {
  padding: 3px 10px; border-radius: 20px; font-size: 0.72rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); transition: var(--transition-theme);
}
.nb-tag-pill.active {
  background: rgba(232,101,74,0.12); border-color: rgba(232,101,74,0.4);
  color: var(--accent);
}

/* ── DIGITAL SPACE STYLES ── */
.sp-item-list { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.sp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 11px;
  background: var(--surface2); border: 1px solid var(--border);
  transition: var(--transition-theme);
}
.sp-item.active { border-color: rgba(232,101,74,0.35); }
.sp-item-thumb {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: white; background: var(--border);
}
.sp-yt { background: #e05555; font-size: 0.8rem; }
.sp-item-info { flex: 1; min-width: 0; }
.sp-item-title { font-size: 0.8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.6s; }
.sp-item-sub   { font-size: 0.69rem; color: var(--text2); margin-top: 1px; }
.sp-item-play  { font-size: 0.7rem; color: var(--text3); flex-shrink: 0; }

.sp-wishlist-title { font-size: 0.72rem; font-weight: 600; color: var(--text2); margin-bottom: 2px; letter-spacing: 0.05em; text-transform: uppercase; }

.sp-mood-section { padding: 12px 14px; }
.sp-mood-label { font-size: 0.72rem; color: var(--text2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.sp-mood-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.sp-mood-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 0.76rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); transition: all 0.2s, var(--transition-theme);
}
.sp-mood-chip.active {
  background: rgba(232,101,74,0.12); border-color: rgba(232,101,74,0.4);
  color: var(--accent);
}
.sp-quote {
  font-size: 0.78rem; color: var(--text2); font-style: italic;
  line-height: 1.5; padding: 10px 12px;
  background: var(--surface2); border-radius: 10px; border-left: 2px solid var(--accent);
  transition: var(--transition-theme);
}

/* ── DIGITAL ALBUM STYLES ── */
.al-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 10px 12px;
}
.al-photo {
  aspect-ratio: 1; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: default; position: relative;
  overflow: hidden; background: var(--surface2);
  transition: transform 0.2s;
}
.al-photo:hover { transform: scale(1.04); }
.al-fav {
  position: absolute; top: 4px; right: 4px;
  font-size: 0.7rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.al-upload {
  background: rgba(232,101,74,0.08); border: 1.5px dashed rgba(232,101,74,0.4);
  color: var(--accent); font-size: 0.75rem; font-weight: 500;
}

.al-lightbox { padding: 10px 12px; }
.al-lightbox-img {
  width: 100%; aspect-ratio: 16/10;
  border-radius: 12px; background: linear-gradient(135deg, #fdcb6e, #e17055);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; margin-bottom: 10px;
}
.al-lightbox-fav { position: absolute; top: 8px; right: 10px; font-size: 1.1rem; }
.al-caption-input {
  padding: 8px 12px; border-radius: 10px; font-size: 0.8rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); transition: var(--transition-theme);
  margin-bottom: 6px;
}
.al-lightbox-meta { font-size: 0.68rem; color: var(--text3); text-align: right; }

.al-filter-bar {
  display: flex; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.al-filter {
  padding: 4px 12px; border-radius: 20px; font-size: 0.76rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); cursor: default; transition: var(--transition-theme);
}
.al-filter.active {
  background: rgba(232,101,74,0.12); border-color: rgba(232,101,74,0.4);
  color: var(--accent);
}

/* ── DRAG-SCROLL JS HOOK ── */
/* Gradient fade edges on carousel */
.fp-carousel-wrap::before,
.fp-carousel-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 3; pointer-events: none;
}
.fp-carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.fp-carousel-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.fp-dark .fp-carousel-wrap::before { background: linear-gradient(to right, var(--surface), transparent); }
.fp-dark .fp-carousel-wrap::after  { background: linear-gradient(to left, var(--surface), transparent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .fp-carousel-wrap { padding: 0 16px 12px; }
  .fp-carousel { padding: 16px 16px 24px; gap: 16px; }
  .feat-mockup { flex: 0 0 280px; }
  .feat-mockup-mid, .feat-mockup-right { flex: 0 0 270px; margin-top: 0; }
  .fp-header { padding: 0 18px 40px; }
  .fp-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
}

/* ── NOTEBOOK STATS CARD ── */
.nb-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 4px;
}
.nb-stat-box {
  padding: 10px 8px; border-radius: 12px; text-align: center;
  background: var(--surface2); border: 1px solid var(--border);
  transition: var(--transition-theme);
}
.nb-stat-num {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 400; line-height: 1; margin-bottom: 4px;
  transition: color 0.6s;
}
.nb-stat-label { font-size: 0.65rem; color: var(--text3); letter-spacing: 0.04em; }

/* Better carousel balance — show partial 4th card as scroll hint */
.fp-carousel {
  justify-content: flex-start;
}
/* On wide screens show all 4 centered */
@media (min-width: 1400px) {
  .fp-carousel {
    justify-content: center;
  }
}