/* Level companion website — matches mobile app theme */
:root {
  --bg: #000000;
  --bg-elevated: #05060a;
  --card: #0b0b0f;
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --subtext: rgba(255, 255, 255, 0.7);
  --muted: #a7b0c0;
  --cyan: #3cf2ff;
  --green: #39ff88;
  --pink: #ff4fd8;
  --verified: #1d9bf0;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--subtext);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: rgba(57, 255, 136, 0.14);
  border-color: var(--green);
  color: var(--green);
}
.btn-secondary {
  background: rgba(60, 242, 255, 0.1);
  border-color: rgba(60, 242, 255, 0.45);
  color: var(--cyan);
}
.btn-app {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(60, 242, 255, 0.12), transparent 65%);
  pointer-events: none;
}
.hero-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--cyan); }
.hero .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--subtext);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Phone mock ── */
.hero-visual {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: min(280px, 80vw);
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(60, 242, 255, 0.08);
}
.phone-screen {
  border-radius: 22px;
  background: var(--bg-elevated);
  padding: 20px 16px;
  min-height: 420px;
  text-align: left;
}
.mock-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mock-title { font-weight: 900; font-size: 1.1rem; margin-bottom: 4px; }
.mock-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  color: var(--cyan);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.mock-user img { width: 14px; height: 14px; display: inline-block; }
.mock-score {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.mock-score span { font-size: 1rem; color: var(--muted); font-weight: 800; }
.mock-entity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.mock-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.3), rgba(60, 242, 255, 0.2));
}
.mock-entity-name { font-weight: 800; font-size: 0.85rem; }
.mock-entity-sub { font-size: 0.75rem; color: var(--muted); }

/* ── Sections ── */
section { padding: 4rem 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.section-desc { color: var(--subtext); max-width: 620px; margin-bottom: 2rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}
.feature-card p { margin: 0; color: var(--subtext); font-size: 0.92rem; }
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--subtext);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 3rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(60, 242, 255, 0.15);
  border: 1px solid rgba(60, 242, 255, 0.4);
  color: var(--cyan);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.step h3 { margin: 0 0 0.35rem; font-weight: 900; }
.step p { margin: 0; color: var(--subtext); font-size: 0.92rem; }

.cta-band {
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(57, 255, 136, 0.25);
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.08), rgba(60, 242, 255, 0.06));
  text-align: center;
}
.cta-band h2 { margin: 0 0 0.75rem; font-size: 1.75rem; font-weight: 900; }
.cta-band p { color: var(--subtext); margin: 0 0 1.5rem; }

/* ── Legal / prose pages ── */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-hero h1 { margin: 0 0 0.5rem; font-size: 2rem; font-weight: 900; }
.page-hero .meta { color: var(--muted); font-size: 0.9rem; }
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 2rem 0 0.75rem;
  color: var(--cyan);
}
.prose p, .prose li {
  color: var(--subtext);
  font-size: 0.95rem;
  line-height: 1.7;
}
.prose ul { padding-left: 1.25rem; }
.prose a { color: var(--green); }

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--subtext); font-size: 0.9rem; text-decoration: none; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Download page ── */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.app-store-badge {
  display: inline-block;
  margin-top: 1rem;
}
.qr-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

/* ── Username redirect page ── */
.redirect-card {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.redirect-card h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.redirect-card .username { color: var(--cyan); font-weight: 900; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 6, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* WordPress embed: reset outer margins when inside WP content area */
.level-embed { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
