/* MemoryLock - Warm, intimate, candlelight aesthetic */
:root {
  --bg-deep: #0f0e0c;
  --bg-warm: #1a1714;
  --bg-card: #231f1a;
  --bg-card-hover: #2d2822;
  --amber: #d4a056;
  --amber-light: #e8c48a;
  --amber-glow: rgba(212, 160, 86, 0.15);
  --amber-glow-strong: rgba(212, 160, 86, 0.3);
  --text-primary: #f0ebe3;
  --text-secondary: #a89f94;
  --text-muted: #6d645b;
  --accent-warm: #c47b3a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-family: var(--font-display); font-style: italic; color: var(--amber-light); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, var(--amber-glow-strong) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--amber-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
}

.vault-icon {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.vault-ring-1 {
  width: 120px; height: 120px;
  border-color: rgba(212, 160, 86, 0.1);
  animation: pulse-ring 4s ease-in-out infinite;
}

.vault-ring-2 {
  width: 90px; height: 90px;
  border-color: rgba(212, 160, 86, 0.2);
  animation: pulse-ring 4s ease-in-out infinite 1s;
}

.vault-ring-3 {
  width: 60px; height: 60px;
  border-color: rgba(212, 160, 86, 0.3);
  animation: pulse-ring 4s ease-in-out infinite 2s;
}

.vault-core {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-lock { font-size: 1.5rem; }

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

/* === CTA BUTTONS === */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.cta-btn-primary {
  background: var(--amber);
  color: var(--bg-deep);
}
.cta-btn-primary:hover { background: var(--amber-light); }

.cta-btn-ghost {
  color: var(--text-secondary);
  border: 1px solid rgba(212,160,86,0.2);
}
.cta-btn-ghost:hover { border-color: var(--amber); color: var(--text-primary); }

/* === PHILOSOPHY === */
.philosophy {
  padding: 8rem 2rem;
  background: var(--bg-warm);
}

.philosophy-inner { max-width: 960px; margin: 0 auto; }

.philosophy-label,
.features-label,
.howit-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.philosophy h2,
.features h2,
.howit h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 160, 86, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s;
}

.philosophy-card:hover {
  border-color: rgba(212, 160, 86, 0.2);
  background: var(--bg-card-hover);
}

.card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(212, 160, 86, 0.25);
  margin-bottom: 1rem;
  font-weight: 600;
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.philosophy-contrast {
  border-left: 2px solid var(--amber);
  padding-left: 2rem;
  max-width: 680px;
}

.philosophy-contrast p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contrast-bold {
  color: var(--text-primary) !important;
  font-size: 1.15rem !important;
  font-weight: 400;
}

/* === FEATURES === */
.features {
  padding: 8rem 2rem;
  background: var(--bg-deep);
}

.features-inner { max-width: 960px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid rgba(212, 160, 86, 0.06);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-item:hover {
  border-color: rgba(212, 160, 86, 0.15);
  transform: translateY(-2px);
}

.feature-large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 160, 86, 0.05) 100%);
  border-color: rgba(212, 160, 86, 0.12);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* === HOW IT WORKS === */
.howit {
  padding: 8rem 2rem;
  background: var(--bg-warm);
}

.howit-inner { max-width: 960px; margin: 0 auto; }

.triggers-grid {
  display: grid;
  gap: 0;
  margin-bottom: 4rem;
}

.trigger-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(212, 160, 86, 0.06);
}

.trigger-item:last-child { border-bottom: none; }

.trigger-dot {
  width: 10px;
  height: 10px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--amber-glow-strong);
}

.trigger-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.trigger-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.story-builder {
  background: linear-gradient(135deg, rgba(212, 160, 86, 0.08) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(212, 160, 86, 0.15);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
}

.story-builder-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--amber);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.story-builder h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.story-builder > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 640px;
}

.story-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--amber-light);
  font-size: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(212, 160, 86, 0.25);
}

/* === CLOSING === */
.closing {
  position: relative;
  padding: 10rem 2rem;
  text-align: center;
  background: var(--bg-deep);
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.closing-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--amber-light);
  font-style: italic;
}

/* === FOOTER === */
.site-footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-warm);
  border-top: 1px solid rgba(212, 160, 86, 0.06);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: 1;
  }

  .hero { padding: 4rem 1.5rem 3rem; min-height: 90vh; }
  .philosophy, .features, .howit { padding: 5rem 1.5rem; }
  .closing { padding: 6rem 1.5rem; }
  .story-builder { padding: 2rem 1.5rem; }
  .hero-glow { width: 400px; height: 400px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .philosophy h2, .features h2, .howit h2 { font-size: 1.6rem; }
  .closing h2 { font-size: 1.8rem; }
}