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

:root {
  --bg: #080818;
  --bg-card: #0f0f2a;
  --bg-card-hover: #141435;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e2040;
  --red: #e81b23;
  --purple: #691876;
  --blue: #0015bc;
  --gradient: linear-gradient(135deg, #e81b23, #691876, #0015bc);
  --gradient-text: linear-gradient(135deg, #e81b23 0%, #691876 50%, #0015bc 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 24, 0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 32%, rgba(232, 27, 35, 0.26) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 55%, rgba(105, 24, 118, 0.42) 0%, transparent 60%),
    radial-gradient(ellipse at 84% 30%, rgba(0, 21, 188, 0.26) 0%, transparent 55%),
    var(--bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 120px 24px 100px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
}

.hero-wave svg { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(232, 27, 35, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 27, 35, 0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ── INTRO ── */
.intro {
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.intro-card:hover {
  border-color: rgba(232, 27, 35, 0.35);
  transform: translateY(-4px);
}

.intro-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.intro-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.intro-card p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* ── PLATFORM OVERVIEW ── */
.platform-overview {
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 27, 35, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon { font-size: 2rem; }

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.pillar-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.pillar-link {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}

.platform-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── JOIN ── */
.join {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0824 100%);
  position: relative;
  overflow: hidden;
}

.join::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(105, 24, 118, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.join-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.join-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.join-content > p {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-form input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.join-form input:focus { border-color: var(--red); }
.join-form input::placeholder { color: var(--muted); }
.join-form .btn { width: 100%; justify-content: center; }

.join-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── PAGE HERO (platform.html) ── */
.page-hero {
  padding: 140px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #0d0825 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(232, 27, 35, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .hero-eyebrow { color: var(--red); margin-bottom: 12px; }

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

/* ── PLATFORM LAYOUT ── */
.platform-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 100px;
  align-items: start;
}

/* ── SIDEBAR ── */
.platform-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 12px;
}

.sidebar-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  margin-bottom: 2px;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.sidebar-link.active {
  color: var(--red);
  background: rgba(232, 27, 35, 0.08);
  border-left-color: var(--red);
}

/* ── POLICY SECTIONS ── */
.policy-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.policy-icon { font-size: 2rem; }

.policy-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.policy-body > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.policy-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-point {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, border-left-color 0.2s;
}

.policy-point:hover {
  border-color: rgba(232, 27, 35, 0.25);
  border-left-color: var(--red);
}

.policy-point h4 {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.policy-point p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── TAX TABLE ── */
.tax-table {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.875rem;
}

.tax-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.6fr;
  gap: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.tax-row:last-child { border-bottom: none; }

.tax-header {
  background: rgba(232, 27, 35, 0.08);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tax-row:not(.tax-header):hover {
  background: rgba(255,255,255,0.03);
}

.rate {
  font-weight: 700;
  color: var(--red);
}

/* ── RESPONSIVE ── */

/* Disable hover transforms on touch devices */
@media (hover: none) {
  .pillar-card:hover,
  .intro-card:hover { transform: none; box-shadow: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 24, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 150;
  }

  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.3rem; }

  .hero-content { padding: 100px 24px 80px; }

  .intro { padding: 60px 0; }
  .intro-grid { grid-template-columns: 1fr; }

  .platform-overview { padding: 60px 0 80px; }
  .section-header { margin-bottom: 36px; }

  .join { padding: 64px 0; }

  .platform-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .platform-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-label { width: 100%; padding-left: 0; }

  .sidebar-link {
    border: 1px solid var(--border);
    border-left: 2px solid transparent;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .policy-section { margin-bottom: 56px; }

  .policy-header h2 { font-size: 1.4rem; }

  .policy-point { padding: 16px 18px; }

  .footer-content { flex-direction: column; gap: 24px; }

  .footer-nav { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero { padding: 110px 0 44px; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .nav-container { padding: 16px; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pillar-card { padding: 20px 16px; }
  .pillar-icon { font-size: 1.6rem; }

  /* Tax table: hide single/couple columns, show bracket + rate only */
  .tax-row {
    grid-template-columns: 1fr auto;
    padding: 9px 12px;
    font-size: 0.82rem;
  }
  .tax-row span:nth-child(2),
  .tax-row span:nth-child(3) { display: none; }

  .intro-card { padding: 28px 20px; }

  .policy-point { padding: 14px 16px; }
  .policy-point h4 { font-size: 0.9rem; }
  .policy-point p { font-size: 0.85rem; }
}

@media (max-width: 360px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 90px 16px 60px; }
}
