/* Sticky Notes Landing Page — Styles */
:root {
  --bg: #0f1117;
  --bg-alt: #161822;
  --bg-card: #1e2030;
  --text: #e8eaed;
  --text-muted: #9aa0b4;
  --accent: #FFD600;
  --accent-hover: #FFEB3B;
  --pink: #f48fb1;
  --blue: #4fc3f7;
  --green: #81c784;
  --purple: #ce93d8;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f5;
    --bg-alt: #fff;
    --bg-card: #fff;
    --text: #1a1a2e;
    --text-muted: #666;
    --shadow: 0 4px 24px rgba(0,0,0,.12);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.float-note {
  position: absolute;
  width: 130px;
  padding: 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x);
  top: var(--y);
  box-shadow: 2px 4px 16px rgba(0,0,0,.25);
}

.note-yellow { background: #ffeb3b; }
.note-pink   { background: #f48fb1; color: #fff; }
.note-blue   { background: #4fc3f7; color: #fff; }
.note-green  { background: #81c784; color: #fff; }
.note-purple { background: #ce93d8; color: #fff; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

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

.logo-title { margin-bottom: 36px; }
.logo { width: 96px; height: 96px; margin-bottom: 16px; }
.logo-title h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD600, #f48fb1, #ce93d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 300;
}
.tagline em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

.btn-primary {
  background: var(--accent);
  color: #1a1a2e;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text-muted);
}
.btn-secondary:hover { border-color: var(--text); background: rgba(255,255,255,.05); }

.btn-lg { padding: 18px 36px; font-size: 1.15rem; }

.hero-version { margin-top: 20px; color: var(--text-muted); font-size: .85rem; }

/* ── Features ── */
.features { padding: 100px 0; }
.features h2, .demo h2, .how-it-works h2, .architecture h2, .cta h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.5); }

.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ── Demo ── */
.demo {
  padding: 80px 0;
  background: var(--bg-alt);
}

.demo-browser {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0,0,0,.2);
}
.browser-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-bar {
  flex: 1;
  background: rgba(0,0,0,.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-lock { font-size: .75rem; }
.browser-url { color: var(--text-muted); }

.browser-body {
  position: relative;
  min-height: 280px;
  padding: 24px;
  background: #fafafa;
  color: #333;
}

.demo-placeholder-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 16px;
}

.demo-note {
  position: absolute;
  border-radius: 4px;
  box-shadow: 2px 4px 12px rgba(0,0,0,.15);
  animation: pop-in .4s ease-out both;
}
.demo-note:nth-child(2) { animation-delay: .1s; }
.demo-note:nth-child(3) { animation-delay: .2s; }
.demo-note:nth-child(4) { animation-delay: .3s; }
.demo-note:nth-child(5) { animation-delay: .4s; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

.demo-note-yellow { background: #fff59d; }
.demo-note-pink   { background: #f8bbd0; }
.demo-note-blue   { background: #b3e5fc; }
.demo-note-green  { background: #c8e6c9; }

.demo-note-header {
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.demo-note-body {
  padding: 8px 10px;
  font-size: .8rem;
  line-height: 1.4;
}

/* ── How it works ── */
.how-it-works { padding: 100px 0; }

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

.step { text-align: center; }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a2e;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p  { color: var(--text-muted); font-size: .95rem; }

/* ── Architecture ── */
.architecture {
  padding: 100px 0;
  background: var(--bg-alt);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: -48px;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.arch-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.arch-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.arch-card p  { color: var(--text-muted); font-size: .95rem; }
.arch-card code {
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .85rem;
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta h2 { font-size: 2.5rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer img { display: inline; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .logo-title h1 { font-size: 2.5rem; }
  .tagline { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { padding: 16px 28px; font-size: 1rem; }
  .features h2, .demo h2, .how-it-works h2, .architecture h2, .cta h2 { font-size: 1.6rem; }
  .section-subtitle { margin-top: -32px; margin-bottom: 32px; }
  .browser-body { min-height: 220px; }
  .demo-note { transform: scale(.85); }
}

@media (max-width: 480px) {
  .logo-title h1 { font-size: 2rem; }
  .logo { width: 64px; height: 64px; }
}

/* ── Legal pages ── */
.page-header {
  padding: 60px 0 30px;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 16px;
}
.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 8px;
}
.back-link:hover { text-decoration: underline; }
.subtitle { color: var(--text-muted); margin-top: 4px; font-size: .95rem; }

.legal-content {
  padding: 48px 0 80px;
}
.legal-content section {
  margin-bottom: 36px;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .95rem;
}
.legal-content ul {
  margin: 8px 0 8px 24px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content code {
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9rem;
}
.legal-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 12px 0;
  background: rgba(255,255,0,.04);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-size: .9rem;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }