/* ============================================================
   NOTETAKE LANDING PAGE — STYLES
   ============================================================ */

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

:root {
  --green: #2DBF72;
  --green-dark: #24A661;
  --bg-dark: #0B0E1C;
  --bg-section: #0E1223;
  --bg-card: #141829;
  --bg-card-hover: #1B1F34;
  --border: #1F2440;
  --border-light: #2A3054;
  --text-primary: #FFFFFF;
  --text-secondary: #8888A0;
  --text-muted: #555568;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 28, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  font-size: 14px;
  padding: 9px 18px;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 191, 114, 0.3);
}

.btn-lg {
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  display: flex;
  align-items: center;
  padding-top: 60px;
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 191, 114, 0.1);
  border: 1px solid rgba(45, 191, 114, 0.25);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.accent {
  color: var(--green);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.hero-frame {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(45, 191, 114, 0.05);
}

/* ============================================================
   SCREENSHOT FRAMES & PLACEHOLDERS
   ============================================================ */

.screenshot-frame {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
}

.screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Side-panel screenshots that need to fill a fixed-height frame */
.how-frame .screenshot,
.ai-frame .screenshot {
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
  background: var(--bg-card);
  min-height: 240px;
}

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

.screenshot-placeholder code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--green);
  background: rgba(45, 191, 114, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.placeholder-hint {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  opacity: 0.6;
}

.dark-placeholder {
  background: #0E1020;
}

/* Hide placeholder when image loads */
.screenshot-frame .screenshot + .screenshot-placeholder {
  display: none;
}

/* Show placeholder if image errors */
.screenshot.error + .screenshot-placeholder,
.screenshot-placeholder.visible {
  display: flex;
}

/* ============================================================
   STATS
   ============================================================ */

#stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
  position: relative;
  z-index: 1;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

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

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.accent-label {
  color: var(--green);
}

.section-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.left-align {
  text-align: left;
}

.section-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.section-sub.left-align {
  text-align: left;
  margin: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */

#features {
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

#features .section-title,
#features .section-label {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(45, 191, 114, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.feature-icon--red    { background: rgba(248, 113, 113, 0.1); color: #F87171; }
.feature-icon--blue   { background: rgba(96,  165, 250, 0.1); color: #60A5FA; }
.feature-icon--purple { background: rgba(167, 139, 250, 0.1); color: #A78BFA; }
.feature-icon--amber  { background: rgba(251, 191,  36, 0.1); color: #FBBF24; }
.feature-icon--teal   { background: rgba(34,  211, 238, 0.1); color: #22D3EE; }

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   APPEARANCE
   ============================================================ */

#appearance {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

#appearance .section-inner {
  max-width: 1400px;
  padding-left: 40px;
  padding-right: 40px;
}

#appearance .section-sub {
  margin-bottom: 0;
}

.appearance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.appearance-item {
  position: relative;
}

.appearance-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.dark-frame {
  background: #0E1020;
}

.light-frame {
  background: #EFF2EE;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */

#how-it-works {
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.how-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.how-text .section-sub {
  margin-bottom: 32px;
}

.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.how-bullet {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 8px;
}

/* ============================================================
   AI
   ============================================================ */

#ai {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ai-text .section-sub {
  margin-bottom: 32px;
}

/* ============================================================
   CTA
   ============================================================ */

#cta {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 6px;
}

.footer-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

.footer-legal {
  display: flex;
  gap: 4px;
}

.footer-logo {
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-frame {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .how-grid,
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-image {
    order: -1;
  }

  .stats-inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    min-width: 120px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .section-inner {
    padding: 72px 24px;
  }

  .cta-inner {
    padding: 80px 24px;
  }
}

/* ============================================================
   BACKGROUND BLOBS
   ============================================================ */

.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: rgba(45, 191, 114, 0.09);
  top: -200px;
  right: -100px;
  animation: blob-drift-1 22s ease-in-out infinite;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: rgba(60, 100, 220, 0.07);
  bottom: 10%;
  left: -200px;
  animation: blob-drift-2 28s ease-in-out infinite;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: rgba(45, 191, 114, 0.05);
  top: 55%;
  right: 15%;
  animation: blob-drift-3 20s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-70px, 90px) scale(1.08); }
  66%       { transform: translate(50px, -60px) scale(0.94); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(90px, -70px) scale(1.06); }
  66%       { transform: translate(-50px, 90px) scale(1.1); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-90px, -50px) scale(1.12); }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }
[data-animate][data-delay="5"] { transition-delay: 0.40s; }
[data-animate][data-delay="6"] { transition-delay: 0.48s; }

/* ============================================================
   HERO APP ICON
   ============================================================ */

.hero-app-icon-wrap {
  margin-bottom: 20px;
}

.hero-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.06);
  display: block;
}
