@import url("identity.css");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(43, 95, 204, 0.035), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(232, 94, 69, 0.025), transparent 50%),
    var(--bg);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.ecosystem-bar {
  background: var(--premium-surface-strong);
  border-bottom: 1px solid var(--premium-border-gold);
  font-size: 0.8125rem;
}
.ecosystem-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  min-height: 2.25rem;
  color: var(--text-muted);
}
.ecosystem-bar a {
  color: var(--premium-gold-light);
  font-weight: 600;
  text-decoration: none;
}
.ecosystem-bar a:hover { text-decoration: underline; }
.ecosystem-bar img { vertical-align: middle; border-radius: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #172c3d, #10202d);
  border: 1px solid rgba(114, 194, 208, .28);
  font-size: 0.75rem;
  font-family: var(--mono);
  color: #e9f6f7;
  letter-spacing: -.08em;
}
.brand-mark span { color: var(--jf-cyan); font: 600 .48rem var(--font); letter-spacing: .12em; margin-left: .2rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--surface); }
.nav-link--cta {
  background: rgba(43, 95, 204, .08);
  border: 1px solid rgba(43, 95, 204, .2);
  color: var(--jf-cyan-bright) !important;
  margin-left: 0.25rem;
  box-shadow: none;
}
.nav-link--cta:hover { filter: brightness(1.06); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  margin: auto;
  content: "";
}
.nav-toggle-bar::before { transform: translateY(-5px); }
.nav-toggle-bar::after { transform: translateY(3px); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .main-nav.is-open { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}
.hero--visual {
  background: var(--bg) center/cover no-repeat;
}
.hero--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}
.hero--visual .container { position: relative; z-index: 1; }

.hero-visual-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--premium-border-gold);
  overflow: hidden;
  box-shadow: var(--premium-shadow);
  margin-top: 1.5rem;
}
.hero-visual-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--premium-gold);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--premium-border-gold);
  background: rgba(232, 94, 69, 0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  margin: 1rem 0 1rem;
  font-weight: 700;
}

.text-accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--text-muted); font-size: 1.0625rem; max-width: 36rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero-badges { display: flex; flex-direction: column; gap: 0.75rem; }

.badge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.badge-card h2 { font-size: 1rem; margin: 0 0 0.35rem; }
.badge-card p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.badge-card--highlight {
  border-color: var(--premium-border-gold);
  box-shadow: 0 0 0 1px rgba(246, 167, 53, 0.12), 0 12px 40px rgba(0, 0, 0, 0.25);
}
.badge-card h2 { color: var(--premium-gold-light); font-size: 0.9375rem; }

/* Banner */
.banner-rotator {
  border-block: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 0.85rem 0;
}
.banner-slide {
  display: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.banner-slide.is-active { display: block; }
.banner-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(232, 94, 69, 0.08);
  border: 1px solid var(--premium-border-gold);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  color: var(--premium-gold-light);
}

/* Sections */
.section { padding: 3rem 0; }
.section--muted { background: var(--bg-muted); }

.section-header { margin-bottom: 1.75rem; max-width: 40rem; }
.section-header h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.section-header p { margin: 0; color: var(--text-muted); }

.page-hero {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--premium-surface-strong) 0%, var(--bg) 100%);
}
.page-hero h1 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-hero p { margin: 0; color: var(--text-muted); max-width: 42rem; }

.card-grid { display: grid; gap: 1rem; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover {
  border-color: var(--premium-border-gold);
  transform: translateY(-2px);
  box-shadow: var(--premium-shadow);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.card p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.card-cta { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; color: var(--premium-gold-light); font-weight: 600; }

code, .card code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--jf-cyan);
  color: #fff;
  box-shadow: 0 8px 22px rgba(43, 95, 204, 0.18);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8125rem; }

/* Pipeline */
.flow-diagram h2 { margin-top: 0; }
.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: step;
}
.pipeline li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
}
.pipeline li::before {
  content: counter(step) ". ";
  color: var(--premium-gold);
  font-weight: 700;
}
.pipeline-note { color: var(--text-muted); font-size: 0.9375rem; }

/* Tabs */
.tabs { margin-top: 0.5rem; }
.tab-list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.tab-list button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.tab-list button.is-selected {
  background: var(--jf-cyan);
  border-color: transparent;
  color: #102029;
}
.tab-panel[hidden] { display: none; }
.tab-intro { color: var(--text-muted); }

.feature-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.plan-table th,
.plan-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.plan-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-table tbody tr:hover { background: rgba(22,35,53,0.035); }
.cell-action { text-align: right; white-space: nowrap; }
.ram-pill {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent-secondary);
}

.fine-print { font-size: 0.8125rem; color: var(--text-muted); margin-top: 1rem; }

/* Domain search */
.domain-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 640px;
}
.domain-search input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--mono);
}
.domain-hint { font-size: 0.875rem; color: var(--text-muted); margin-top: 1rem; }

.domain-results { margin-top: 1.5rem; }
.domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.domain-row.is-taken { opacity: 0.85; }
.domain-status { font-size: 0.8125rem; font-weight: 600; }
.domain-status--free { color: var(--success); }
.domain-status--busy { color: #f87171; }

/* Status */
.status-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.status-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.status-card h2 { margin: 0; font-size: 1rem; }
.status-pill {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.status-pill--ok { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-metric { font-size: 0.875rem; color: var(--text-muted); }
.spark-placeholder {
  height: 48px;
  margin-top: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.subsection-title { margin-top: 2.5rem; font-size: 1.125rem; }
.empty-state { color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-brand { font-weight: 700; margin: 0 0 0.25rem; }
.footer-legal, .footer-tagline { font-size: 0.875rem; color: var(--text-muted); margin: 0.25rem 0; }
.footer-heading { font-weight: 600; margin: 0 0 0.5rem; font-size: 0.875rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-links a:hover { color: var(--premium-gold-light); }

.footer-ecosystem {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.footer-ecosystem img { width: 32px; height: 32px; border-radius: 8px; }
.footer-ecosystem span { font-size: 0.8125rem; color: var(--text-muted); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.prose h2 { margin-top: 2rem; font-size: 1.125rem; }
.doc-list { list-style: none; padding: 0; }
.doc-list li { margin-bottom: 0.65rem; }
.doc-list a { color: var(--premium-gold-light); }
.badge-soon {
  font-size: 0.6875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.kb-list { list-style: none; padding: 0; }
.kb-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.kb-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--premium-gold);
  min-width: 5rem;
}
.kb-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.kb-list a:hover { color: var(--premium-gold-light); }

.trust-strip {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .trust-strip { grid-template-columns: 1fr 1.1fr; }
}
.trust-strip img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--premium-border-gold);
  box-shadow: var(--premium-shadow);
}
.trust-list { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.trust-list li { margin-bottom: 0.5rem; }
.trust-list strong { color: var(--premium-text); }

.section-header a {
  color: var(--premium-gold-light);
  font-weight: 600;
}

.hero-aside { display: flex; flex-direction: column; gap: 1rem; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 1fr;
    align-items: start;
  }
  .hero-copy { grid-column: 1; }
  .hero-aside { grid-column: 2; }
}
