:root {
  --bg: #f3f6fb;
  --bg-deep: #e9eff9;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --surface-elevated: #f7fbff;
  --text: #11213c;
  --text-dim: #556480;
  --line: #d8e2f2;
  --line-soft: rgba(154, 175, 206, 0.45);
  --accent: #0e8ba5;
  --accent-2: #1ca879;
  --focus: #29b28a;
  --accent-shadow: rgba(14, 139, 165, 0.28);
  --status-glow: rgba(14, 139, 165, 0.42);
  --hero-border: rgba(14, 139, 165, 0.22);
  --hero-panel-bg: linear-gradient(170deg, #ffffff, #edf4ff);
  --console-bg: #f1f7ff;
  --console-text: #2d5f7e;
  --header-bg: rgba(243, 246, 251, 0.82);
  --grid-line: rgba(16, 31, 56, 0.05);
  --halo-a: rgba(28, 168, 121, 0.16);
  --halo-b: rgba(49, 132, 223, 0.14);
  --shadow: 0 18px 42px rgba(17, 40, 74, 0.12);
  --container: 1140px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

:root[data-theme="dark"] {
  --bg: #08101b;
  --bg-deep: #0d1a2b;
  --surface: #132033;
  --surface-soft: #17263a;
  --surface-elevated: #162539;
  --text: #e8eef8;
  --text-dim: #a9b7cc;
  --line: #2a3d56;
  --line-soft: rgba(130, 155, 188, 0.22);
  --accent: #36c2b3;
  --accent-2: #50b0dd;
  --focus: #70d2c9;
  --accent-shadow: rgba(54, 194, 179, 0.28);
  --status-glow: rgba(54, 194, 179, 0.42);
  --hero-border: rgba(112, 210, 201, 0.26);
  --hero-panel-bg: linear-gradient(170deg, rgba(18, 31, 49, 0.88), rgba(14, 25, 39, 0.95));
  --console-bg: rgba(9, 17, 29, 0.72);
  --console-text: #9cd0ca;
  --header-bg: rgba(8, 16, 27, 0.8);
  --grid-line: rgba(255, 255, 255, 0.03);
  --halo-a: rgba(43, 182, 168, 0.17);
  --halo-b: rgba(88, 138, 219, 0.18);
  --shadow: 0 18px 45px rgba(5, 11, 19, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg-deep) 50%, var(--bg) 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3,
.eyebrow,
.brand-text {
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

code {
  font-family: "JetBrains Mono", monospace;
}

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

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

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.halo-a {
  width: 460px;
  height: 460px;
  background: var(--halo-a);
  top: -140px;
  left: -120px;
}

.halo-b {
  width: 430px;
  height: 430px;
  background: var(--halo-b);
  right: -120px;
  top: 200px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 82%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line-soft);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-weight: 600;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.64rem;
  background: linear-gradient(165deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 1.06rem;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  color: var(--text-dim);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active-link {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.56rem 0.95rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--focus);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #051a20;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px var(--accent-shadow);
  filter: brightness(1.03);
}

.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.button-sm {
  padding: 0.58rem 1.08rem;
  font-size: 0.9rem;
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--focus);
  box-shadow: none;
}

.hero {
  padding: 6.2rem 0 4.2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
}

.security-page .hero {
  padding-top: 5.1rem;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin: 0 0 0.9rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 3.3rem);
  line-height: 1.08;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 1.09rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.trust-list {
  margin: 1.55rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  display: grid;
  gap: 0.62rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.3rem;
}

.trust-list li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.45rem;
}

.hero-panel {
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-lg);
  background: var(--hero-panel-bg);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.95rem;
}

.status-dot {
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--status-glow);
  animation: pulse 2s infinite;
}

.metric {
  padding: 0.86rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.metric p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-dim);
}

.metric strong {
  margin-top: 0.24rem;
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
}

.console {
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.82rem;
  background: var(--console-bg);
  padding: 0.82rem;
  display: grid;
  gap: 0.35rem;
}

.console code {
  color: var(--console-text);
  font-size: 0.79rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  max-width: 72ch;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 1.18;
}

.section-head p {
  margin-top: 0.7rem;
  color: var(--text-dim);
}

.shot-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  gap: 1.1rem;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
  padding: 0.72rem;
}

.shot-main {
  grid-row: span 2;
}

.shot img {
  border-radius: calc(var(--radius-md) - 4px);
  border: 1px solid var(--line-soft);
  width: 100%;
}

.shot figcaption {
  margin-top: 0.68rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.security-grid,
.feature-cards,
.quality-shell {
  margin-top: 1.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

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

.security-grid article,
.feature-card,
.quality-shell article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
  padding: 1.12rem;
}

.section h3 {
  margin: 0 0 0.52rem;
  font-size: 1.1rem;
}

.section p {
  margin: 0;
  color: var(--text-dim);
}

.workflow-list {
  margin: 1.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--surface-soft));
  padding: 1.08rem;
}

.workflow-list span {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.94rem;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #042026;
  background: linear-gradient(165deg, var(--accent), var(--accent-2));
}

.cta-shell {
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 1.52rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line-soft);
  padding: 1.4rem 0 2.3rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.active {
  animation: reveal-up 0.72s ease forwards;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--status-glow);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .site-nav {
    display: none;
  }

  .hero,
  .shot-grid,
  .quality-shell,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .shot-main {
    grid-row: auto;
  }

  .security-grid,
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 1.6rem));
  }

  .nav-shell {
    min-height: 74px;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .theme-toggle {
    padding: 0.52rem 0.8rem;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 3.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .nav-actions .button-sm {
    width: auto;
  }

  .workflow-list li {
    grid-template-columns: 1fr;
  }
}
