@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0b090f;
  --bg-raised: #14111c;
  --bg-card: #1a1624;
  --line: #2c2536;
  --line-soft: #211b2a;
  --purple: #9d6ffb;
  --purple-deep: #6b3fc9;
  --purple-glow: rgba(157, 111, 251, 0.35);
  --stone: #cdc6da;
  --text: #ece8f4;
  --text-dim: #a79dbd;
  --text-faint: #6d6480;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* stone texture: layered noise-free gradients */
.texture {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(157,111,251,0.10), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(157,111,251,0.06), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 600;
}
.brand-name span { color: var(--purple); }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--purple); }
.nav-cta {
  border: 1px solid var(--purple-deep);
  background: rgba(157,111,251,0.08);
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--stone);
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(157,111,251,0.16); }

/* ---------- hero ---------- */
header.hero {
  padding: 80px 48px 90px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.hero-logo {
  width: 300px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 40px var(--purple-glow));
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--purple);
  font-family: var(--font-display);
  margin-bottom: 18px;
}
h1.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.25;
  max-width: 640px;
  margin: 0 auto;
}
.hero-sub {
  margin: 22px auto 0;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; }
.btn-primary {
  background: var(--purple);
  color: #0e0a17;
  padding: 13px 26px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}
.btn-primary:hover { background: #b389fc; }
.btn-secondary {
  border: 1px solid var(--line);
  padding: 13px 26px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--purple-deep); }

/* ---------- sections ---------- */
section { padding: 64px 48px; border-bottom: 1px solid var(--line-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--purple);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 10px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
}
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(157,111,251,0.12);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--purple);
  font-size: 18px;
}
.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-body { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; }

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.stat-cell {
  padding: 26px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--purple);
}
.stat-label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* steps */
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 16px;
  min-width: 28px;
}
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.step-body { font-size: 13.5px; color: var(--text-dim); }

/* rules list */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.rule-num {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 14px;
  margin-bottom: 10px;
}
.rule-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.rule-body { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* definitions list */
.def-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.def-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.def-term {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--purple);
  margin-bottom: 6px;
}
.def-body { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* rule sub-sections */
.rule-section { margin-bottom: 52px; }
.rule-section:last-child { margin-bottom: 0; }
.rule-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.rule-section-num {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 13px;
  letter-spacing: 2px;
}
.rule-section-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.rule-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--purple);
  background: rgba(157,111,251,0.1);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.rule-list {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 8px;
  padding-left: 18px;
}
.rule-list li { margin-bottom: 4px; }
.rule-list b { color: var(--stone); font-weight: 600; }

/* connect box */
.connect-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
}
.ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 18px 0;
  font-family: var(--font-body);
}
.ip-value { font-size: 15px; letter-spacing: 0.3px; color: var(--stone); }
.ip-copy { font-size: 12px; color: var(--purple); }

/* footer */
footer {
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text-dim); }

@media (max-width: 720px) {
  nav, header.hero, section { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .feature-grid, .rules-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  h1.hero-title { font-size: 32px; }
}
