:root {
  --bg: #09090b;
  --bg-elevated: #121215;
  --bg-card: #18181b;
  --bg-subtle: #27272a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #fafafa;
  --text-secondary: #d4d4d8;
  --muted: #a1a1aa;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --danger: #f87171;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.52);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 45% at 15% 0%, rgba(16, 185, 129, 0.11) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(245, 158, 11, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, #09090b 0%, #0d0d10 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   EXECUTIVE NAVIGATION BAR
   ========================================================================= */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 16px;
}

.top-nav {
  max-width: 1220px;
  margin: 0 auto;
  background: rgba(18, 18, 21, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.22); }
}

.brand-subtag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

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

.email-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--emerald-bright);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.email-pill:hover {
  background: rgba(16, 185, 129, 0.16);
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .email-pill, .brand-subtag { display: none; }
}

/* =========================================================================
   BUTTONS & INTERACTIVE CONTROLS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 8px 13px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.94rem;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #022c22;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.24);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #18181b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: rgba(255, 255, 255, 0.28);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  padding: 58px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-bright);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.65rem, 5.1vw, 4.35rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-title .accent {
  color: var(--emerald-bright);
  font-style: italic;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 610px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.telemetry-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
}

.telemetry-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

.telemetry-val.gold {
  color: var(--amber-bright);
}

.telemetry-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* =========================================================================
   CARDS & CONCIERGE WIDGET
   ========================================================================= */
.glass-card {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.85) 0%, rgba(18, 18, 21, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.concierge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-bright);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
  color: var(--amber-bright);
}

.chat-log {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.87rem;
  max-width: 90%;
}

.chat-bubble.ai {
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #ecfdf5;
  align-self: flex-start;
}

.chat-bubble.user {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text);
  align-self: flex-end;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.chip {
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.77rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--emerald);
  color: var(--emerald-bright);
}

.input-row {
  display: flex;
  gap: 8px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--emerald);
}

/* =========================================================================
   SECTIONS & GRIDS
   ========================================================================= */
.section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-header h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 10px 0 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

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

@media (max-width: 920px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.36);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.spec-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.spec-list li::before {
  content: "✓";
  color: var(--emerald-bright);
  font-weight: 800;
}

/* =========================================================================
   LIVE AUDIT & AUTONOMOUS SANDBOX BUILDER
   ========================================================================= */
.audit-shell {
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 18, 21, 0.98) 55%);
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.audit-form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .audit-form-grid {
    grid-template-columns: 1fr;
  }
}

.audit-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .audit-result-grid {
    grid-template-columns: 1fr;
  }
}

.audit-box {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

/* =========================================================================
   PRICING TIERS
   ========================================================================= */
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.11) 0%, rgba(18, 18, 21, 0.98) 100%);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.12);
}

.price-figure {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 4px;
}

.price-figure span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

/* =========================================================================
   PEDIGREE LOGOS / BADGES
   ========================================================================= */
.pedigree-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 920px) {
  .pedigree-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pedigree-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
}

.pedigree-item strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text);
  margin-bottom: 4px;
}

.pedigree-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================================
   EXECUTIVE COMMAND CENTRE
   ========================================================================= */
.hidden {
  display: none !important;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 0.84rem;
}

.tab-btn.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald-bright);
}

.data-table-wrap {
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.87rem;
}

th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 54px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: var(--emerald-bright);
  text-decoration: none;
}
