/* Opal — Opulent editorial aesthetic */

/* === CSS Variables === */
:root {
  --bg: #faf8f5;
  --bg-warm: #f5f0e8;
  --ink: #1a1814;
  --ink-soft: #4a4540;
  --ink-muted: #8a8278;
  --accent: #c8893a;
  --accent-warm: #e8a96a;
  --rose: #c47a7a;
  --amber: #c8a03a;
  --surface: #ffffff;
  --border: #e8e4de;
  --border-soft: #f0ece6;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

/* === Navigation === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 245, 0.88);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:last-child {
  background: var(--ink); color: var(--bg);
  padding: 8px 18px; border-radius: 4px;
  font-size: 13px; font-weight: 500;
  transition: opacity 0.15s;
}
.nav-links a:last-child:hover { opacity: 0.8; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 32px 80px;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f0d9b0 0%, transparent 70%);
  top: -100px; right: -50px;
  opacity: 0.35;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #e8c890 0%, transparent 70%);
  bottom: 80px; left: -80px;
  opacity: 0.25;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #d4b880 0%, transparent 70%);
  top: 40%; right: 35%;
  opacity: 0.15;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 560px; flex-shrink: 0;
}

.hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 137, 58, 0.1);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(200, 137, 58, 0.2);
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 24px;
}
.hero-headline em { font-style: italic; color: var(--accent-warm); }

.hero-sub {
  font-size: 18px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 40px; font-weight: 300;
}

.cta-form { display: flex; gap: 0; max-width: 440px; }
.cta-input {
  flex: 1; padding: 14px 18px;
  border: 1.5px solid var(--border); border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  background: var(--surface); color: var(--ink);
  outline: none; transition: border-color 0.15s;
}
.cta-input:focus { border-color: var(--accent); }
.cta-input.error { border-color: var(--rose); }
.cta-input::placeholder { color: var(--ink-muted); }

.cta-btn {
  padding: 14px 24px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 0 4px 4px 0;
  font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
}
.cta-btn:hover { opacity: 0.85; }
.cta-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cta-note { font-size: 12px; color: var(--ink-muted); margin-top: 12px; }
.cta-success {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: #f0f7f0; border: 1px solid #c8dcc8;
  border-radius: 4px; margin-top: 16px;
  font-size: 14px; color: #2a6a2a;
}

/* Hero Visual */
.hero-visual {
  position: relative; z-index: 2;
  flex: 1; display: flex;
  justify-content: flex-end; padding-left: 80px;
}

.bookmark-stack { display: flex; flex-direction: column; gap: 12px; }

.bookmark {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px 18px;
  width: 380px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bookmark:hover { transform: translateX(-4px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.bm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 4px; }
.dot-amber { background: var(--amber); }
.dot-rose { background: var(--rose); }
.bm-content { flex: 1; min-width: 0; }
.bm-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-summary { font-size: 13px; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-meta { font-size: 11px; color: var(--ink-muted); margin-top: 6px; }

.digest-card {
  background: var(--ink); color: var(--bg);
  border-radius: 6px; padding: 18px 20px;
  width: 380px; margin-top: 4px;
  box-shadow: 0 4px 20px rgba(26, 24, 20, 0.2);
}
.dc-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: rgba(250,248,245,0.7); }
.dc-logo { font-size: 14px; opacity: 0.8; }
.dc-count {
  font-size: 11px; background: rgba(200, 137, 58, 0.25); color: var(--accent-warm);
  display: inline-block; padding: 2px 10px; border-radius: 10px; margin-bottom: 10px;
}
.dc-preview { font-size: 13px; color: rgba(250,248,245,0.6); line-height: 1.5; font-style: italic; }

/* === How it works === */
.how { padding: 120px 32px; background: var(--bg-warm); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.how-headline { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 64px; max-width: 500px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { position: relative; }
.step-num { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 16px; }
.step-icon { font-size: 32px; color: var(--accent); margin-bottom: 16px; }
.step h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

/* === Features === */
.features { padding: 100px 32px; background: var(--surface); }
.features-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature-card {
  padding: 24px; border: 1px solid var(--border-soft);
  border-radius: 6px; background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.fc-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; font-weight: 300; }

/* === Pricing === */
.pricing { padding: 100px 32px; background: var(--bg-warm); }
.pricing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.pricing-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.pricing-headline { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.pricing-sub { font-size: 16px; color: var(--ink-soft); margin-bottom: 48px; font-weight: 300; }

.price-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 48px; text-align: left;
  display: inline-block; width: 100%; max-width: 400px;
}
.pc-tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(200, 137, 58, 0.1); padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.pc-price { font-family: 'DM Serif Display', serif; font-size: 64px; color: var(--ink); letter-spacing: -0.03em; }
.pc-period { font-size: 15px; color: var(--ink-muted); margin-bottom: 32px; }
.pc-features { list-style: none; margin-bottom: 32px; }
.pc-features li { font-size: 15px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.pc-features li:last-child { border-bottom: none; }
.pc-btn {
  display: inline-block; padding: 14px 28px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; border-radius: 4px;
  font-size: 15px; font-weight: 500; transition: opacity 0.15s;
}
.pc-btn:hover { opacity: 0.85; }

/* === Footer === */
.footer { padding: 48px 32px; border-top: 1px solid var(--border-soft); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.footer-note { font-size: 14px; color: var(--ink-muted); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 48px; padding-top: 120px; }
  .hero-visual { padding-left: 0; justify-content: flex-start; }
  .bookmark, .digest-card { width: 100%; max-width: 380px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(:last-child) { display: none; }
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeUp 0.6s ease-out both; }
.hero-visual { animation: fadeUp 0.6s 0.2s ease-out both; }

.hidden { display: none !important; }