/* Revela — marketing site. Calm, premium, dark. */

:root {
  --bg: #0b0b0f;
  --bg-raised: #14141a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --text-dim: #9a9aa5;
  --accent: #8b7bff;
  --accent-soft: rgba(139, 123, 255, 0.14);
  --radius: 14px;
  --max: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(11, 11, 15, 0.75);
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
nav .links { display: flex; gap: 28px; font-size: 15px; }
nav .links a { color: var(--text-dim); }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 110px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 20px; position: relative;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  font-size: 21px; color: var(--text-dim); max-width: 560px;
  margin: 0 auto 36px; position: relative;
}
.cta {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: var(--accent); color: #0b0b0f; font-weight: 600; font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-soft); }
.cta.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); margin-left: 12px;
}
.hero .note { margin-top: 18px; font-size: 14px; color: var(--text-dim); position: relative; }

/* Sections */
section { padding: 72px 0; }
section h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 12px;
}
section .sub {
  text-align: center; color: var(--text-dim); max-width: 540px;
  margin: 0 auto 48px;
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card .icon { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--text-dim); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--text-dim); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 40px var(--accent-soft); }
.plan .name { font-weight: 600; font-size: 15px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .per { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.plan ul { list-style: none; flex: 1; }
.plan li { font-size: 15px; color: var(--text-dim); padding: 7px 0; border-top: 1px solid var(--border); }
.plan li::before { content: "✓  "; color: var(--accent); }

/* FAQ */
.faq { max-width: 680px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 10px; background: var(--bg-raised);
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq details p { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 70px 24px 90px; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-dim); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); color: var(--text-dim); }
.legal th { color: var(--text); background: var(--bg-raised); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 50px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--text-dim); }
footer a { color: var(--text-dim); margin-left: 20px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--text); }
