:root {
  --bg: #020713;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .075);
  --text: #f7fbff;
  --muted: #a8b6c9;
  --cyan: #00e5ff;
  --blue: #3b82f6;
  --green: #22e6a8;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 4%, rgba(0, 229, 255, .18), transparent 28%),
    radial-gradient(circle at 10% 34%, rgba(59, 130, 246, .16), transparent 26%),
    linear-gradient(180deg, #020713 0%, #040817 55%, #02050b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 229, 255, .20) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 78%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
pre {
  margin: 0;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(0, 0, 0, .32);
  color: #dffbff;
}
code { font-family: "SFMono-Regular", Consolas, monospace; }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 7, 19, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, .30);
  border-radius: 14px;
  background: radial-gradient(circle at 70% 20%, rgba(0,229,255,.28), rgba(59,130,246,.10));
  color: var(--cyan);
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong { font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 760; }

.topnav {
  display: flex;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.topnav a {
  padding: 9px 12px;
  border-radius: 999px;
}

.topnav a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 850;
}

.button.primary {
  border-color: rgba(0,229,255,.52);
  background: linear-gradient(135deg, #42caff, #3b82f6);
  color: #03101f;
  box-shadow: 0 18px 40px rgba(0, 102, 255, .22);
}

.button.ghost { background: rgba(255,255,255,.045); }
.button.large { min-height: 52px; padding: 0 22px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .64fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100svh - 104px);
  padding: 64px 0 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(34,230,168,.75);
}

h1, h2, h3, p { overflow-wrap: normal; word-break: normal; }
h1 {
  max-width: 850px;
  margin: 18px 0 18px;
  font-size: clamp(52px, 7vw, 98px);
  line-height: .92;
  letter-spacing: 0;
}

.hero p,
.creator-head p,
.flow-panel p {
  max-width: 720px;
  margin: 0;
  color: #c3d0e2;
  font-size: clamp(17px, 1.5vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mascot-panel {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 64%, rgba(0,229,255,.20), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  overflow: hidden;
}

.mascot-panel::before,
.mascot-panel::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 220px;
  border: 1px solid rgba(0,229,255,.24);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.mascot-panel::after {
  width: 360px;
  height: 560px;
  border-color: rgba(59,130,246,.22);
  transform: rotate(18deg);
}

.mascot-panel img {
  position: relative;
  z-index: 1;
  width: min(82%, 430px);
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.45));
}

.status-card {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 22px;
  min-width: 220px;
  padding: 18px;
  border: 1px solid rgba(0,229,255,.24);
  border-radius: 18px;
  background: rgba(3, 12, 28, .78);
  backdrop-filter: blur(16px);
}

.status-card small,
.summary-card small,
.copy-block small,
.focus-card small {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 920;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.status-card span,
.summary-card span { color: var(--muted); }

.quick-grid,
.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-grid article,
.flow-panel,
.command-panel,
.creator-head,
.focus-card,
.idea-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.quick-grid article {
  min-height: 190px;
  padding: 22px;
}

.quick-grid span,
.idea-top span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,229,255,.22);
  border-radius: 14px;
  background: rgba(0,229,255,.08);
  color: var(--cyan);
  font-weight: 950;
}

.quick-grid h2 {
  margin: 34px 0 8px;
  font-size: 22px;
}

.quick-grid p,
.idea-card p,
.focus-card p {
  margin: 0;
  color: var(--muted);
}

.flow-panel,
.command-panel {
  display: grid;
  grid-template-columns: minmax(340px, .58fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin-top: 16px;
  padding: clamp(28px, 5vw, 56px);
}

.flow-panel h2,
.command-panel h2 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.flow-list strong { color: #fff; }
.flow-list span { color: var(--muted); }

.command-panel {
  grid-template-columns: 1fr;
}

.creator-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: end;
  margin-top: 46px;
  padding: clamp(28px, 5vw, 56px);
}

.creator-head h1 {
  font-size: clamp(42px, 5.5vw, 78px);
}

.summary-card {
  padding: 24px;
}

.summary-card strong {
  display: block;
  margin: 8px 0;
  color: var(--green);
  font-size: 64px;
  line-height: .9;
}

.focus-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  padding: 1px;
  overflow: hidden;
}

.focus-card div {
  min-height: 170px;
  padding: 22px;
  background: rgba(255,255,255,.025);
}

.focus-card p { margin-top: 10px; }

.idea-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.idea-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.idea-top,
.idea-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.idea-top b,
.idea-actions span {
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0,229,255,.075);
  font-size: 12px;
}

.idea-card h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
}

.copy-block {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.copy-block p {
  margin-top: 7px;
}

.links-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(170px, auto) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.link-rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,229,255,.22);
  border-radius: 14px;
  background: rgba(0,229,255,.08);
  color: var(--cyan);
  font-weight: 950;
}

.link-main strong,
.link-main small {
  display: block;
}

.link-main strong {
  line-height: 1.25;
}

.link-main small {
  margin-top: 6px;
  color: var(--muted);
}

.link-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.link-metrics span {
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0,229,255,.075);
  font-size: 12px;
}

@media (max-width: 980px) {
  .topnav { display: none; }
  .hero,
  .flow-panel,
  .creator-head {
    grid-template-columns: 1fr;
  }
  .quick-grid,
  .focus-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .idea-grid {
    grid-template-columns: 1fr;
  }
  .link-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .link-metrics,
  .link-row .button {
    grid-column: 2;
    justify-content: flex-start;
    width: max-content;
  }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 22px, 1240px); }
  .topbar { border-radius: 18px; }
  .brand small { display: none; }
  .button.primary:not(.large) { display: none; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero { min-height: auto; padding-top: 42px; }
  .actions .button,
  .command-panel .button {
    width: 100%;
  }
  .mascot-panel { min-height: 390px; }
  .mascot-panel img { width: min(88%, 310px); }
  .status-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .quick-grid,
  .focus-card {
    grid-template-columns: 1fr;
  }
  .flow-list li {
    grid-template-columns: 1fr;
  }
  .creator-head,
  .flow-panel,
  .command-panel {
    padding: 22px;
  }
}
