/* JANUS public landing page — design system
 * A product of Korves.Net USA LLC
 *
 * Dark navy/infrastructure base, cool blue technical accents, green used
 * sparingly as a brand/status accent. Blue = CTA / links / policy paths,
 * green = brand / allow / healthy status.
 */

:root {
  /* surfaces */
  --color-bg: #07111f;
  --color-bg-deep: #040b14;
  --color-surface: #0d1a2b;
  --color-surface-2: #12243a;
  --color-surface-light: #f4f8fc;

  /* text */
  --color-text: #f4f7fb;
  --color-text-muted: #a9b8ca;
  --color-text-dark: #102033;
  --color-text-dark-muted: #53677c;

  /* brand */
  --color-blue: #169cf4;
  --color-blue-strong: #087ee9;
  --color-cyan: #38c6ff;
  --color-green: #8fdb23;
  --color-green-bright: #a8f12c;

  /* primary action. #fff text on this deep blue measures 5.21:1 (WCAG AA for
   * normal text); on the bright brand blue (--color-blue) white text is only
   * 2.96:1, which is exactly why the CTA looked washed out. */
  --color-btn: #0b6ad4;
  --color-btn-hover: #0a5cc0;

  /* lines */
  --color-border: #203852;
  --color-border-light: #d8e3ed;

  /* status */
  --color-success: #29c779;
  --color-warning: #f4b740;
  --color-danger: #e65d69;

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, .28);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;

  --radius-card: 12px;
  --radius-card-lg: 16px;
  --radius-btn: 9px;

  --space-section: 104px;
  --header-h: 72px;

  --w-container: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(38px, 5.1vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 25px); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--color-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, .mono { font-family: var(--font-mono); font-size: .84em; }
code { background: rgba(56, 198, 255, .1); border: 1px solid var(--color-border); border-radius: 6px; padding: .12em .42em; }

/* ---------------------------------------------------------------- layout */
.container {
  width: min(var(--w-container), calc(100% - 48px));
  margin-inline: auto;
}

section { padding-block: var(--space-section); position: relative; }
section.tight { padding-block: calc(var(--space-section) * .72); }

.light {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}
.light h1, .light h2, .light h3 { color: var(--color-text-dark); }
.light p, .light li { color: var(--color-text-dark-muted); }
.light a { color: var(--color-blue-strong); }
.deep { background: var(--color-bg-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-blue); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
/* Official JANUS lockup, used bare — no tile, no white box.
 * The transparent asset (~/janus_logo_transp.png) is the LIGHT-background artwork
 * (dark navy wordmark, measured artwork luminance ~65/255), so on the dark header
 * its wordmark and fine print vanish; it is only usable on light surfaces. The
 * with-background asset (~/janus_logo.png) is the dark artwork (white wordmark)
 * and its dark navy backing is part of the official source, so it is used here
 * as-is: never recoloured, redrawn, re-proportioned or cropped. */
.brand img { display: block; flex: none; }
.brand-logo { height: 54px; width: auto; }
.brand-logo-footer { height: 64px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--color-text-muted); font-size: 15px; font-weight: 550;
  padding: 9px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--color-text); background: rgba(255, 255, 255, .05); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--color-text); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; }
.lang a, .lang span { color: var(--color-text-muted); padding: 4px 6px; border-radius: 6px; }
.lang a:hover { color: var(--color-text); text-decoration: none; }
.lang .active { color: var(--color-text); border: 1px solid var(--color-border); }

.menu-btn {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--color-border); color: var(--color-text);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 15.5px; font-weight: 650;
  padding: 13px 22px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-btn); color: #fff; }
.btn-primary:hover { background: var(--color-btn-hover); color: #fff; }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--color-blue); color: var(--color-text); }
.light .btn-ghost { border-color: var(--color-border-light); color: var(--color-text-dark); }
/* Root cause of the washed-out "Request a technical evaluation" CTA: inside a
 * .light section the rule ".light a { color: var(--color-blue-strong) }"
 * (0,1,1) out-specifies ".btn-primary" (0,1,0), so the button label rendered
 * blue on a blue fill. This re-asserts the button colour at higher specificity. */
.light .btn-primary, .light .btn-primary:hover { color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: 88px 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 18%, rgba(22, 156, 244, .16), transparent 70%),
    radial-gradient(700px 380px at 12% 88%, rgba(143, 219, 35, .07), transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 58fr 42fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-cyan); margin: 0 0 18px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--color-cyan); }
.hero .lede { font-size: 19px; color: var(--color-text-muted); max-width: 56ch; margin-bottom: 30px; }

/* the four-step chain (identity -> policy -> path -> enforcement) */
.chain { display: grid; gap: 12px; }
.chain-step {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface), rgba(13, 26, 43, .6));
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
.chain-step .step-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--color-text-muted); text-transform: uppercase;
}
.chain-step .step-t { font-weight: 700; letter-spacing: .04em; margin-top: 4px; }
.chain-step .step-q { font-size: 15px; color: var(--color-text-muted); }
.chain-step:nth-child(1) .step-t { color: var(--color-cyan); }
.chain-step:nth-child(2) .step-t { color: var(--color-blue); }
.chain-step:nth-child(3) .step-t { color: var(--color-blue); }
.chain-step:nth-child(4) .step-t { color: var(--color-green); }

.statement {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 750; letter-spacing: -.02em; line-height: 1.2;
}
.statement .accent { color: var(--color-green); }

/* ---------------------------------------------------------------- blocks */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.light .card { background: #fff; border-color: var(--color-border-light); box-shadow: 0 1px 2px rgba(16, 32, 51, .05); }
.card-lg { border-radius: var(--radius-card-lg); padding: 30px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-cyan); margin-bottom: 10px; display: block;
}
.light .card .kicker { color: var(--color-blue-strong); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  border: 1px solid var(--color-border-light); background: #fff; color: var(--color-text-dark);
  border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 600;
}
.dark .chips li, .light-on-dark .chips li { border-color: var(--color-border); background: var(--color-surface-2); color: var(--color-text); }

.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bullets li { position: relative; padding-left: 30px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--color-blue);
}
.light .bullets li::before { background: var(--color-blue-strong); }

.stat-line {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted);
  border-top: 1px solid var(--color-border); padding-top: 18px; margin-top: 34px;
}
.light .stat-line { border-color: var(--color-border-light); }

/* ---------------------------------------------------------------- diagram */
.diagram { width: 100%; height: auto; }
.diagram .box { fill: var(--color-surface-2); stroke: var(--color-border); stroke-width: 1.5; }
.diagram .box-accent { fill: #16273d; stroke: var(--color-blue); }
.diagram .box-plane { fill: rgba(22, 156, 244, .07); stroke: var(--color-blue); stroke-dasharray: 5 5; }
.diagram .glabel { fill: var(--color-text); font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.diagram .glabel-mut { fill: var(--color-text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; }
.diagram .gpath { stroke: var(--color-blue); stroke-width: 2; fill: none; }
.diagram .gpath-allow { stroke: var(--color-green); stroke-width: 2.4; fill: none; }
.diagram .gflow { fill: var(--color-cyan); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; }
.diagram .gdot { fill: var(--color-cyan); }

/* --- diagrams inside a light section -------------------------------------
 * Without these overrides the diagram labels kept the dark-section colours
 * (near-white text, dark boxes) and were nearly invisible on the light
 * background — which is why the "A tunnel is not access" diagram read as
 * unfinished. */
.light .diagram .box { fill: #fff; stroke: var(--color-border-light); }
.light .diagram .glabel { fill: var(--color-text-dark); }
.light .diagram .glabel-mut { fill: var(--color-text-dark-muted); }
.light .diagram .gflow { fill: var(--color-blue-strong); }
.light .diagram .gpath { stroke: var(--color-blue-strong); }

/* --- the authorization question card (light section) --------------------- */
.diagram .box-question { fill: #fff; stroke: var(--color-blue); stroke-width: 2; }
.diagram .qbadge { fill: var(--color-btn); }
.diagram .qmark { fill: #fff; font-family: var(--font-sans); font-size: 21px; font-weight: 800; }
.diagram .glabel-strong { fill: var(--color-text-dark); font-family: var(--font-sans); font-size: 15.5px; font-weight: 700; }
.diagram .gtext-dark { fill: var(--color-text-dark-muted); font-family: var(--font-sans); font-size: 12.5px; }

/* --- architecture diagram (dark section) -------------------------------- */
.diagram .box-control { fill: #13253c; stroke: var(--color-blue); stroke-width: 2; }
.diagram .gflow-lg { fill: var(--color-cyan); font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.diagram .gcontrol { stroke: var(--color-blue); stroke-width: 1.6; fill: none; stroke-dasharray: 2 7; opacity: .85; }
.diagram .box-fabric { fill: rgba(56, 198, 255, .1); stroke: var(--color-cyan); stroke-width: 1.6; }
.diagram .gpath-allow { stroke: var(--color-green-bright); stroke-width: 3; fill: none; }
.diagram .gflow-green { fill: var(--color-green-bright); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; }
.diagram .box-authorised { stroke: var(--color-green-bright); stroke-width: 2; }
/* One diagram per breakpoint: a desktop topology shrunk to phone width is
 * unreadable, so mobile gets a purpose-built vertical topology. */
.diagram-mobile { display: none; }
@media (max-width: 760px) {
  .diagram-desktop { display: none; }
  .diagram-mobile { display: block; }
}

.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--color-text);
}
.flow .node { border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 13px; background: var(--color-surface); }
.flow .arrow { color: var(--color-blue); }
.light .flow { color: var(--color-text-dark); }
.light .flow .node { border-color: var(--color-border-light); background: #fff; }

/* ---------------------------------------------------------------- shots */
.shot {
  border: 1px solid var(--color-border); border-radius: var(--radius-card-lg);
  background: var(--color-bg-deep); padding: 10px; box-shadow: var(--shadow-soft);
}
.shot img { border-radius: 8px; width: 100%; }
.shot figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); padding: 10px 6px 2px; }
/* Product screenshots: these are dense desktop UI captures. Shown at the normal
 * text column width their labels would be unreadable, so they are placed in a
 * full-width strip OUTSIDE the text container and centred there. (A child wider
 * than its container cannot be centred with `margin: auto` — that is why this is
 * a separate strip rather than a negative margin.) */
.shots-strip { display: grid; justify-items: center; gap: 22px; margin-top: 28px; padding-inline: 24px; }
/* 1538px is the native width of the crops — never upscaled beyond that. */
.shot-wide { width: min(1538px, 100%); }
.shot-wide a { display: block; }

.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg-deep); }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- cta / footer */
.final-cta { background: linear-gradient(180deg, var(--color-bg), var(--color-bg-deep)); border-top: 1px solid var(--color-border); }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 16.5px; }
.contact-list a { color: var(--color-cyan); }

.site-footer { background: var(--color-bg-deep); border-top: 1px solid var(--color-border); padding-block: 52px 34px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.site-footer a { color: var(--color-text); }
.site-footer .legal { border-top: 1px solid var(--color-border); margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* ---------------------------------------------------------------- responsive */

/* Narrow desktop / large tablet: the header has to survive the extra "Docs"
 * entry once docsEnabled is turned on (6 nav items + language + CTA). Rather
 * than let it overflow, the header CTA is dropped here — the hero CTA and the
 * final CTA are both still on screen, and "Contact" stays in the nav. */
@media (max-width: 1200px) {
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .header-actions .btn { display: none; }
}
@media (max-width: 1024px) {
  :root { --space-section: 88px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 38px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 8px 8px; font-size: 14px; }
}

@media (max-width: 768px) {
  :root { --space-section: 72px; }
  body { font-size: 17px; }
  .nav, .header-actions { display: none; }
  .menu-btn { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-header.is-open .nav {
    display: grid; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: 14px 24px 22px; gap: 2px;
  }
  .site-header.is-open .nav a { padding: 12px 8px; font-size: 17px; }
  .site-header.is-open .header-actions {
    display: flex; position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 232px);
    background: var(--color-bg); padding: 0 24px 22px; border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 430px) {
  :root { --space-section: 56px; }
  .container { width: calc(100% - 40px); }
  .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .menu-btn, .final-cta .btn { display: none; }
  body { background: #fff; color: #000; }
}
