:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-2: #0b1824;
  --surface: #101f2d;
  --surface-2: #142838;
  --surface-3: #193247;
  --text: #eff7fb;
  --muted: #9cb0bf;
  --line: rgba(151, 190, 211, 0.18);
  --accent: #66c7f4;
  --accent-2: #4ed6a3;
  --warning: #f3bd62;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(102, 199, 244, 0.16), transparent 26rem),
    radial-gradient(circle at 10% 30%, rgba(78, 214, 163, 0.12), transparent 22rem),
    linear-gradient(180deg, var(--bg), #09141d 48%, #050b11);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  padding: 20px max(16px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(151, 190, 211, 0.1);
  background:
    linear-gradient(180deg, rgba(9, 23, 34, 0.58), rgba(7, 16, 24, 0.22)),
    rgba(7, 16, 24, 0.12);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.12);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 58%),
    radial-gradient(circle at 12% 30%, rgba(102, 199, 244, 0.08), transparent 16rem),
    radial-gradient(circle at 86% 18%, rgba(78, 214, 163, 0.08), transparent 14rem);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: block;
  width: 420px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(151, 190, 211, 0.18);
  border-radius: 999px;
  padding: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(6, 16, 24, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.2);
}

.site-nav a,
.language-switch button,
.button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.site-nav a {
  position: relative;
  border-color: transparent;
  border-radius: 999px;
  padding: 9px 14px;
  color: #b8c9d5;
  background: transparent;
  font-size: 13px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(102, 199, 244, 0.12);
  box-shadow: inset 0 0 0 1px rgba(102, 199, 244, 0.2);
  transform: translateY(-1px);
}

.site-nav a:focus-visible,
.language-switch button:focus-visible {
  outline: 3px solid rgba(102, 199, 244, 0.32);
  outline-offset: 2px;
}

.language-switch button.active {
  color: var(--text);
  background: rgba(102, 199, 244, 0.12);
  border-color: rgba(102, 199, 244, 0.38);
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  min-height: 34px;
  padding: 5px 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-switch button img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.language-switch button span {
  font-size: 12px;
  line-height: 1;
}

main {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 58px 0 42px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(58px, 10.6vw, 122px);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 950;
  text-shadow: 0 14px 46px rgba(102, 199, 244, 0.16);
}

.hero-subtitle {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
}

.hero-copy .eyebrow {
  font-size: 13px;
}

.hero-text {
  max-width: 670px;
  color: #c7d7e1;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.hero-panel {
  border: 1px solid rgba(102, 199, 244, 0.28);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(102, 199, 244, 0.16), rgba(78, 214, 163, 0.06)),
    rgba(12, 29, 43, 0.86);
  box-shadow: var(--shadow);
}

.dashboard-preview {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(4, 13, 20, 0.56);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-topline span {
  color: var(--muted);
  font-weight: 800;
}

.preview-topline strong {
  color: var(--accent-2);
  font-size: 52px;
  line-height: 1;
}

.preview-bars {
  display: grid;
  gap: 9px;
}

.preview-bars span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preview-bars span::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

.preview-grid article,
.feature-grid article,
.workflow-grid article,
.deploy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.preview-grid article {
  padding: 13px;
}

.preview-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-grid strong {
  font-size: 24px;
}

.section-block {
  padding: 58px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.workflow-grid,
.feature-grid,
.deploy-grid,
.screenshot-grid {
  display: grid;
  gap: 14px;
}

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

.workflow-grid article,
.feature-grid article,
.deploy-card {
  padding: 18px;
}

.workflow-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #061018;
  background: var(--accent-2);
  font-weight: 900;
}

h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.workflow-grid p,
.feature-grid p,
.deploy-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.feature-grid article {
  min-height: 162px;
}

.feature-grid h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

.screenshot-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 946;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(102, 199, 244, 0.22);
  border-radius: var(--radius);
  padding: 0;
  background:
    linear-gradient(135deg, rgba(102, 199, 244, 0.13), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 44px),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.23);
  cursor: zoom-in;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.screenshot-card.is-placeholder img {
  display: none;
}

.screenshot-card div {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.screenshot-card:hover img {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.screenshot-card:focus-visible {
  outline: 3px solid rgba(102, 199, 244, 0.34);
  outline-offset: 3px;
}

.screenshot-card span {
  border: 1px solid rgba(102, 199, 244, 0.34);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #dff6ff;
  background: rgba(4, 13, 20, 0.72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  font-weight: 900;
}

.screenshot-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 7, 12, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.screenshot-viewer[hidden] {
  display: none;
}

.screenshot-viewer figure {
  display: grid;
  gap: 12px;
  width: min(96vw, 1920px);
  max-height: 92vh;
  margin: 0;
}

.screenshot-viewer img {
  width: 100%;
  max-height: calc(92vh - 54px);
  border: 1px solid rgba(102, 199, 244, 0.32);
  border-radius: var(--radius);
  object-fit: contain;
  background: #061018;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.screenshot-viewer figcaption {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 81;
  min-height: 40px;
  border-color: rgba(102, 199, 244, 0.28);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(10, 24, 36, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.viewer-open {
  overflow: hidden;
}

.deploy-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.docker-deploy {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.docker-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(102, 199, 244, 0.24);
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(36, 150, 237, 0.16), rgba(78, 214, 163, 0.05)),
    rgba(255, 255, 255, 0.045);
}

.docker-logo {
  width: 96px;
  height: auto;
}

.docker-hub-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

.deploy-card code,
.docker-card code {
  display: block;
  margin-top: 18px;
  border: 1px solid rgba(102, 199, 244, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.22);
  overflow-wrap: anywhere;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 58px 0;
  border: 1px solid rgba(78, 214, 163, 0.26);
  border-radius: var(--radius);
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(78, 214, 163, 0.12), rgba(102, 199, 244, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.contact-section p {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: -28px 0 58px;
  border: 1px solid rgba(102, 199, 244, 0.24);
  border-radius: var(--radius);
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(102, 199, 244, 0.12), rgba(78, 214, 163, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
}

.contact-card p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(102, 199, 244, 0.34);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  background: rgba(102, 199, 244, 0.1);
  font-weight: 900;
  overflow-wrap: anywhere;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.contact-email:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 199, 244, 0.56);
  background: rgba(102, 199, 244, 0.16);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 42px;
  }

  .workflow-grid,
  .feature-grid,
  .docker-deploy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  main,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 14px;
    padding: 18px 11px 16px;
    overflow: hidden;
  }

  .brand {
    width: min(380px, calc(100vw - 28px));
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    grid-column: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .language-switch {
    justify-self: center;
  }

  .language-switch button {
    min-width: 56px;
    padding-inline: 6px;
  }

  .language-switch button img {
    width: 22px;
    height: 15px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero-actions,
  .site-footer,
  .contact-card {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    grid-template-columns: 1fr;
    margin: -18px 0 42px;
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .dashboard-preview,
  .contact-section {
    padding: 14px;
  }

  .preview-grid,
  .workflow-grid,
  .feature-grid,
  .docker-deploy,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 42px 0;
  }

  .screenshot-card,
  .screenshot-card img {
    min-height: 190px;
  }
}
