/* =====================================================================
   Parmenides Tech
   Palette taken from the logo: deep navy, P blue, dot cyan, gold fold.
   One typeface (Archivo); headlines use its expanded width to echo
   the wide wordmark in the logo.
   ===================================================================== */

:root {
    --navy: #14305C;
    --blue: #1E5AA0;
    --cyan: #2FA8CF;
    --gold: #E2A646;
    --gold-deep: #B97D1E;
    --paper: #F3F6FA;
    --white: #FFFFFF;
    --ink: #0F1D33;
    --ink-soft: #46556B;
    --line: #D3DCE8;
    --red: #C62828;

    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius-s: 4px;
    --radius-m: 10px;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: 1.375rem;
    --step-3: 1.75rem;
    --step-4: clamp(2rem, 3.6vw, 2.75rem);
    --step-5: clamp(2.4rem, 5.4vw, 4.1rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: "Archivo", system-ui, sans-serif;
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    line-height: 1.12;
    color: var(--navy);
    font-weight: 700;
}
h1, h2 { font-stretch: 125%; letter-spacing: -0.015em; }
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 112%; }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.8em 1.4em;
    border-radius: var(--radius-s);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--blue); color: var(--white); }
.btn-quiet { color: var(--navy); border-color: var(--line); background: var(--white); }
.btn-quiet:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.2) blur(6px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 54px; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta {
    background: var(--gold); color: var(--ink); padding: 0.6em 1.1em; border-radius: var(--radius-s); font-weight: 650;
}
.site-nav .nav-cta:hover { background: var(--gold-deep); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: ""; transition: transform .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
    .site-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
    .brand img { height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-products { display: grid; gap: 16px; }
.product-plate {
    display: grid; gap: 6px;
    padding: 24px 26px 22px;
    text-decoration: none; color: var(--ink);
    background: var(--paper);
    border-left: 6px solid var(--blue);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    transition: transform .2s ease, background-color .2s ease;
}
.product-plate:hover { background: #E9EFF7; transform: translateX(4px); color: var(--ink); }
.plate-kairos { border-left-color: var(--gold); }
.plate-name { font-size: var(--step-3); font-weight: 750; font-stretch: 118%; color: var(--navy); line-height: 1.1; }
.plate-line { color: var(--ink-soft); max-width: 44ch; }
.plate-meta { font-size: var(--step--1); color: var(--blue); font-weight: 600; }

/* Dot trail echoing the logo: streams in from the top right */
.dot-trail {
    position: absolute; top: -40px; right: -60px; width: 520px; height: 300px;
    background-image: radial-gradient(circle, var(--cyan) 0 3.5px, transparent 4.5px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.5) 35%, transparent 70%);
            mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.5) 35%, transparent 70%);
    transform: rotate(-14deg);
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .dot-trail { width: 300px; opacity: .35; }
}

/* ---------- Product sections ---------- */
.product { padding: clamp(64px, 9vw, 120px) 0; }

.product-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.product-tagline { font-size: var(--step-2); line-height: 1.35; color: var(--blue); font-weight: 600; max-width: 34ch; }

.shot {
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(20, 48, 92, .06), 0 18px 40px -18px rgba(20, 48, 92, .35);
}

.sub-title { font-size: var(--step-3); margin-bottom: 24px; }

/* Numbered flow — used only for real sequences */
.flow {
    list-style: none; margin: 0 0 clamp(56px, 7vw, 88px); padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    counter-reset: step;
    border-top: 2px solid var(--navy);
}
.flow li {
    counter-increment: step;
    padding: 20px 24px 24px 0;
    display: grid; gap: 4px; align-content: start;
    border-bottom: 1px solid var(--line);
}
.flow li::before {
    content: counter(step);
    font-size: var(--step-4); font-weight: 800; font-stretch: 125%;
    color: var(--gold); line-height: 1;
    margin-bottom: 6px;
}
.flow strong { color: var(--navy); font-size: var(--step-1); }
.flow span { color: var(--ink-soft); max-width: 34ch; }
.flow-four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .product-head { grid-template-columns: 1fr; }
    .flow, .flow-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .flow, .flow-four { grid-template-columns: 1fr; }
}

/* ---------- Clock demo (the one interactive moment) ---------- */
.clock-demo {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
    background: var(--navy); color: #DCE6F3;
    border-radius: var(--radius-m);
    padding: clamp(28px, 5vw, 56px);
    margin-bottom: clamp(56px, 7vw, 88px);
}
.clock-demo h3 { color: var(--white); font-size: var(--step-3); font-stretch: 120%; }
.clock-demo p { color: #C3D1E4; }

.clock-demo-panel {
    background: #0E2447;
    border: 1px solid #2A4775;
    border-radius: var(--radius-m);
    padding: 24px;
}
.clock-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.clock-label { font-size: var(--step--1); color: #A9BBD3; }
.clock-value {
    font-variant-numeric: tabular-nums;
    font-size: var(--step-4); font-weight: 700; font-stretch: 85%;
    color: #A9BBD3;
}
.clock-value.pc { transition: color .2s ease; }
.clock-demo.shifted .clock-value.pc { color: #F28B82; }
.clock-row.recorded { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #2A4775; }
.clock-row.recorded .clock-value { color: var(--gold); font-size: var(--step-5); }

#clock-shift { width: 100%; margin: 14px 0 4px; accent-color: var(--gold); height: 28px; }
.clock-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: #7F95B3; }
.clock-note { font-size: var(--step--1); margin: 14px 0 0; min-height: 3em; }

@media (max-width: 860px) { .clock-demo { grid-template-columns: 1fr; } }

/* ---------- Safeguards ---------- */
.safeguards { margin-bottom: clamp(56px, 7vw, 88px); }
.safeguards dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 5vw, 64px); }
.safeguards dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.safeguards dt { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.safeguards dd { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.safeguards em { color: var(--red); font-style: normal; font-weight: 600; }
@media (max-width: 760px) { .safeguards dl { grid-template-columns: 1fr; } }

/* ---------- Why it matters ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; max-width: 58ch; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--cyan);
}

.pdf-stack { position: relative; margin: 0; padding-bottom: 40px; }
.pdf-stack .pdf-a { width: 76%; }
.pdf-stack .pdf-b { position: absolute; width: 42%; right: 0; bottom: 64px; }
.pdf-stack figcaption { margin-top: 18px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 860px) {
    .why { grid-template-columns: 1fr; }
    .pdf-stack .pdf-b { width: 46%; bottom: 52px; }
}

.gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; margin-bottom: 40px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.requirements {
    font-size: var(--step--1); color: var(--ink-soft);
    border-left: 3px solid var(--line); padding-left: 16px; max-width: 80ch;
}
.requirements strong { color: var(--navy); }

/* ---------- Kairos Imaging Suite Professional ---------- */
.product-kairos { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kairos-intro { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.kairos-intro .product-tagline { color: var(--gold-deep); }
.product-kairos .flow li::before { color: var(--blue); }

.disk-diagram { display: grid; gap: 28px; margin-bottom: clamp(48px, 6vw, 72px); }
.disk h4 { font-size: var(--step-0); color: var(--ink-soft); font-weight: 600; margin-bottom: 10px; }
.bar { display: flex; gap: 4px; min-height: 92px; }
.seg {
    display: flex; flex-direction: column; justify-content: center;
    padding: 12px 14px; border-radius: var(--radius-s);
    font-weight: 700; color: var(--white); min-width: 0;
}
.seg small { font-weight: 400; font-size: 0.78rem; line-height: 1.35; opacity: .9; margin-top: 2px; }
.seg-boot { background: var(--gold); color: var(--ink); }
.seg-images { background: var(--navy); }
.seg-sys { background: var(--cyan); color: var(--ink); }
.seg-msr { background: #9DB4D1; color: var(--ink); }
.seg-win { background: var(--blue); }
.seg-rec { background: var(--navy); }
@media (max-width: 640px) {
    .bar { flex-direction: column; }
    .seg { flex: none !important; }
}

.kairos-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px clamp(24px, 5vw, 64px); margin-bottom: 40px; }
.kairos-features h4 { color: var(--navy); }
.kairos-features p { color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) { .kairos-features { grid-template-columns: 1fr; } }

.suite-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: clamp(48px, 6vw, 72px); }
.suite-module { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-s); padding: 24px 22px; background: var(--white); }
.suite-module h3 { color: var(--navy); font-size: var(--step-1); margin: 6px 0 10px; }
.suite-module p { color: var(--ink-soft); margin: 0; }
.module-num { font-weight: 800; color: var(--gold-deep); letter-spacing: .04em; }
@media (max-width: 1000px) { .suite-modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .suite-modules { grid-template-columns: 1fr; } }

/* ---------- Licensing ---------- */
.licensing { padding: clamp(64px, 9vw, 112px) 0; }
.section-lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; margin-bottom: 36px; }
.licence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.licence {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: clamp(24px, 4vw, 36px);
    display: flex; flex-direction: column;
}
.licence:first-child { border-top: 6px solid var(--blue); }
.licence:last-child { border-top: 6px solid var(--gold); }
.licence .price { font-size: var(--step-2); font-weight: 700; font-stretch: 112%; color: var(--ink); margin-bottom: 20px; }
.licence .checks { margin-bottom: 28px; flex: 1; }
.licence .btn { align-self: flex-start; }
@media (max-width: 760px) { .licence-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 112px) 0; }
.faq h2 { margin-bottom: 28px; }
.faq-list { max-width: 860px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 20px 40px 20px 0; position: relative;
    font-weight: 650; font-size: var(--step-1); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 6px; top: 50%;
    width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
    transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); margin: 0 0 22px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- About ---------- */
.about { background: var(--navy); color: #DCE6F3; padding: clamp(64px, 9vw, 112px) 0; }
.about h2 { color: var(--white); }
.about p { color: #C3D1E4; font-size: var(--step-1); }
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.about-mark { width: 100%; max-width: 220px; background: var(--white); border-radius: var(--radius-m); padding: 18px; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } .about-mark { max-width: 120px; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 9vw, 112px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-details { margin: 28px 0 0; display: grid; gap: 16px; font-style: normal; }
.contact-details > div { display: grid; gap: 2px; font-size: var(--step-1); font-weight: 600; }
.contact-details .cd-label { font-size: var(--step--1); font-weight: 400; color: var(--ink-soft); }
.contact-details a { text-decoration: none; }

.contact-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: clamp(22px, 4vw, 36px);
}
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
    font: inherit; color: var(--ink);
    padding: 0.7em 0.8em;
    border: 1px solid #B9C6D8; border-radius: var(--radius-s);
    background: var(--white); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--red); }
.contact-form .btn { justify-self: start; }
.form-error { grid-column: 1 / -1; margin: 0; color: var(--red); font-weight: 600; min-height: 0; }
.form-error:empty { display: none; }
.form-hint { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-logo { height: 46px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); }
.site-footer nav a:hover { color: var(--blue); }
.copyright { width: 100%; margin: 0; font-size: 0.8rem; color: var(--ink-soft); max-width: none; }

/* ---------- Screenshot galleries + lightbox ---------- */
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gallery-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .gallery-3 { grid-template-columns: 1fr; } }
.gallery img, .product-head img, .pdf-stack img { width: 100%; height: auto; }
.section-note { color: var(--ink-soft); max-width: 70ch; margin: -12px 0 24px; }
img.shot { cursor: zoom-in; }

.lightbox {
    border: 0; padding: 0; background: transparent;
    max-width: min(96vw, 1700px); max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 29, 51, .82); }
.lightbox img {
    display: block; max-width: min(96vw, 1700px); max-height: 86vh; width: auto; height: auto;
    border-radius: var(--radius-m); background: var(--white);
}
.lightbox-caption { color: #DCE6F3; text-align: center; margin: 10px 0 0; font-size: var(--step--1); }
.lightbox-close {
    position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: var(--gold); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
