﻿/* MemePilot premium Web3 design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* -- Design Tokens -- */
:root {
  --bg:            #06080f;
  --bg-alt:        #0a0d18;
  --surface:       #111422;
  --surface-2:     #181c2e;
  --surface-3:     #1e233a;
  --ink:           #f0f2fa;
  --ink-dim:       #b4bcd6;
  --muted:         #737a9a;
  --line:          #1e2540;
  --line-light:    #2a3255;

  --primary:       #6c5cf0;
  --primary-2:     #4f80ff;
  --primary-glow:  rgba(108, 92, 240, 0.35);
  --accent:        #06d6a0;
  --accent-glow:   rgba(6, 214, 160, 0.3);
  --danger:        #ef4444;
  --danger-glow:   rgba(239, 68, 68, 0.25);
  --success:       #22c55e;
  --warning:       #f59e0b;

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow:   0 0 40px var(--primary-glow);
  --shadow-glow-sm: 0 0 20px rgba(108, 92, 240, 0.15);

  --font:          'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display:  'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --transition:    200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* -- Animated background grid -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108, 92, 240, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 214, 160, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 30%, rgba(79, 128, 255, 0.08), transparent 50%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(108, 92, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 240, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

button {
  cursor: pointer;
  border: none;
  background: none;
}

img, svg { display: block; max-width: 100%; }

/* -- Shell -- */
.shell { min-height: 100vh; }

/* ===============================   TOPBAR -Glassmorphic sticky header
   ===============================*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 40px);
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.85; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 16px var(--primary-glow);
  overflow: hidden;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-mark.logo-mark {
  padding: 0;
  background: rgba(255,255,255,0.06);
}

.brand-mark.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-mark .rocket-body { fill: rgba(255,255,255,0.95); }
.brand-mark .rocket-window,
.brand-mark .rocket-cutout { fill: var(--bg); }
.brand-mark .rocket-flame { fill: var(--accent); }

/* -- Navigation -- */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
}

.nav a:hover { color: var(--ink-dim); background: var(--surface-2); }

.nav a.active {
  color: var(--ink);
  background: var(--surface-3);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* -- Header actions -- */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.x-nav-link,
.x-link-reserve {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,0.045);
}

.x-nav-link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 700;
  transition: all var(--transition);
}

.x-nav-link:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.x-logo {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.x-link-text {
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger-glow);
}

.dot.live {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===============================   BUTTONS
   ===============================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.1px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
}

.btn.primary:hover {
  box-shadow: 0 6px 28px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(135deg, #7c6cf8, #5a8fff);
}

.btn.secondary {
  background: var(--surface-2);
  border: 1px solid var(--line-light);
  color: var(--ink-dim);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(108, 92, 240, 0.12);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn.ghost:hover {
  background: var(--surface);
  border-color: var(--line-light);
  color: var(--ink-dim);
}

.btn.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* -- Outline accent button -- */
.btn.accent {
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: var(--accent);
  font-weight: 700;
}
.btn.accent:hover {
  background: rgba(6, 214, 160, 0.14);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===============================   LAYOUT
   ===============================*/
.section {
  padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 38px);
}

.container {
  width: min(1500px, 100%);
  margin: 0 auto;
}

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

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  margin-bottom: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

.hidden { display: none !important; }

/* ===============================   TYPOGRAPHY
   ===============================*/
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.4px; }
p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 30%, #c0c8e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.lead {
  max-width: 620px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  margin-bottom: 0;
}

.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* ===============================   PANELS & CARDS -Glassmorphic
   ===============================*/
.panel,
.terminal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.panel:hover,
.terminal-panel:hover {
  border-color: var(--line-light);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}

.panel-head strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.panel-body {
  padding: 18px 20px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--line-light);
  box-shadow: var(--shadow-glow-sm);
}

.card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,92,240,0.08), rgba(79,128,255,0.04));
  box-shadow: 0 0 0 2px rgba(108, 92, 240, 0.2), var(--shadow-glow-sm);
}

.card.muted {
  color: var(--muted);
  text-align: center;
  padding: 28px 20px;
}

/* ===============================   FORM ELEMENTS
   ===============================*/
textarea, input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: all var(--transition);
  font-size: 14px;
}

textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

input, select {
  min-height: 40px;
  padding: 0 14px;
}

textarea:focus, input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 240, 0.12), 0 0 16px rgba(108, 92, 240, 0.06);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737a9a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea::placeholder, input::placeholder {
  color: #4a5070;
}

/* -- Form layout -- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prompt-box {
  display: grid;
  gap: 12px;
}

.home-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.home-prompt textarea {
  min-height: 104px;
}

/* ===============================   BADGE
   ===============================*/
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(108, 92, 240, 0.12);
  color: #9388ff;
  border: 1px solid rgba(108, 92, 240, 0.2);
}

/* ===============================   TABLE
   ===============================*/
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table th, .table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  background: rgba(255,255,255,0.015);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ===============================   METRICS
   ===============================*/
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: all var(--transition);
}

.metric:hover {
  border-color: var(--line-light);
  box-shadow: var(--shadow-glow-sm);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--ink), var(--ink-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

/* ===============================   APP FRAME (landing page wrapper)
   ===============================*/
.app-frame {
  width: min(1500px, calc(100% - 56px));
  margin: 16px auto 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
}

/* ===============================   HERO -Landing
   ===============================*/
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 260px;
  padding: clamp(18px, 3vw, 32px) clamp(22px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 240, 0.08), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 700px;
  font-family: var(--font-display);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(6, 214, 160, 0.2);
  border-radius: 6px;
  background: rgba(6, 214, 160, 0.06);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

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

.prompt-card {
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: all var(--transition);
}

.prompt-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108, 92, 240, 0.08);
}

.prompt-card textarea {
  min-height: 52px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--ink-dim);
  font-size: 14px;
}

.prompt-card textarea:focus {
  box-shadow: none;
  color: var(--ink);
}

/* ===============================   HERO PREVIEW PANEL
   ===============================*/
.hero-preview {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 16px 20px 12px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) 112px;
  gap: 22px;
  align-items: center;
}

.mascot {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108,92,240,0.3), rgba(79,128,255,0.25), rgba(6,214,160,0.15));
  box-shadow: 0 0 40px rgba(108, 92, 240, 0.2), inset 0 0 30px rgba(255,255,255,0.03);
  overflow: hidden;
}

.mascot svg,
.mascot img {
  width: 90%;
  height: 90%;
}

.mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-table { display: grid; gap: 0; }

.preview-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}

.preview-row:last-child { border-bottom: 0; }
.preview-row span:first-child { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.preview-row strong { font-weight: 600; }

/* -- Ring score -- */
.ring-score {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--surface-2) 74%, transparent 75%),
    conic-gradient(var(--primary) 0deg, var(--primary-2) 180deg, var(--accent) var(--pct, 320deg), rgba(255,255,255,0.05) var(--pct, 320deg));
  box-shadow: 0 0 24px rgba(108, 92, 240, 0.15);
}

.ring-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.ring-score span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* -- Meta strip -- */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.meta-item {
  padding: 9px 14px;
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,0.15);
}
.meta-item:last-child { border-right: 0; }

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.meta-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}

.ca-meta {
  background: rgba(6, 214, 160, 0.06);
  border-color: rgba(6, 214, 160, 0.15);
}
.ca-meta strong { color: var(--accent); }

.ca-reserve-card,
.ca-launch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(32, 224, 167, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(32,224,167,0.09), rgba(255,255,255,0.025));
}

.ca-reserve-card span,
.ca-launch-card span {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ca-reserve-card strong,
.ca-launch-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: 'SF Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.4;
}

[data-copy-text] {
  cursor: pointer;
}

.ca-reserve-card strong[data-copy-text],
.ca-launch-card strong[data-copy-text],
.ca-meta strong[data-copy-text],
.share-stats strong[data-copy-text],
.ca-input-shell input[data-copy-text] {
  text-decoration: underline;
  text-decoration-color: rgba(32, 224, 167, 0.35);
  text-underline-offset: 3px;
}

.ca-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ca-input-shell input {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  color: var(--accent);
}

/* ===============================   HOME SECTIONS
   ===============================*/
.home-section {
  padding: 14px 36px;
  border-top: 1px solid var(--line);
}

.home-section > h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink-dim);
}

/* -- Concept cards -- */
.concept-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.concept-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: all var(--transition);
  cursor: default;
}

.concept-card:hover {
  border-color: var(--line-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.concept-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,92,240,0.08), rgba(79,128,255,0.04));
  box-shadow: 0 0 0 2px rgba(108,92,240,0.15), var(--shadow-glow-sm);
}

.concept-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.concept-card p {
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.token-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), #06b6d4);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.concept-card .token-icon {
  width: 62px;
  height: 62px;
  font-size: 16px;
}

/* -- Score pills -- */
.score-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.score-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-dim);
}

.score-pills strong {
  color: var(--accent);
  font-weight: 700;
}

/* ===============================   CANDIDATE CARDS (launch page)
   ===============================*/
.candidate-list { display: grid; gap: 12px; }

.candidate {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.candidate:hover {
  border-color: var(--line-light);
  box-shadow: var(--shadow-glow-sm);
  transform: translateX(2px);
}

.candidate.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,92,240,0.1), rgba(79,128,255,0.05));
  box-shadow: 0 0 0 2px rgba(108, 92, 240, 0.18), var(--shadow-glow-sm);
}

.candidate .token-icon {
  width: 64px;
  height: 64px;
}

.candidate .score {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(6, 214, 160, 0.08);
  border: 2px solid rgba(6, 214, 160, 0.2);
}

/* ===============================   DASHBOARD ROW
   ===============================*/
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 26px;
}

.settings-table { display: grid; gap: 8px; }

.setting-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.segment {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.segment.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ===============================   OUTPUT / RESULT BOX
   ===============================*/
.result-box { display: none; gap: 12px; margin-top: 18px; }
.result-box.visible { display: grid; }

.code-line {
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  font-family: 'SF Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.output-list { display: grid; gap: 8px; }

.output-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: center;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  color: var(--primary);
  background: rgba(108, 92, 240, 0.1);
}

.compact-code {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-dim);
  background: rgba(0,0,0,0.2);
  font-family: 'SF Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  text-align: center;
}

/* ===============================   INTEL GRID
   ===============================*/
.intel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.intel-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: all var(--transition);
}

.intel-card:hover {
  border-color: var(--line-light);
  transform: translateY(-1px);
}

.intel-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.intel-card .mini-icon {
  width: 28px;
  height: 28px;
}

.progress {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 0 8px var(--primary-glow);
  transition: width 600ms ease;
}

/* ===============================   PRICING STRIP
   ===============================*/
.pricing-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.price-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 40px;
  border-right: 1px solid var(--line);
  transition: background var(--transition);
}

.price-item:last-child { border-right: 0; }
.price-item:hover { background: rgba(255,255,255,0.015); }

.price-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.15);
}

.price-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 2px;
}

/* ===============================   STEPPER
   ===============================*/
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  transition: color var(--transition);
}

.stepper li + li::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin: 0 10px;
  background: var(--line);
  border-radius: 1px;
  transition: background var(--transition);
}

.stepper li.active { color: var(--ink); }
.stepper li.done   { color: var(--accent); }

.stepper li.active + li::before,
.stepper li.done + li::before {
  background: var(--primary);
}

.stepper li .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}

.stepper li.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.stepper li.done .step-num {
  background: rgba(6, 214, 160, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===============================   TOAST
   ===============================*/
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
  cursor: default;
}

.toast-enter { transform: translateX(0); opacity: 1; }

.toast-success { background: rgba(34, 197, 94, 0.92); }
.toast-error   { background: rgba(239, 68, 68, 0.92); }
.toast-warning { background: rgba(245, 158, 11, 0.92); }
.toast-info    { background: rgba(108, 92, 240, 0.92); }

/* ===============================   SKELETON LOADING
   ===============================*/
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 2s ease-in-out infinite;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 15px; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 55%; margin-bottom: 12px; }
.skeleton-card { height: 110px; }

/* ===============================   EMPTY STATE
   ===============================*/
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 24px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.008);
}

.empty-state h3 { margin: 0; font-family: var(--font-display); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: 2px; opacity: 0.7; }

/* ===============================   COPY BUTTON
   ===============================*/
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow-sm);
}

/* ===============================   FILTER PILLS
   ===============================*/
.filter-bar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--line-light); color: var(--ink-dim); }

.filter-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

/* ===============================   EXPANDABLE ROW
   ===============================*/
.expand-row { display: none; }
.expand-row.visible { display: table-row; }
.expand-row td {
  padding: 18px 22px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--line);
}

/* ===============================   TWEET PREVIEW
   ===============================*/
.tweet-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.5;
  min-height: 60px;
  outline: none;
}
.tweet-preview:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 240, 0.1);
}
.tweet-preview .char-count { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.tweet-preview .char-count.over { color: var(--danger); }

/* ===============================   BAR CHART
   ===============================*/
.bar-chart { display: flex; align-items: flex-end; gap: 20px; height: 160px; padding: 8px 0; }

.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.bar-col .bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 12px var(--primary-glow);
  min-height: 4px;
  transition: height 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-col .bar-label { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; text-transform: capitalize; }
.bar-col .bar-value { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ===============================   CONNECT BANNER
   ===============================*/
.connect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
  font-size: 13.5px;
  font-weight: 600;
}

/* ===============================   SCORE BREAKDOWN BARS
   ===============================*/
.score-bars { display: grid; gap: 7px; }

.score-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 10px;
  align-items: center;
}

.score-bar-row span:first-child { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2px; }
.score-bar-row span:last-child  { font-size: 13px; font-weight: 700; color: var(--ink-dim); text-align: right; }

.score-bar-fill {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.score-bar-fill > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 6px var(--primary-glow);
  transition: width 500ms ease;
}

/* ===============================   ACTION BAR
   ===============================*/
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.share-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(108, 92, 240, 0.18), rgba(6, 214, 160, 0.08)),
    var(--surface-2);
  box-shadow: var(--shadow-glow-sm);
  overflow: hidden;
}

.x-link-reserve {
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
}

.x-link-reserve > div {
  min-width: 0;
  flex: 1;
}

.x-link-reserve strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.x-link-reserve p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.share-token {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.share-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.share-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

.share-card p {
  color: var(--ink-dim);
  font-size: 13.5px;
}

.share-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.share-stats span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--ink-dim);
  background: rgba(0,0,0,0.16);
  text-transform: none;
  letter-spacing: 0;
}

.share-stats strong {
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.draft-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: all var(--transition);
}

.draft-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-sm);
}

.draft-card strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.draft-card strong span {
  color: var(--accent);
}

.draft-card p {
  color: var(--ink-dim);
  font-size: 13px;
}

.draft-card small {
  color: var(--muted);
  font-weight: 700;
}

/* ===============================   SPINNER
   ===============================*/
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===============================   RESPONSIVE
   ===============================*/
@media (max-width: 1024px) {
  .intel-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .app-frame {
    width: min(100%, calc(100% - 20px));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .grid-2,
  .grid-3,
  .form-grid,
  .home-prompt,
  .preview-grid,
  .concept-strip,
  .dashboard-row,
  .meta-strip,
  .intel-grid,
  .pricing-strip {
    grid-template-columns: 1fr;
  }

  .setting-row,
  .output-row {
    grid-template-columns: 1fr;
  }

  .price-item,
  .meta-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics { grid-template-columns: 1fr; }

  .candidate {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .candidate .score {
    grid-column: 1 / -1;
    width: 100%;
    height: 36px;
    border-radius: 7px;
  }

  .intel-grid { grid-template-columns: 1fr 1fr; }

  .draft-grid,
  .share-card {
    grid-template-columns: 1fr;
  }

  .share-token {
    width: 72px;
    height: 72px;
    font-size: 22px;
  }

  .ca-input-shell,
  .ca-reserve-card,
  .ca-launch-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero { padding: 16px; }
  .home-section { padding: 12px 16px; }
  .price-item { padding: 14px 20px; }
  .intel-grid { grid-template-columns: 1fr; }
}

/* -- Floating animation for brand mark -- */
@keyframes brand-float {
  0%, 100% { box-shadow: 0 4px 16px var(--primary-glow); }
  50% { box-shadow: 0 4px 28px var(--primary-glow), 0 0 50px rgba(108, 92, 240, 0.12); }
}
.brand-mark { animation: brand-float 3s ease-in-out infinite; }

/* -- Glow pulse for ring score -- */
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(108, 92, 240, 0.15); }
  50% { box-shadow: 0 0 36px rgba(108, 92, 240, 0.3), 0 0 60px rgba(6, 214, 160, 0.1); }
}
.ring-score { animation: ring-pulse 3s ease-in-out infinite; }

/* -- Shimmer for primary buttons -- */
.btn.primary {
  background-size: 200% 100%;
  animation: btn-shimmer 3s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* -- Fade-in on page load -- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > div { animation: fade-up 0.6s ease-out; }
.hero-preview { animation: fade-up 0.6s ease-out 0.1s both; }
.panel { animation: fade-up 0.5s ease-out both; }

/* -- Gradient text utility -- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Glow orb (decorative) -- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}

/* Polished app finish */
:root {
  --bg: #070911;
  --bg-alt: #0d1220;
  --surface: rgba(17, 21, 35, 0.86);
  --surface-2: rgba(24, 29, 47, 0.88);
  --surface-3: rgba(35, 42, 68, 0.92);
  --line: rgba(129, 145, 190, 0.16);
  --line-light: rgba(160, 178, 230, 0.27);
  --ink: #f7f8ff;
  --ink-dim: #c7cee4;
  --muted: #8189a8;
  --primary: #7c6cff;
  --primary-2: #35a7ff;
  --accent: #20e0a7;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

body {
  background:
    linear-gradient(180deg, rgba(7, 9, 17, 0.94), rgba(9, 12, 24, 1) 42%),
    var(--bg);
}

body::before {
  background:
    radial-gradient(ellipse 68% 44% at 50% -8%, rgba(124, 108, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 48% 32% at 86% 12%, rgba(32, 224, 167, 0.12), transparent 62%),
    radial-gradient(ellipse 38% 34% at 8% 18%, rgba(53, 167, 255, 0.13), transparent 62%),
    linear-gradient(180deg, #070911, #0b0f1c 56%, #070911);
}

body::after {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(199, 206, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 206, 228, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.topbar {
  margin: 12px auto 0;
  width: min(1500px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(22, 27, 45, 0.88), rgba(11, 15, 28, 0.78));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.brand {
  letter-spacing: 0;
}

.brand-mark {
  border-radius: 9px;
  background: linear-gradient(135deg, #20e0a7, #35a7ff 46%, #7c6cff);
}

.nav {
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
}

.nav a {
  border-radius: 9px;
  letter-spacing: 0;
}

.nav a.active {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.nav a.active::after { display: none; }

.status-pill {
  min-height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.045);
}

.app-frame {
  margin-top: 22px;
  background:
    linear-gradient(180deg, rgba(20, 25, 42, 0.88), rgba(12, 16, 29, 0.96));
  border-color: rgba(255,255,255,0.08);
}

.hero {
  min-height: 520px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
  padding: clamp(34px, 5vw, 68px);
  background:
    linear-gradient(120deg, rgba(124, 108, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent);
}

.hero::before {
  top: auto;
  right: -120px;
  bottom: -190px;
  width: 560px;
  height: 560px;
  border-radius: 46%;
  background:
    conic-gradient(from 120deg, rgba(32,224,167,0.22), rgba(53,167,255,0.18), rgba(124,108,255,0.22), rgba(32,224,167,0.22));
  filter: blur(6px);
  opacity: 0.58;
}

.hero h1 {
  max-width: 620px;
  letter-spacing: 0;
}

h1, h2, h3, h4,
.brand {
  letter-spacing: 0;
}

.hero-kicker,
.eyebrow {
  letter-spacing: 0.9px;
}

.hero-metrics,
.launch-command-strip,
.page-subnav {
  display: grid;
  gap: 10px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.hero-metrics div,
.launch-command-strip div,
.page-subnav span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-metrics div {
  min-height: 82px;
  padding: 14px;
  border-radius: 12px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.home-prompt {
  padding: 6px;
  border-radius: 16px;
}

.home-prompt textarea {
  min-height: 116px;
}

.prompt-card,
.panel,
.terminal-panel,
.card,
.table,
.metric,
.candidate,
.concept-card,
.intel-card,
.share-card,
.empty-state {
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    0 18px 54px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.045);
}

.panel,
.terminal-panel,
.table {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(21, 26, 43, 0.92), rgba(14, 18, 32, 0.94));
}

.panel-head {
  min-height: 56px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
}

.panel-head strong {
  font-size: 15px;
}

.hero-preview {
  position: relative;
  padding: 18px 22px 16px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(25, 31, 52, 0.96), rgba(13, 17, 31, 0.98));
}

.hero-preview::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
}

.preview-grid {
  grid-template-columns: 150px minmax(0, 1fr) 112px;
}

.mascot {
  width: 138px;
  border-radius: 32px;
}

.ring-score {
  border-radius: 28px;
}

.home-section {
  padding: 26px 40px;
}

.home-section > h3 {
  color: var(--ink);
}

.price-item {
  background: rgba(255,255,255,0.02);
}

.price-icon,
.mini-icon,
.token-icon,
.empty-icon {
  box-shadow:
    0 10px 28px rgba(53, 167, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.section {
  padding-top: clamp(28px, 4vw, 52px);
}

.page-title {
  align-items: center;
  margin-bottom: 16px;
  padding: 26px 0 6px;
}

.container > .page-title {
  position: relative;
  margin-bottom: 18px;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 48% 120% at 95% 0%, rgba(32,224,167,0.14), transparent 62%),
    linear-gradient(135deg, rgba(124,108,255,0.11), rgba(255,255,255,0.025) 44%, rgba(53,167,255,0.065));
  overflow: hidden;
}

.container > .page-title::after {
  content: "";
  position: absolute;
  inset: auto 28px 0 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.page-title h1 {
  margin-bottom: 8px;
}

.page-title .btn {
  min-width: 132px;
}

.page-subnav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.page-subnav span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 700;
}

.launch-command-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.launch-command-strip div {
  padding: 14px 16px;
  border-radius: 12px;
}

.launch-command-strip span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.launch-command-strip strong {
  font-size: 13px;
}

.stepper {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.candidate {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(29, 35, 57, 0.9), rgba(18, 23, 40, 0.92));
}

.candidate.selected {
  border-color: rgba(32, 224, 167, 0.52);
  box-shadow:
    0 0 0 1px rgba(32, 224, 167, 0.2),
    0 18px 46px rgba(32, 224, 167, 0.08);
}

.score {
  background: linear-gradient(135deg, rgba(32,224,167,0.14), rgba(124,108,255,0.2));
}

.table {
  overflow: hidden;
}

.table th {
  background: rgba(255,255,255,0.035);
}

.table tbody tr.project-row:hover {
  background: rgba(124,108,255,0.055);
}

.expand-row td {
  background: rgba(3, 6, 14, 0.28);
}

.metric {
  background:
    linear-gradient(145deg, rgba(29, 35, 57, 0.92), rgba(18, 23, 40, 0.94));
}

.bar-col .bar {
  background: linear-gradient(180deg, var(--accent), var(--primary-2), var(--primary));
}

.filter-pill {
  border-radius: 10px;
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(32,224,167,0.22), rgba(124,108,255,0.26));
  border-color: rgba(32,224,167,0.28);
}

.empty-state {
  border-style: solid;
  background:
    linear-gradient(145deg, rgba(29,35,57,0.66), rgba(14,18,32,0.8));
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  opacity: 1;
}

.share-card {
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(32,224,167,0.16), transparent 34%),
    linear-gradient(135deg, rgba(124,108,255,0.18), rgba(53,167,255,0.08)),
    var(--surface-2);
}

.btn.primary {
  background: linear-gradient(135deg, #20e0a7, #35a7ff 48%, #7c6cff);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #35efb8, #50b8ff 48%, #8b7cff);
}

.btn.secondary,
.btn.ghost,
.copy-btn {
  background: rgba(255,255,255,0.045);
}

@media (max-width: 900px) {
  .topbar {
    width: min(100%, calc(100% - 20px));
    margin-top: 10px;
  }

  .hero {
    min-height: auto;
    padding: 28px 20px;
  }

  .hero-metrics,
  .launch-command-strip,
  .page-subnav {
    grid-template-columns: 1fr;
  }

  .home-prompt .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  .topbar {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
  }

  .nav a {
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
    font-size: 11.5px;
  }

  .section {
    padding: 16px 10px 28px;
  }

  .container,
  .app-frame {
    width: 100%;
    max-width: 100%;
  }

  .app-frame {
    margin: 10px 0 18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .actions .btn,
  .x-nav-link,
  .status-pill {
    width: 100%;
  }

  .x-nav-link {
    justify-content: center;
  }

  h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .lead {
    font-size: 14.5px;
  }

  .hero {
    width: 100%;
    gap: 22px;
    padding: 20px 14px 18px;
  }

  .hero::before {
    right: -260px;
    bottom: -230px;
  }

  .hero-kicker {
    max-width: 100%;
    font-size: 10.5px;
  }

  .home-prompt {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .home-prompt textarea {
    min-height: 112px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
  }

  .hero-preview::after {
    display: none;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mascot {
    width: min(100%, 260px);
    margin: 0 auto;
    border-radius: 22px;
  }

  .preview-table,
  .ring-score,
  .meta-strip,
  .ca-reserve-card {
    width: 100%;
    min-width: 0;
  }

  .preview-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ring-score {
    height: 84px;
  }

  .meta-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meta-item {
    min-height: auto;
  }

  .ca-reserve-card .copy-btn,
  .ca-launch-card .copy-btn {
    width: 100%;
  }

  .home-section {
    padding: 18px 14px;
  }

  .pricing-strip {
    grid-template-columns: 1fr;
  }

  .container > .page-title {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .page-title .btn {
    width: 100%;
  }

  .page-subnav,
  .launch-command-strip {
    grid-template-columns: 1fr;
  }

  .stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .stepper li {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    white-space: normal;
    font-size: 11px;
  }

  .stepper li + li::before {
    display: none;
  }

  .grid-2,
  .grid-3,
  .form-grid {
    gap: 14px;
  }

  .panel-body,
  .panel-head {
    padding-left: 14px;
    padding-right: 14px;
  }

  .candidate {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .candidate .token-icon {
    width: 54px;
    height: 54px;
  }

  .score-bar-row {
    grid-template-columns: 74px minmax(0, 1fr) 30px;
    gap: 7px;
  }

  .action-bar,
  .field.full.action-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-bar .btn,
  .field.full.action-bar .btn {
    width: 100%;
  }

  .ca-input-shell {
    grid-template-columns: 1fr;
  }

  .tweet-preview {
    min-height: 120px;
  }

  .share-card {
    grid-template-columns: 1fr;
  }

  .x-link-reserve {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-metrics div {
    min-height: auto;
  }

  .table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .table th,
  .table td {
    padding: 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .table td:first-child,
  .table th:first-child {
    min-width: 150px;
  }

  .expand-row td {
    white-space: normal;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: 24px;
  }

  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .hero > div,
  .hero-preview,
  .panel {
    animation: none;
  }
}

@media (max-width: 430px) {
  .shell {
    overflow-x: hidden;
  }

  .topbar {
    margin-top: 10px;
  }

  .app-frame {
    margin-top: 10px;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-kicker {
    margin-bottom: 12px;
  }

  .hero-preview {
    margin-top: 4px;
  }

  .mascot {
    width: min(100%, 220px);
  }

  .container > .page-title {
    margin-top: 0;
  }
}
