:root {
  --bg-0: #05070c;
  --bg-1: #0a0e17;
  --bg-2: #101624;
  --bg-3: #161f31;
  --bg-elev: rgba(16, 22, 36, 0.82);
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #8b9bb4;
  --text-3: #5b6b84;
  --accent: #38bdf8;
  --accent-2: #3b82f6;
  --accent-glow: rgba(56, 189, 248, 0.16);
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --rose: #f43f5e;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html, body {
  background-color: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Nymoru Systems-Research Blueprint Grid */
.blueprint-bg {
  background-image:
    radial-gradient(900px 420px at 50% -80px, rgba(56, 189, 248, 0.13), transparent 70%),
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Top Announcement / Domain Split Bar */
.domain-bar {
  background: linear-gradient(90deg, #090d16 0%, #0e1729 50%, #090d16 100%);
  border-bottom: 1px solid var(--border);
  padding: 7px 24px;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  display: inline-block;
}

/* Landing Header */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 12, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: #030712;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.32);
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-1);
  font-size: 13.5px;
  font-weight: 500;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #020617;
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text-0);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-3);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-2);
  color: var(--text-0);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.22);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Landing Container & Hero */
.landing-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  padding: 64px 0 56px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 22, 36, 0.9);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-h1 .serif-italic {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  font-size: 58px;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--text-1);
  max-width: 590px;
  margin-bottom: 28px;
  line-height: 1.65;
}

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

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-0);
}

.hero-stat-lbl {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 2px;
}

/* Hero Interactive Terminal Card */
.terminal-card {
  background: linear-gradient(180deg, #0c121e 0%, #080c14 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.08);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(16, 22, 36, 0.9);
  border-bottom: 1px solid var(--border);
}

.tab-pills {
  display: flex;
  gap: 6px;
}

.tab-pill {
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
  cursor: pointer;
}

.tab-pill.active {
  background: var(--bg-3);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.3);
}

.code-pre {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.62;
  color: #e2e8f0;
  overflow-x: auto;
  background: #070a11;
}

.terminal-live-bench {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(12, 18, 30, 0.95);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Section Headers */
.section-block {
  padding: 58px 0 20px;
  border-top: 1px solid var(--border);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 15px;
}

/* Benchmark Bars Grid */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card:hover {
  border-color: var(--border-strong);
}

.bar-track {
  height: 10px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 12px;
}

.bar-fill-nymoru {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
}

.bar-fill-other {
  height: 100%;
  background: #334155;
  border-radius: 999px;
}

/* Research Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.paper-card {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.7) 0%, rgba(10, 14, 23, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.paper-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   NEOCLOUD DEVELOPER CONSOLE LAYOUT (Together AI Inspired)
   ========================================================================== */
.console-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: var(--bg-0);
}

.console-sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 18px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.sidebar-group-label,
.sidebar-section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 12px 10px 4px;
}

.side-btn,
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-1);
  font-family: inherit;
  font-size: 13.2px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.side-btn:hover,
.sidebar-item:hover {
  background: var(--bg-2);
  color: var(--text-0);
}

.side-btn.active,
.sidebar-item.active {
  background: rgba(56, 189, 248, 0.11);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.26);
  font-weight: 600;
}

.side-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.console-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.console-topbar {
  height: 58px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.console-body,
.console-content {
  padding: 24px 28px 64px;
  max-width: 1480px;
  width: 100%;
}

/* KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text-0);
}

.kpi-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  margin-top: 4px;
}

/* Model Cards Grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.model-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
}

.chip-emerald {
  background: var(--emerald-bg);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.chip-cyan {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Playground Split Studio */
.playground-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  min-height: 670px;
}

.pg-stage {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pg-inspector {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: fit-content;
}

.chat-scroll {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 540px;
  min-height: 430px;
}

.msg-bubble {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  line-height: 1.62;
  word-break: break-word;
}

.msg-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-user {
  background: var(--bg-2);
  align-self: flex-end;
  max-width: 82%;
  border-color: rgba(56, 189, 248, 0.25);
}

.msg-assistant {
  background: rgba(12, 18, 30, 0.9);
  align-self: stretch;
}

.think-box {
  background: rgba(245, 158, 11, 0.06);
  border-left: 2px solid var(--amber);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.8px;
  color: var(--text-2);
  border-radius: 0 6px 6px 0;
  white-space: pre-wrap;
  max-height: 140px;
  overflow-y: auto;
}

.msg-telemetry {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.pg-composer {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-field, .select-field, .textarea-field {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-0);
  font-size: 13px;
  outline: none;
}

.input-field:focus, .select-field:focus, .textarea-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.8px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-strong);
  background: rgba(16, 22, 36, 0.5);
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(22, 31, 49, 0.45);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
}

/* Portal Auth Gate & Google Sign-In */
.auth-gate-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 85% 95%, rgba(16, 185, 129, 0.08), transparent),
    var(--bg-0);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
}

.auth-center {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 36px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(13, 18, 30, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(56, 189, 248, 0.06);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  background: #f8fafc;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.wg-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 1080px) {
  .hero-grid, .playground-grid, .bench-grid, .papers-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .console-shell {
    grid-template-columns: 1fr;
  }
  .console-sidebar {
    position: static;
    height: auto;
  }
}
