/* ========================================
   LetMeNote — Main Stylesheet
   ======================================== */

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

:root {
  --bg: #08090e;
  --bg2: #0e1018;
  --surface: #141620;
  --surface2: #1c1f2e;
  --border: rgba(255,255,255,0.08);
  --text: #f0f2ff;
  --muted: #8891b0;
  --accent: #7c6ff7;
  --accent2: #a78bfa;
  --accent3: #60a5fa;
  --glow: rgba(124,111,247,0.3);
  --green: #34d399;
  --font: 'Inter', system-ui, sans-serif;
  --max-width: 1100px;
  --reading-width: 680px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(8, 9, 14, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124,111,247,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(96,165,250,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 80%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.875rem;
  background: rgba(124,111,247,0.12);
  border: 1px solid rgba(124,111,247,0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--glow);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover { background: var(--surface2); transform: translateY(-2px); }

/* ── APP MOCKUP ── */
.mockup-wrap {
  margin-top: 4rem;
  position: relative;
  max-width: 700px;
  width: 100%;
}

.mockup-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,111,247,0.2), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}

.mock-items {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mock-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}

.mock-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.mock-content { flex: 1; }

.mock-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.mock-label.task { color: var(--accent2); }
.mock-label.idea { color: #f59e0b; }
.mock-label.reminder { color: var(--green); }

.mock-text {
  font-size: 0.875rem;
  color: var(--text);
}

.mock-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.mock-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: rgba(124,111,247,0.15);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--accent2);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}

.mock-voice {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: rgba(124,111,247,0.08);
  border: 1px dashed rgba(124,111,247,0.3);
  border-radius: 8px;
}

.wave { display: flex; align-items: center; gap: 2px; }

.wave span {
  display: block;
  width: 3px;
  background: var(--accent2);
  border-radius: 3px;
  animation: wave 1s infinite ease-in-out;
}

.wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }
.wave span:nth-child(6) { height: 16px; animation-delay: 0.2s; }
.wave span:nth-child(7) { height: 8px; animation-delay: 0.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mock-voice-text {
  font-size: 0.8rem;
  color: var(--accent2);
}

/* ── STATS ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 1.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-val {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* ── SECTIONS ── */
section { padding: 5rem 1.5rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: rgba(124,111,247,0.1);
  border: 1px solid rgba(124,111,247,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(124,111,247,0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.fi-purple { background: rgba(124,111,247,0.15); }
.fi-blue { background: rgba(96,165,250,0.15); }
.fi-green { background: rgba(52,211,153,0.15); }
.fi-orange { background: rgba(251,146,60,0.15); }
.fi-pink { background: rgba(244,114,182,0.15); }
.fi-yellow { background: rgba(250,204,21,0.15); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.how-bg {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}

.step {
  position: relative;
  padding-left: 1rem;
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(124,111,247,0.4);
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── HIGHLIGHT CARD ── */
.highlight {
  background: linear-gradient(135deg, rgba(124,111,247,0.1), rgba(96,165,250,0.08));
  border: 1px solid rgba(124,111,247,0.2);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.highlight-content { flex: 1; min-width: 260px; }
.highlight-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.highlight-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.highlight-list {
  flex: 1;
  min-width: 240px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  color: var(--green);
}

/* ── FAQ SECTION ── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.faq-question { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.faq-answer { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,111,247,0.12), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  max-width: 600px;
  margin: 0 auto 1rem;
}

.cta-section p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

/* ── BREADCRUMB ── */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: '/'; color: var(--muted); opacity: 0.5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ── UTILITY CLASSES ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-muted { color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0.875rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 7rem 1.25rem 3rem; }
  .highlight { padding: 2rem; }
  .cta-section { padding: 4rem 1.25rem; }
  section { padding: 3.5rem 1.25rem; }
  .stats { gap: 1.5rem; }
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PRINT STYLES ── */
@media print {
  nav, .nav-cta, .hero-bg, .hero-grid, .mockup-glow, footer { display: none; }
  body { background: #fff; color: #000; }
  .fade-up { opacity: 1; transform: none; }
  a { color: #000; text-decoration: underline; }
}
