:root {
  --bg-dark: #0b0e14;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-border: rgba(0, 242, 254, 0.18);
  --cyan-glow: #00f2fe;
  --green-win: #00ff87;
  --red-loss: #ff0055;
  --amber-warn: #ffb703;
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 0, 85, 0.06) 0%, transparent 50%);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px;
  width: 100%;
}

/* Header & Nav */
header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  background: linear-gradient(135deg, var(--cyan-glow), #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tag-badge {
  font-size: 11px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-glow);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Live Fleet Ticker */
.fleet-ticker-bar {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: scroll-left 35s linear infinite;
  color: var(--text-muted);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 32px;
}

.ticker-item b {
  color: #fff;
}

.ticker-green {
  color: var(--green-win);
  font-weight: 700;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero */
.hero {
  text-align: center;
  margin: 40px 0 32px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero h1 .highlight-red {
  color: var(--red-loss);
  text-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.hero h1 .highlight-cyan {
  color: var(--cyan-glow);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Mode Switcher Tabs */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.tabs-wrapper {
  background: #141a26;
  padding: 5px;
  border-radius: 12px;
  display: flex;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Main Input Card */
.input-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.input-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

/* Tab Content */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-flex {
  display: flex;
  gap: 12px;
}

.text-input {
  flex: 1;
  background: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 10px;
  transition: border-color 0.2s ease;
  outline: none;
}

.text-input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-glow), #4facfe);
  color: #0b0e14;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

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

.demo-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-btn {
  background: transparent;
  border: none;
  color: var(--cyan-glow);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}

/* Drag & Drop Upload Zone */
.upload-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 242, 254, 0.02);
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--cyan-glow);
  background: rgba(0, 242, 254, 0.08);
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.select-input {
  width: 100%;
  background: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

/* Loading State */
.loading-box {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 242, 254, 0.15);
  border-top-color: var(--cyan-glow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Results Section */
.results-container {
  display: none;
  margin-top: 36px;
}

/* The Roast Card (Viral Asset) */
.roast-card {
  background: #111622;
  border: 2px solid rgba(255, 0, 85, 0.4);
  border-radius: 18px;
  padding: 30px;
  position: relative;
  box-shadow: 0 0 35px rgba(255, 0, 85, 0.15);
  margin-bottom: 30px;
}

.roast-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.wallet-badge-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}

.wallet-badge-info span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.grade-stamp {
  background: var(--red-loss);
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  padding: 8px 18px;
  border-radius: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.grade-stamp small {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.9;
}

.archetype-title {
  color: var(--amber-warn);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Stats Metrics Grid */
.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.metric-pill {
  background: #161c2b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.metric-pill .lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.metric-pill .val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.val-green { color: var(--green-win); }
.val-red { color: var(--red-loss); }
.val-amber { color: var(--amber-warn); }

/* Roast Punchlines Box */
.roast-punchlines-box {
  background: rgba(255, 0, 85, 0.06);
  border-left: 4px solid var(--red-loss);
  padding: 18px 20px;
  border-radius: 6px;
  margin: 22px 0;
}

.roast-punchlines-box h4 {
  color: var(--red-loss);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.roast-punchlines-box ul {
  list-style: none;
}

.roast-punchlines-box li {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.roast-punchlines-box li::before {
  content: "🔥";
  position: absolute;
  left: 0;
  top: 0;
}

/* Viral Share Row */
.viral-share-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.btn-share-x {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-share-x:hover {
  background: #111;
  border-color: #fff;
}

/* The Institutional Alpha Grid (Paywall & Value) */
.alpha-grid-section {
  background: var(--bg-card);
  border: 1px solid var(--cyan-glow);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.12);
}

.alpha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.alpha-header h3 {
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quant-tag {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-glow);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Locked Pro Overlay */
.paywall-wrapper {
  position: relative;
  margin-top: 24px;
}

.blur-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(11, 14, 20, 0.85);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.lock-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.paywall-overlay h4 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.paywall-overlay p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 440px;
  margin-bottom: 20px;
}

/* Pricing Grid */
.pricing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
}

.plan-card {
  background: #151b27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.plan-card:hover, .plan-card.selected {
  border-color: var(--cyan-glow);
  background: rgba(0, 242, 254, 0.08);
}

.plan-card .price {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 4px;
}

.plan-card .sub {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-pop {
  font-size: 9px;
  background: var(--cyan-glow);
  color: #000;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .input-flex { flex-direction: column; }
  .roast-header { flex-direction: column; gap: 14px; }
  .grade-stamp { align-self: flex-start; }
}
