* { box-sizing: border-box; }
:root {
  --bg: #08111d;
  --panel: #0d1724;
  --panel-soft: #111c2b;
  --card: #111b29;
  --card-border: rgba(166, 186, 218, .13);
  --text: #f4f7fb;
  --muted: #9aa7bb;
  --muted-2: #748197;
  --blue: #5865f2;
  --blue-2: #6f7aff;
  --blue-soft: rgba(88, 101, 242, .18);
  --green: #35df73;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 112, 172, .2), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(88, 101, 242, .13), transparent 30%),
    var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(139,153,255,.10) 1px, transparent 1.3px);
  background-size: 140px 140px, 94px 94px;
  background-position: 8px 18px, 42px 68px;
  opacity: .35;
}
.stars { display: none; }
.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 34px);
  display: flex;
  align-items: center;
  gap: 26px;
  background: rgba(8, 17, 29, .78);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.landing-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(88,101,242,.24);
}
.landing-nav { display: flex; gap: 8px; margin-left: 10px; }
.landing-nav a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 7px;
  color: #b4bed1;
  text-decoration: none;
  font-weight: 750;
  transition: .16s ease;
}
.landing-nav a:hover { background: rgba(255,255,255,.045); color: #fff; }
.landing-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.outline-btn,
.ghost-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.outline-btn {
  color: #cdd6ff;
  border: 1px solid rgba(166,186,218,.16);
  background: rgba(255,255,255,.035);
}
.outline-btn.accent,
.primary-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 34px rgba(88,101,242,.28);
}
.secondary-btn {
  color: #cdd6ff;
  border: 1px solid rgba(166,186,218,.16);
  background: rgba(255,255,255,.055);
}
.outline-btn:hover,
.primary-btn:hover,
.secondary-btn:hover { transform: translateY(-2px); border-color: rgba(88,101,242,.55); }
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  padding: 92px 24px 72px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.hero::after { display: none; }
.hero-logo { display: none; }
.eyebrow { margin: 0; color: #8b99ff; font-weight: 900; font-size: 16px; }
h1 {
  margin: 12px 0 16px;
  color: #fff;
  font-size: clamp(44px, 7vw, 76px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: -.055em;
  text-shadow: 0 16px 42px rgba(0,0,0,.35);
}
.hero-text {
  width: min(780px, 92vw);
  margin: 0 auto 28px;
  color: #c8d3e7;
  font-size: 18px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.connected-hint { color: var(--muted); margin-top: 16px; }
.cards-section,
.modules-preview,
.landing-footer {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}
.cards-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 28px 0 24px; }
.feature-card,
.modules-preview {
  background: linear-gradient(180deg, rgba(17,28,43,.95), rgba(11,20,32,.95));
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.feature-card { padding: 26px; }
.feature-card span { font-size: 32px; }
.feature-card h2,
.modules-preview h2 { margin: 14px 0 10px; font-size: 24px; color: #fff; }
.feature-card p,
.modules-preview p { color: #c8d3e7; line-height: 1.65; margin: 0; }
.modules-preview { margin-top: 22px; padding: 34px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.module-list { display: flex; gap: 12px; flex-wrap: wrap; }
.module-list span {
  padding: 12px 14px;
  border-radius: 7px;
  background: rgba(88,101,242,.14);
  color: #dfe5ff;
  border: 1px solid rgba(88,101,242,.25);
  font-weight: 850;
}
.landing-footer {
  padding: 44px 0 34px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.hidden { display: none !important; }
.account-menu { position: relative; display: inline-flex; }
.account-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(166,186,218,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.045);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  cursor: pointer;
  font: inherit;
}
.account-button:hover,
.account-menu.open .account-button { background: rgba(88,101,242,.14); border-color: rgba(88,101,242,.55); }
.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(88,101,242,.18);
  background-size: cover;
  background-position: center;
}
.account-avatar.has-image { color: transparent; }
.account-caret { color: #cdd6ff; font-weight: 900; transition: transform .18s ease; }
.account-menu.open .account-caret { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  padding: 8px;
  border-radius: 8px;
  background: #121c2a;
  border: 1px solid rgba(197,211,234,.13);
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
  display: none;
  z-index: 50;
}
.account-menu.open .account-dropdown { display: grid; gap: 4px; }
.account-dropdown::before {
  content: "";
  position: absolute;
  right: 24px;
  top: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #121c2a;
  border-left: 1px solid rgba(197,211,234,.13);
  border-top: 1px solid rgba(197,211,234,.13);
}
.account-dropdown a {
  position: relative;
  color: #dce4f0;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 6px;
  font-weight: 800;
}
.account-dropdown a:hover { color: #fff; background: rgba(88,101,242,.18); }
.account-dropdown a:last-child { color: #ffb6b6; }
@media (max-width: 860px) {
  .landing-header { height: auto; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
  .landing-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 4px; }
  .landing-actions { margin-left: auto; }
  .hero { padding-top: 70px; }
  .cards-section,
  .modules-preview { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .landing-actions { width: 100%; flex-wrap: wrap; }
  .outline-btn, .primary-btn, .secondary-btn { flex: 1 1 auto; }
  .cards-section { grid-template-columns: 1fr; }
  .landing-footer { flex-direction: column; }
}
