@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg-primary: #0a0d0c;
  --bg-secondary: #0e1411;
  --bg-card: rgba(14, 20, 17, 0.78);
  --bg-input: #141c18;
  --border: #1b2621;
  --border-light: #26352e;
  --hover-bg: rgba(27, 38, 33, 0.6);
  --text-primary: #d9f7ef;
  --text-secondary: #b7d6cc;
  --text-muted: #89a79d;
  --text-dimmed: #5b726a;
  --text-white: #e7fff7;
  --accent: #20c997;
  --accent-strong: #20c997;
  --accent-hover: #27e0a6;
  --accent-icon: #2bd7a3;
  --accent-bg: rgba(32, 201, 151, 0.16);
  --warning: #f7b955;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  --bg-primary: #f3fbf8;
  --bg-secondary: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-input: #eff8f4;
  --border: #d5e9e2;
  --border-light: #bddacf;
  --hover-bg: rgba(20, 154, 115, 0.08);
  --text-primary: #16362c;
  --text-secondary: #365e52;
  --text-muted: #65877b;
  --text-dimmed: #8aab9f;
  --text-white: #0e241d;
  --accent: #149a73;
  --accent-strong: #149a73;
  --accent-hover: #20c997;
  --accent-icon: #149a73;
  --accent-bg: rgba(20, 154, 115, 0.12);
  --warning: #d38b1c;
  --shadow: 0 24px 70px rgba(8, 33, 26, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, #0a0d0c 0%, #0d1411 40%, #0a0d0c 100%);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: url("./background-network.jpg") center center / cover no-repeat;
  opacity: 0.26;
  transform: scale(1.03);
}

:root[data-theme="light"] body::before {
  opacity: 0.18;
}

body::after {
  background:
    linear-gradient(180deg, rgba(10, 13, 12, 0.78), rgba(10, 13, 12, 0.9)),
    radial-gradient(circle at top center, rgba(39, 224, 166, 0.14), transparent 32rem),
    radial-gradient(circle at 15% 15%, rgba(32, 201, 151, 0.12), transparent 18rem);
  z-index: 0;
}

:root[data-theme="light"] body::after {
  background:
    linear-gradient(180deg, rgba(243, 251, 248, 0.85), rgba(243, 251, 248, 0.92)),
    radial-gradient(circle at top center, rgba(20, 154, 115, 0.12), transparent 30rem),
    radial-gradient(circle at 15% 15%, rgba(32, 201, 151, 0.1), transparent 18rem);
}

img {
  max-width: 100%;
  display: block;
}

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

code {
  font-family: "IBM Plex Sans", monospace;
  color: var(--text-white);
}

.site-shell {
  width: calc(100vw - 24px);
  margin: 0 auto;
  padding: 20px 0 64px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10, 13, 12, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(32, 201, 151, 0.18));
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.theme-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(20, 28, 24, 0.68);
}

:root[data-theme="light"] .theme-toggle-track {
  background: rgba(255, 255, 255, 0.8);
}

.theme-toggle-label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
}

.theme-toggle-thumb {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-hover));
  box-shadow: 0 10px 22px rgba(20, 154, 115, 0.24);
  transition: transform 0.25s ease;
}

:root[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(100%);
}

.topnav a:hover {
  color: var(--text-white);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 36px 0 26px;
}

.hero-copy,
.hero-visual,
.section,
.workflow-band,
.cta-card {
  position: relative;
}

.hero-copy,
.hero-visual,
.section,
.workflow-band,
.cta-card {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(14, 20, 17, 0.78), rgba(10, 13, 12, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

:root[data-theme="light"] .hero-copy,
:root[data-theme="light"] .hero-visual,
:root[data-theme="light"] .section,
:root[data-theme="light"] .workflow-band,
:root[data-theme="light"] .cta-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 252, 249, 0.92));
}

.hero-copy {
  padding: 36px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-icon);
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 14px rgba(32, 201, 151, 0.5);
}

.hero h1,
.section h2,
.workflow-band h2,
.cta-card h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  color: var(--text-white);
  line-height: 1.02;
  margin: 18px 0 14px;
}

.hero h1 {
  font-size: clamp(2.9rem, 5vw, 5.6rem);
  max-width: 12ch;
}

.hero-text,
.workflow-copy p,
.section-header p:not(.section-kicker),
.feature-card p,
.connector-card p,
.deploy-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-hover));
  color: #062018;
}

:root[data-theme="light"] .button-primary {
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--border-light);
  color: var(--text-white);
  background: rgba(20, 28, 24, 0.7);
}

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

.metric-card,
.feature-card,
.connector-card,
.deploy-card,
.workflow-steps li {
  border: 1px solid var(--border-light);
  background: rgba(20, 28, 24, 0.76);
  border-radius: 22px;
  padding: 18px;
}

:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .connector-card,
:root[data-theme="light"] .deploy-card,
:root[data-theme="light"] .workflow-steps li {
  background: rgba(255, 255, 255, 0.84);
}

.metric-card strong,
.feature-card h3,
.connector-label,
.deploy-card h3,
.workflow-steps strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 6px;
}

.metric-card span,
.workflow-steps span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-visual {
  padding: 26px;
  min-height: 640px;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(39, 224, 166, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 224, 166, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

:root[data-theme="light"] .hero-visual::before {
  background:
    linear-gradient(rgba(20, 154, 115, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 154, 115, 0.1) 1px, transparent 1px);
}

.visual-panel {
  position: absolute;
  border: 1px solid var(--border-light);
  background: rgba(14, 20, 17, 0.85);
  border-radius: 28px;
}

:root[data-theme="light"] .visual-panel {
  background: rgba(255, 255, 255, 0.74);
}

.visual-panel-main {
  inset: 42px 32px 54px 42px;
  padding: 18px;
}

.visual-panel-float {
  right: 36px;
  bottom: 26px;
  width: 220px;
  padding: 18px;
  background: rgba(10, 13, 12, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.panel-chrome {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-light);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: calc(100% - 28px);
}

.flow-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.mini-card {
  border: 1px solid rgba(39, 224, 166, 0.12);
  border-radius: 18px;
  background: rgba(20, 28, 24, 0.8);
  color: var(--text-white);
  padding: 16px;
  text-align: center;
  font-weight: 600;
}

.mini-card.accent,
.connector-card-highlight {
  border-color: rgba(39, 224, 166, 0.36);
  background: linear-gradient(180deg, rgba(32, 201, 151, 0.15), rgba(20, 28, 24, 0.82));
}

.mini-card.wide {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-line {
  height: 48px;
  margin: 0 auto;
  width: 2px;
  background: linear-gradient(180deg, rgba(39, 224, 166, 0), rgba(39, 224, 166, 0.65), rgba(39, 224, 166, 0));
}

.stack-title {
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 10px;
}

.status-list {
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.status.good {
  background: var(--accent-strong);
  box-shadow: 0 0 12px rgba(39, 224, 166, 0.4);
}

.status.warn {
  background: var(--warning);
  box-shadow: 0 0 12px rgba(247, 185, 85, 0.35);
}

.section,
.workflow-band {
  padding: 32px;
  margin-top: 28px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.section h2,
.workflow-band h2,
.cta-card h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.feature-grid,
.connector-grid,
.deploy-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.connector-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deploy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.workflow-steps {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cta-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .hero,
  .workflow-band,
  .feature-grid,
  .connector-grid,
  .deploy-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100vw - 12px);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle {
    align-self: stretch;
  }

  .topnav {
    gap: 14px;
  }

  .hero-copy,
  .hero-visual,
  .section,
  .workflow-band,
  .cta-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .visual-panel-main {
    inset: 20px;
  }

  .visual-panel-float {
    position: static;
    width: auto;
    margin-top: 18px;
  }
}
