/* === Memories Landing Page === */

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

:root {
  --bg: #0a0a0a;
  --bg-alt: #0f0f11;
  --surface: #151517;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --accent: #863bff;
  --accent-soft: rgba(134, 59, 255, 0.15);
  --accent-glow: rgba(134, 59, 255, 0.3);
  --yellow: #fffc00;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Hero === */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Ambient glow orbs */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -15%;
  left: -10%;
  animation: drift1 20s ease-in-out infinite;
}

.glow-2 {
  width: 350px;
  height: 350px;
  background: #47bfff;
  bottom: -10%;
  right: -5%;
  animation: drift2 25s ease-in-out infinite;
}

.glow-3 {
  width: 250px;
  height: 250px;
  background: #ff6bca;
  top: 40%;
  right: 20%;
  opacity: 0.2;
  animation: drift3 18s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.08); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* Floating memory card shards */
.float-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.float-1 {
  width: 120px;
  height: 180px;
  top: 15%;
  right: 8%;
  transform: rotate(8deg);
  animation: floatUp 12s ease-in-out infinite;
}

.float-2 {
  width: 80px;
  height: 120px;
  bottom: 20%;
  left: 6%;
  transform: rotate(-6deg);
  animation: floatUp 16s ease-in-out infinite 3s;
}

.float-3 {
  width: 100px;
  height: 150px;
  top: 55%;
  left: 15%;
  transform: rotate(3deg);
  animation: floatUp 14s ease-in-out infinite 6s;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(var(--r, 5deg)); opacity: 0.5; }
  50% { transform: translateY(-20px) rotate(var(--r, 5deg)); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-h1 em {
  font-style: italic;
  font-size: 1.25em;
  font-family: Georgia, "Times New Roman", "Playfair Display", serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #c78fff, #ff6bca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-cta:active {
  transform: scale(0.97);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* === Sections === */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.65;
}

/* === Problem === */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.problem-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Solution === */

.solution-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.highlight {
  padding: 20px 0;
}

.highlight strong {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.highlight p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === Features === */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(134, 59, 255, 0.2);
  box-shadow: 0 0 20px rgba(134, 59, 255, 0.06);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* === Steps === */

.steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.steps-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(255, 204, 0, 0.06);
  border: 1px solid rgba(255, 204, 0, 0.15);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.steps-note strong {
  color: var(--text);
}

/* === PWA === */

.pwa-section {
  max-width: 640px;
}

.pwa-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 16px;
}

/* === FAQ === */

.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Trust === */

.trust-section {
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.trust-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.trust-cta {
  margin-top: 40px;
}

/* === Footer === */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Mobile adjustments === */

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-h1 {
    letter-spacing: -0.8px;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section {
    padding: 64px 0;
  }

  .float-card {
    display: none;
  }

  .glow {
    filter: blur(60px);
    opacity: 0.25;
  }

  .problem-grid,
  .feature-grid,
  .solution-highlights,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
