:root,
[data-theme="dark"] {
  --sh-bg-0: #041220;
  --sh-bg-1: #082d4f;
  --sh-bg-2: #0d3a63;
  --sh-surface-glass: rgba(8, 45, 79, 0.72);
  --sh-text: #f3f8fa;
  --sh-text-soft: #cbd5e1;
  --sh-muted: #94a3b8;
  --sh-border: rgba(0, 183, 165, 0.22);
  --sh-border-subtle: rgba(148, 163, 184, 0.2);
  --sh-teal: #00b7a5;
  --sh-teal-dark: #009688;
  --sh-navy: #082d4f;
  --sh-ok: #4ade80;
  --sh-warn: #fbbf24;
  --sh-crit: #f87171;
  --sh-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --sh-bg-0: #f3f8fa;
  --sh-bg-1: #ffffff;
  --sh-bg-2: #e6f0f5;
  --sh-surface-glass: rgba(255, 255, 255, 0.88);
  --sh-text: #102b3f;
  --sh-text-soft: #274861;
  --sh-muted: #526b7a;
  --sh-border: rgba(8, 45, 79, 0.16);
  --sh-border-subtle: rgba(8, 45, 79, 0.12);
  --sh-teal: #009688;
  --sh-teal-dark: #00796b;
  --sh-navy: #082d4f;
  --sh-ok: #166534;
  --sh-warn: #92400e;
  --sh-crit: #991b1b;
  --sh-shadow: 0 20px 50px rgba(8, 45, 79, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DejaVu Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: var(--sh-bg-0);
  color: var(--sh-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code,
pre,
.mono {
  font-family: "DejaVu Sans Mono", ui-monospace, Consolas, monospace;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--sh-surface-glass);
  border-bottom: 1px solid var(--sh-border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: auto;
}

[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="light"] .logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--sh-text-soft);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--sh-border);
  background: var(--sh-bg-1);
  color: var(--sh-text);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--sh-teal);
}

.btn-primary {
  background: var(--sh-teal);
  color: #041220;
  border-color: var(--sh-teal);
}

.btn-primary:hover {
  background: #00cdb9;
  border-color: #00cdb9;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(0, 183, 165, 0.16), transparent 65%),
    radial-gradient(700px 380px at 15% 20%, rgba(8, 45, 79, 0.55), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 183, 165, 0.12);
  border: 1px solid rgba(0, 183, 165, 0.35);
  color: var(--sh-teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--sh-teal);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--sh-text-soft);
  max-width: 60ch;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-chip {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sh-bg-1);
  border: 1px solid var(--sh-border-subtle);
}

.metric-chip strong {
  display: block;
  font-size: 1.25rem;
  color: var(--sh-teal);
}

.metric-chip span {
  font-size: 0.8rem;
  color: var(--sh-muted);
}

.hero-card {
  position: relative;
  padding: 26px;
  border-radius: 16px;
  background: var(--sh-bg-1);
  border: 1px solid var(--sh-border);
  box-shadow: var(--sh-shadow);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sh-border-subtle);
}

.score-ring {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.score-badge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 183, 165, 0.2), rgba(0, 183, 165, 0.05));
  border: 3px solid var(--sh-teal);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sh-teal);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--sh-bg-2);
}

.tag-ok {
  color: var(--sh-ok);
  font-weight: 700;
  font-size: 0.8rem;
}

.tag-info {
  color: var(--sh-teal);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(8, 45, 79, 0.14), transparent);
  border-top: 1px solid var(--sh-border-subtle);
  border-bottom: 1px solid var(--sh-border-subtle);
}

.section-head {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--sh-text-soft);
}

/* Screen Showcase */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.screen-tab {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--sh-border-subtle);
  background: var(--sh-bg-1);
  color: var(--sh-text-soft);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.screen-tab.active,
.screen-tab:hover {
  border-color: var(--sh-teal);
  color: var(--sh-text);
  background: var(--sh-bg-2);
}

.screen-tab.active {
  box-shadow: 0 0 0 1px var(--sh-teal);
}

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sh-border);
  background: #051829;
  color: #f3f8fa;
  box-shadow: var(--sh-shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #03101c;
  border-bottom: 1px solid #1e4b75;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.browser-dots span:first-child { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
  flex: 1;
  max-width: 440px;
  text-align: center;
  padding: 4px 12px;
  border-radius: 6px;
  background: #082d4f;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.screen-panel {
  display: none;
  padding: 24px;
}

.screen-panel.active {
  display: block;
}

.mock-shell {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
}

.mock-sidebar {
  background: #082d4f;
  border: 1px solid #1e4b75;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.mock-nav-item {
  padding: 7px 10px;
  border-radius: 6px;
  color: #cbd5e1;
}

.mock-nav-item.active {
  background: #00b7a5;
  color: #041220;
  font-weight: 700;
}

.mock-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mock-kpi {
  background: #082d4f;
  border: 1px solid #1e4b75;
  border-radius: 10px;
  padding: 12px;
}

.mock-kpi small {
  color: #94a3b8;
  font-size: 0.74rem;
  display: block;
}

.mock-kpi strong {
  font-size: 1.2rem;
  color: #f3f8fa;
}

.mock-card {
  background: #082d4f;
  border: 1px solid #1e4b75;
  border-radius: 10px;
  padding: 16px;
}

.mock-card h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: #f3f8fa;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mock-table th,
.mock-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.mock-table th {
  color: #94a3b8;
  font-weight: 600;
}

.mock-login-box {
  max-width: 400px;
  margin: 18px auto;
  text-align: center;
}

.mock-input {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 6px;
  background: #041220;
  border: 1px solid #1e4b75;
  color: #cbd5e1;
  font-size: 0.84rem;
  margin-top: 6px;
}

.mock-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #00b7a5;
  color: #041220;
  font-weight: 700;
  font-size: 0.82rem;
}

.screen-caption {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--sh-bg-1);
  border: 1px solid var(--sh-border-subtle);
  font-size: 0.92rem;
  color: var(--sh-text-soft);
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: 14px;
  background: var(--sh-bg-1);
  border: 1px solid var(--sh-border-subtle);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.card p {
  margin: 0 0 12px;
  color: var(--sh-text-soft);
  font-size: 0.94rem;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--sh-text-soft);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.arch-step {
  padding: 22px;
  border-radius: 14px;
  background: var(--sh-bg-1);
  border: 1px solid var(--sh-border);
}

.arch-step .step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sh-teal);
  margin-bottom: 8px;
}

.compare-card-bad {
  border-color: rgba(248, 113, 113, 0.35);
}

.compare-card-good {
  border-color: rgba(0, 183, 165, 0.45);
}

.code-block {
  position: relative;
  padding: 18px;
  border-radius: 12px;
  background: #03101c;
  border: 1px solid #1e4b75;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--sh-border-subtle);
  color: var(--sh-muted);
  font-size: 0.9rem;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .mock-shell,
  .arch-flow,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-metrics,
  .mock-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

.real-screen-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #1e4b75;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.real-screen-img:hover {
  border-color: #00b7a5;
}

.zoom-hint {
  color: #00b7a5;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 12, 24, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1440px, 95vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid #1e4b75;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
  text-align: center;
  max-width: 900px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #1e4b75;
  background: #082d4f;
  color: #f3f8fa;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: #00b7a5;
  color: #00b7a5;
}
