/* ==========================================================================
   GELATO CONNECTOR — AVANT-GARDE OBSIDIAN & AZURE DESIGN SYSTEM
   Neal Frazier Tech (@1nc0gn30) • NullAI Platform
   ========================================================================== */

:root {
  --bg-void: #08090E;
  --bg-card: #0E111B;
  --bg-card-subtle: #131724;
  --border-card: rgba(0, 163, 224, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 163, 224, 0.5);

  --azure: #00A3E0;
  --azure-glow: rgba(0, 163, 224, 0.35);
  --sapphire: #0284C7;

  --emerald: #10B981;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --cyan: #06B6D4;
  --ruby: #EF4444;
  --amber: #F59E0B;

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}

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

html, body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Aurora Mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 163, 224, 0.12) 0%, rgba(212, 175, 55, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Sales Funnel Banner */
.sales-banner {
  background: linear-gradient(135deg, rgba(0, 163, 224, 0.15) 0%, rgba(14, 17, 27, 0.96) 100%);
  border: 1px solid var(--azure);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin: 1rem 0 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 24px rgba(0, 163, 224, 0.18);
}

.sales-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.founding-badge {
  background: var(--gold);
  color: #08090E;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sales-banner-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

.price-strike {
  text-decoration: line-through;
  color: var(--text-dim);
  margin-right: 0.35rem;
}

.price-current {
  color: var(--azure);
  font-weight: 800;
  font-size: 1.05rem;
}

.sales-banner-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azure) 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 12px var(--azure-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--azure-glow);
}

.btn-solana {
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
  color: #08090E;
}
.btn-solana:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-outline {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--azure);
  color: #FFFFFF;
}

.btn-link {
  background: transparent;
  color: var(--gold);
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}

/* Header */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--azure);
  box-shadow: 0 0 16px var(--azure-glow);
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-version {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.badge-pro {
  background: rgba(212, 175, 55, 0.2) !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 163, 224, 0.1);
  border: 1px solid rgba(0, 163, 224, 0.3);
  color: var(--azure);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--azure);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--azure);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.card-title-icon {
  font-size: 1.15rem;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.val-azure { color: var(--azure); }
.val-gold { color: var(--gold); }
.val-emerald { color: var(--emerald); }
.val-cyan { color: var(--cyan); }
.val-ruby { color: var(--ruby); }

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.text-mono {
  font-family: var(--font-mono);
}

/* Margin Gauge Box */
.margin-gauge-wrap {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  height: 100%;
}

.gauge-val {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--azure);
  line-height: 1;
}

.gauge-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Dropzone & Auditor */
.dropzone {
  border: 2px dashed rgba(0, 163, 224, 0.35);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 163, 224, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--azure);
  background: rgba(0, 163, 224, 0.08);
}

.stream-box {
  background: #040508;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-y: auto;
  max-height: 380px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th {
  padding: 0.75rem 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.data-table tr:hover {
  background: var(--bg-card-subtle);
}

/* Frosted Glass Paywall */
.paywall-wrapper {
  position: relative;
}

.paywall-blurred {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.3s ease;
}

.pro-unlocked .paywall-blurred {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}

.paywall-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(14, 17, 27, 0.95);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--gold-glow);
  z-index: 20;
}

.pro-unlocked .paywall-overlay {
  display: none !important;
}

.paywall-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex !important;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--azure);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.pro-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  margin-top: 3.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--azure);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-5 { grid-column: span 12; }
  .col-7 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 12; }
  .pro-features-grid { grid-template-columns: 1fr; }
  .sales-banner { flex-direction: column; align-items: flex-start; }
  .sales-banner-right { width: 100%; justify-content: flex-start; }
  .header { flex-direction: column; align-items: flex-start; }
  .margin-gauge-wrap { flex-direction: column; text-align: center; }
  .margin-gauge-wrap > div:last-child { border-left: none; padding-left: 0; border-top: 1px solid var(--border-subtle); padding-top: 1rem; width: 100%; }
}
