:root {
  --ink: #0b0d14;
  --paper: #f6f2ea;
  --stone: #d9d2c7;
  --copper: #b5663b;
  --deep: #1e2433;
  --mist: #f0ece3;
  --accent: #1a7f6b;
  --accent-2: #b51f2e;
  --line: rgba(11,13,20,0.12);
  --shadow: 0 30px 80px rgba(10,12,18,0.18);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: "Archivo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.2px;
}

.h-display, h1, h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(181,102,59,0.12), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(26,127,107,0.10), transparent 30%),
    radial-gradient(circle at 40% 80%, rgba(181,31,46,0.10), transparent 35%);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

.nav {
  position: sticky; top: 0; z-index: 10;
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 28px;
  background: rgba(246,242,234,0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; letter-spacing: 1px; font-size: 18px; text-transform: uppercase; }
.nav a { margin-left: 18px; font-weight: 600; }
.nav .btn { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; }

.btn { display:inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 600; transition: all .2s; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

.hero {
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 36px;
  padding: 72px 28px 32px;
}
.hero-card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content:""; position:absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(26,127,107,0.12);
}
.hero .eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.hero h1 { font-size: 52px; margin: 8px 0 16px; }
.hero p { font-size: 18px; color: #3c4356; }

.marquee { margin-top: 18px; display:flex; gap:10px; flex-wrap: wrap; }
.badge { padding: 6px 12px; border-radius: 999px; background: var(--mist); border:1px solid var(--line); font-size: 12px; }

.snapshot { display:flex; gap:10px; margin-top: 16px; }
.pill { padding: 6px 10px; border-radius:999px; font-size:12px; text-transform: uppercase; }
.pill.green { background:#e7f5ef; color:#1a7f6b; }
.pill.yellow { background:#fff4d6; color:#8a5a00; }
.pill.red { background:#ffe1e1; color:#b10000; }

.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top: 12px; }
.metrics div { background: var(--mist); padding:12px; border-radius:12px; text-align:center; }
.metrics strong { display:block; font-size:18px; }

.section { padding: 64px 28px; }
.section.alt { background: #fffdf8; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section h2 { font-size: 32px; margin-bottom: 20px; }
.grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { background: #fffdf8; border:1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 18px 40px rgba(10,12,18,0.08); }
.card h4 { margin-top:0; }

.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.steps span { display:inline-block; font-weight:700; padding:6px 12px; border-radius: 999px; background: var(--mist); margin-bottom: 8px; }

.pricing { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.price-card { background:#fffdf8; border:1px solid var(--line); border-radius: 18px; padding: 24px; text-align:center; }
.price-card.featured { border:2px solid var(--ink); transform: translateY(-6px); }
.price { font-size: 34px; font-weight:700; margin: 10px 0; }

.footer { text-align:center; padding: 32px; border-top:1px solid var(--line); background:#fffdf8; }

.auth { min-height:100vh; display:flex; align-items:center; justify-content:center; }
.auth-card { width: 400px; background:#fffdf8; border:1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card input { width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; margin-top:8px; }
.auth-card label { display:block; margin-top:12px; font-size:12px; color:#566; }
.error { background:#ffe1e1; padding:10px; border-radius:8px; margin-bottom:12px; font-size:13px; }

/* Dashboard shell */
.app-shell { display:grid; grid-template-columns: 240px 1fr; min-height:100vh; }
.sidebar { background:#fffdf8; border-right:1px solid var(--line); padding: 20px; position: sticky; top:0; height:100vh; }
.brand { font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.menu { margin-top: 18px; display:flex; flex-direction:column; gap: 10px; }
.menu a { padding: 10px 12px; border-radius:10px; font-weight:600; color:#3d4658; }
.menu a.active, .menu a:hover { background: var(--mist); }
.sidebar-footer { margin-top: auto; padding-top: 16px; }

.main { padding: 28px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }
.top-actions { display:flex; gap: 10px; }
.panel { margin-bottom: 26px; }
.panel-title { font-weight:700; margin-bottom: 12px; }

.stats { display:grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin: 16px 0; }
.stat { background:#fffdf8; border:1px solid var(--line); border-radius:14px; padding: 16px; text-align:center; }
.stat span { font-size:22px; font-weight:700; display:block; }

.table-wrap { background:#fffdf8; border:1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table-wrap table { width:100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px; border-bottom:1px solid var(--line); font-size: 14px; }

.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display:block; margin-top: 10px; font-size: 12px; color:#566; }
.form input { width:100%; padding: 10px; border:1px solid var(--line); border-radius:10px; margin-top:6px; }
.form-msg { margin-top: 10px; font-size: 13px; color: var(--accent); }
.code { background: #0b0d14; color:#f6f2ea; padding: 16px; border-radius: 12px; overflow:auto; }

.modal { position: fixed; inset:0; background: rgba(0,0,0,0.4); display:none; align-items:center; justify-content:center; }
.modal.show { display:flex; }
.modal-content { background:#fffdf8; padding: 22px; border-radius: 16px; width: 520px; box-shadow: var(--shadow); }
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 10px; }

.reveal { opacity:0; transform: translateY(10px); animation: fadeUp .8s ease forwards; }
.reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .4s; }
@keyframes fadeUp { to { opacity:1; transform: translateY(0); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid, .pricing, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height:auto; }
  .grid-2 { grid-template-columns: 1fr; }
}
