* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  background: #1a1a2e;
  color: white;
  line-height: 1.75;
  overflow-x: hidden;
}

/* NAV */
nav {
  background: #16213e;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff4500;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-logo span { color: #ff4500; }
nav ul { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
nav ul a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav ul a:hover, nav ul a.active { color: #ff4500; }

/* GENERAL */
section { padding: 50px 20px; }
.container { max-width: 1100px; margin: 0 auto; }

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: white;
}
h2 span { color: #ff4500; }

.section-sub {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1rem;
  max-width: 600px;
}

/* CARDS */
.card {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.card h3 { color: #ff4500; margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: #ccc; font-size: 1rem; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: #ff4500;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: #ff6b35; transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn-outline {
  background: transparent;
  border: 2px solid #ff4500;
  color: #ff4500;
}
.btn-outline:hover { background: #ff4500; color: white; }

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin: 30px 0;
}
.stat-box {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ff4500;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: #ccc; line-height: 1.4; }
.stat-footnote {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 5px;
  font-style: italic;
}

/* HERO */
.hero {
  background: #16213e;
  padding: 70px 20px 50px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #ff4500;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.hero .tagline {
  font-size: 1.4rem;
  color: #ff4500;
  margin-bottom: 15px;
}
.hero p { color: #ccc; font-size: 1rem; margin-bottom: 25px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* TABLE */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.92rem; }
.compare-table th {
  background: #16213e;
  color: #ccc;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table th.hl { color: #ff4500; }
.compare-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #aaa; vertical-align: top; }
.compare-table td.row-label { color: white; font-weight: bold; font-size: 0.88rem; }
.compare-table td.rover { color: white; background: rgba(255,69,0,0.08); border-left: 2px solid rgba(255,69,0,0.4); }
.compare-table tr:last-child td { border-bottom: none; }
.y { color: #ff4500; font-weight: bold; }
.n { color: #999; }

/* FLOW TIMELINE */
.flow-steps { display: flex; flex-direction: column; max-width: 680px; }
.flow-item { display: flex; gap: 16px; align-items: stretch; }
.flow-left { display: flex; flex-direction: column; align-items: center; width: 32px; flex-shrink: 0; }
.flow-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: #ff4500;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 0.8rem; color: white; flex-shrink: 0;
}
.flow-line { width: 2px; flex: 1; background: rgba(255,255,255,0.15); margin: 4px 0; min-height: 12px; }
.flow-item:last-child .flow-line { display: none; }
.flow-content {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  flex: 1;
}
.flow-time {
  display: inline-block;
  background: rgba(255,69,0,0.2);
  color: #ff4500;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 99px;
  margin-right: 8px;
  font-weight: bold;
}
.flow-content strong { font-size: 0.95rem; }
.flow-content p { font-size: 0.88rem; color: #ccc; margin-top: 5px; }
.flow-why { margin-top: 6px; font-size: 0.78rem; color: #aaa; font-style: italic; }
.flow-why span { color: #ff4500; }

/* QUOTE */
.quote-box {
  background: rgba(255,255,255,0.07);
  border-left: 4px solid #ff4500;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.quote-box p { font-style: italic; color: #ccc; font-size: 0.95rem; margin-bottom: 8px; }
.quote-box cite { font-size: 0.75rem; color: #ff4500; }

/* PILL TAGS */
.pill-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #ccc;
}

/* FOOTER */
footer {
  background: #16213e;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 2px solid #ff4500;
}
.footer-logo { font-size: 1rem; font-weight: bold; }
.footer-logo span { color: #ff4500; }
footer p { font-size: 0.78rem; color: #aaa; }
.footer-secret { font-size: 0.55rem; color: #1e1e30; cursor: default; user-select: none; }
.footer-secret:hover { color: #333; }

/* SOURCE PAGE */
.source-item {
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 3px solid #ff4500;
}
.source-item h4 { color: #ff4500; font-size: 0.9rem; margin-bottom: 4px; }
.source-item p { color: #bbb; font-size: 0.85rem; line-height: 1.5; }
.source-item a { color: #ff7744; font-size: 0.8rem; }
.fake-source { border-left-color: #aaa; opacity: 0.6; }
.fake-source h4 { color: #bbb; }

/* GUIDELINES PAGE */
.guideline-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.guideline-card h3 { color: #ff4500; margin-bottom: 6px; }
.guideline-card .rec {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 8px 0;
}
.guideline-card p { color: #ccc; font-size: 0.93rem; }
.guideline-card .rover-link {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #ff7744;
  background: rgba(255,69,0,0.1);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* BARRIER CARDS */
.barrier-item {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.barrier-left { padding: 16px 20px; }
.barrier-left h4 { font-size: 0.95rem; margin-bottom: 5px; }
.barrier-left p { font-size: 0.85rem; color: #aaa; }
.barrier-right {
  background: rgba(255,69,0,0.1);
  border-left: 2px solid rgba(255,69,0,0.3);
  padding: 16px 20px;
}
.barrier-right .resp-label { font-size: 0.65rem; color: #ff4500; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.barrier-right p { font-size: 0.85rem; color: #ccc; }

/* DIMENSION CARDS */
.dim-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 20px;
  border-top: 3px solid #ff4500;
}
.dim-card .dim-icon { font-size: 2rem; margin-bottom: 8px; }
.dim-card h3 { color: white; margin-bottom: 6px; font-size: 1rem; }
.dim-card p { color: #ccc; font-size: 0.88rem; }
.dim-card .dim-link { margin-top: 10px; font-size: 0.82rem; color: #ff7744; }

/* JOIN BUTTON */
.join-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 6px;
}
.join-arrows {
  font-size: 1.3rem;
  color: #ff4500;
  animation: point-pulse 0.9s infinite alternate;
}
@keyframes point-pulse {
  from { transform: translateX(0); opacity: 0.5; }
  to   { transform: translateX(5px); opacity: 1; }
}
.btn-join {
  display: inline-block;
  background: #ff4500;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 13px 30px;
  transition: background 0.2s, transform 0.15s;
}
.btn-join:hover { background: #ff6b35; transform: scale(1.04); }
.btn-join:active { transform: scale(0.97); }

/* FADE */
.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade.show { opacity: 1; transform: translateY(0); }

/* CLOWNFACE OVERLAY */
#clown-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.clown-emoji {
  position: absolute;
  font-size: 50px;
  animation: clown-flash 0.5s infinite alternate;
}
@keyframes clown-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 700px) {
  nav { padding: 0.8rem 1rem; }
  nav ul { gap: 0.8rem; }
  nav ul a { font-size: 0.78rem; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  section { padding: 35px 16px; }
  .barrier-item { grid-template-columns: 1fr; }
  .barrier-right { border-left: none; border-top: 2px solid rgba(255,69,0,0.3); }
  footer { flex-direction: column; text-align: center; }
}
