:root {
  --bg: #FAF8F6;
  --bg2: #F2EFEB;
  --bg3: #E8E4DF;
  --text: #1C1917;
  --text2: #57504A;
  --muted: #8A7F73;
  --accent: #E8613C;
  --accent-hover: #D4552F;
  --border: #DDD8D2;
  --success: #3D9A5F;
  --error: #C4413D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.header .logo { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; font-weight: 400; color: var(--text); }
.header .login-btn { padding: 10px 24px; border-radius: 8px; background: var(--bg3); color: var(--text); font-weight: 600; font-size: 14px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.2s; }
.header .login-btn:hover { border-color: var(--muted); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 100px 0 60px; }
.hero h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.05; margin-bottom: 20px; letter-spacing: normal; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 1.125rem; color: var(--text2); max-width: 480px; margin: 0 auto 20px; line-height: 1.6; }
.hero .cta-btn { display: inline-block; padding: 14px 36px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; transition: background 0.15s; }
.hero .cta-btn:hover { background: var(--accent-hover); text-decoration: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 40px 0 80px; }
.feature-card { background: var(--bg2); border-radius: 12px; padding: 24px; }
.feature-card h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Hero demo — animated wave bars */
.hero-demo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 36px; }
.hero-demo-bars { display: flex; align-items: center; gap: 2px; height: 40px; }
.hero-demo-bars-right { flex-direction: row-reverse; }
.hero-demo-bar {
  width: 3px; border-radius: 1.5px; background: var(--accent); opacity: 0.7;
  animation: wave-bar 1.2s ease-in-out infinite; transform-origin: center;
}
.hero-demo-btn {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  animation: pulse-glow-landing 1.8s ease-in-out infinite;
}

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.3); }
  25%      { transform: scaleY(0.8); }
  50%      { transform: scaleY(0.5); }
  75%      { transform: scaleY(1.0); }
}
@keyframes pulse-glow-landing {
  0%, 100% { box-shadow: 0 4px 24px rgba(232, 97, 60, 0.3); }
  50%      { box-shadow: 0 4px 40px rgba(232, 97, 60, 0.55); }
}

/* Bar heights — taper from center outward */
.hero-demo-bar { height: 28px; }
.hero-demo-bar:nth-child(-n+3) { height: 12px; }
.hero-demo-bar:nth-child(n+4):nth-child(-n+6) { height: 16px; }
.hero-demo-bar:nth-child(n+7):nth-child(-n+9) { height: 20px; }
.hero-demo-bar:nth-child(n+10):nth-child(-n+13) { height: 24px; }
.hero-demo-bar:nth-child(n+14):nth-child(-n+17) { height: 28px; }
.hero-demo-bar:nth-child(n+18) { height: 32px; }

/* Staggered delays — pseudo-random via modular arithmetic */
.hero-demo-bar:nth-child(1)  { animation-delay: 137ms; animation-duration: 1.00s; }
.hero-demo-bar:nth-child(2)  { animation-delay: 274ms; animation-duration: 1.08s; }
.hero-demo-bar:nth-child(3)  { animation-delay: 411ms; animation-duration: 1.16s; }
.hero-demo-bar:nth-child(4)  { animation-delay: 548ms; animation-duration: 1.04s; }
.hero-demo-bar:nth-child(5)  { animation-delay: 685ms; animation-duration: 1.12s; }
.hero-demo-bar:nth-child(6)  { animation-delay: 822ms; animation-duration: 1.20s; }
.hero-demo-bar:nth-child(7)  { animation-delay: 959ms; animation-duration: 1.08s; }
.hero-demo-bar:nth-child(8)  { animation-delay: 1096ms; animation-duration: 1.00s; }
.hero-demo-bar:nth-child(9)  { animation-delay: 33ms; animation-duration: 1.16s; }
.hero-demo-bar:nth-child(10) { animation-delay: 170ms; animation-duration: 1.04s; }
.hero-demo-bar:nth-child(11) { animation-delay: 307ms; animation-duration: 1.12s; }
.hero-demo-bar:nth-child(12) { animation-delay: 444ms; animation-duration: 1.20s; }
.hero-demo-bar:nth-child(13) { animation-delay: 581ms; animation-duration: 1.00s; }
.hero-demo-bar:nth-child(14) { animation-delay: 718ms; animation-duration: 1.08s; }
.hero-demo-bar:nth-child(15) { animation-delay: 855ms; animation-duration: 1.16s; }
.hero-demo-bar:nth-child(16) { animation-delay: 992ms; animation-duration: 1.04s; }
.hero-demo-bar:nth-child(17) { animation-delay: 1129ms; animation-duration: 1.12s; }
.hero-demo-bar:nth-child(18) { animation-delay: 66ms; animation-duration: 1.20s; }
.hero-demo-bar:nth-child(19) { animation-delay: 203ms; animation-duration: 1.00s; }
.hero-demo-bar:nth-child(20) { animation-delay: 340ms; animation-duration: 1.08s; }

@media (prefers-reduced-motion: reduce) {
  .hero-demo-bar, .hero-demo-btn { animation-play-state: paused; }
}

/* Footer */
.footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); margin: 0 12px; }
.footer a:hover { color: var(--text2); }
