/* Quantum Lights. Dark ground with a faint aurora at the top: the northern lights
   are one of the inspirations behind the name. Brand colours are taken from the
   symbol. Blue and green are too light for text on white, but read well on black. */

:root {
    --bg: #05060A;
    --band: #0B0D14;
    --fg: #F2F3F5;
    --muted: #A3A6B4;
    --line: #232634;
    --blue: #51ACE2;
    --green: #97C889;
    --magenta: #C64091;
    --violet: #814997;
    --display: Montserrat, system-ui, sans-serif;
    --body: Inter, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--fg);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    background:
        radial-gradient(40% 55% at 78% 30%, rgba(151, 200, 137, 0.20), transparent 70%),
        radial-gradient(30% 45% at 92% 12%, rgba(198, 64, 145, 0.18), transparent 70%),
        radial-gradient(35% 50% at 62% 75%, rgba(81, 172, 226, 0.14), transparent 70%),
        radial-gradient(25% 35% at 98% 70%, rgba(129, 73, 151, 0.16), transparent 70%);
    background-color: var(--bg);
    background-repeat: no-repeat;
    background-size: 100% 900px;
}

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

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.link { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 600px) {
    .container { padding-left: 16px; padding-right: 16px; }
}

/* Header */

.site-header {
    padding-top: 28px;
    padding-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.22em;
}

.brand img { height: 40px; width: auto; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    font-size: 15px;
    font-weight: 500;
}

.site-nav a { padding: 10px 0; }

/* Hero */

.hero {
    padding-top: 72px;
    padding-bottom: 112px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}

.hero-text { flex: 999 1 520px; min-width: 0; }
.hero-symbol { flex: 1 1 280px; display: flex; justify-content: center; }
.hero-symbol img { width: 100%; max-width: 340px; }

.eyebrow {
    margin: 0 0 24px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--muted);
}

h2.eyebrow { margin-bottom: 56px; }

h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.page-heading { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }

.lead { margin: 32px 0 0; max-width: 34rem; font-size: 19px; color: var(--muted); }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.button-primary { background: var(--fg); color: var(--bg); border: 0; }
.button-ghost { border: 1px solid var(--line); }

/* Brand stripe */

.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--blue); }
.stripe span:nth-child(2) { background: var(--green); }
.stripe span:nth-child(3) { background: var(--magenta); }
.stripe span:nth-child(4) { background: var(--violet); }

/* Sections */

.section { padding-top: 112px; padding-bottom: 112px; }
.band { background: var(--band); }

@media (max-width: 600px) {
    .hero { padding-top: 32px; padding-bottom: 72px; }
    .section { padding-top: 72px; padding-bottom: 72px; }
}

.expertise {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 48px;
}

.expertise li {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 20px;
    align-items: baseline;
    font-size: 19px;
}

.number {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

.cards { display: flex; flex-wrap: wrap; gap: 48px; }
.person { flex: 1 1 280px; min-width: 0; }
.person h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.person p { margin: 12px 0 0; color: var(--muted); }

.portrait {
    display: block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 28px;
    filter: grayscale(0.15);
}

.portrait-empty { background: var(--line); }

.mark { display: block; width: 40px; height: 4px; margin-bottom: 24px; }
.mark-blue { background: var(--blue); }
.mark-green { background: var(--green); }
.mark-magenta { background: var(--magenta); }

.partners {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.partners li {
    flex: 1 1 220px;
    min-height: 120px;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
}

.partners img { max-width: 100%; max-height: 56px; width: auto; height: auto; }

.news { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }

.news li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
    align-items: baseline;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.news time { flex: 0 0 160px; font-family: var(--display); font-size: 14px; font-weight: 600; }
.news li > div { flex: 999 1 360px; min-width: 0; }
.news h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.news p { margin: 4px 0 0; color: var(--muted); }

.tag {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.tag-event { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }
.tag-meetup { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }
.tag-product { background: var(--blue); border-color: var(--blue); color: #05060A; }

/* Contact */

.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 320px; min-width: 0; }
.contact-form-wrap { flex: 999 1 460px; min-width: 0; }
.contact-intro h2.eyebrow { margin-bottom: 24px; }

.contact-heading {
    margin: 0 0 24px;
    font-family: var(--display);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }

.field input, .field textarea {
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.field input { min-height: 48px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }

.validation-message { color: #F08DC4; font-size: 14px; }
.field input.invalid, .field textarea.invalid { border-color: #F08DC4; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hint { font-size: 13px; color: var(--muted); }

.notice { padding: 40px; border-radius: 16px; background: var(--band); }
.notice p { margin: 0; color: var(--muted); }
.notice .notice-title { margin-bottom: 8px; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--fg); }

.form-error { padding: 16px 20px; border-radius: 10px; border: 1px solid #F08DC4; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }

.footer-row {
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}


/* QRNG Product & Architecture */
.hero-product { flex: 1 1 420px; display: flex; justify-content: center; }
.hero-product img { width: 100%; max-width: 560px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65); }
.product-showcase { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.product-showcase-text { flex: 999 1 440px; min-width: 0; }
.product-showcase-text h3 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.2; }
.product-showcase-img { flex: 1 1 380px; display: flex; justify-content: center; }
.product-showcase-img img { width: 100%; max-width: 540px; border-radius: 16px; border: 1px solid var(--line); }
.arch-diagram { margin: 24px 0; }
.arch-diagram img { width: 100%; height: auto; border-radius: 18px; }

.concept { margin: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
.concept figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
