:root {
    --ink: #f2f5f6;
    --paper: #0b0f12;
    --surface: #141a1f;
    --signal: #19d3d1;
    --signal-dark: #35f0ed;
    --muted: #a8b2b8;
    --line: rgba(53, 240, 237, 0.16);
    --max: 1160px;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.shell--narrow { max-width: 780px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 15, 18, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: var(--ink);
    text-decoration: none;
}
.brand__mark {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 10px rgba(25, 211, 209, 0.12));
}
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-weight: 850; letter-spacing: -.02em; font-size: 1.08rem; }
.brand__tagline { margin-top: .2rem; color: var(--muted); font-size: .77rem; }
.site-nav__list { list-style: none; display: flex; gap: 1.4rem; padding: 0; margin: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 700; transition: color .15s ease; }
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--signal); }

.hero { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    top: 40px;
    border-radius: 50%;
    background: rgba(25, 211, 209, 0.06);
    filter: blur(80px);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}
.hero__content { min-width: 0; }
.eyebrow {
    margin: 0 0 .7rem;
    color: var(--signal);
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}
.hero h1,
.page-hero h1,
.section h2 { margin: 0; line-height: .98; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7.5rem); max-width: 8ch; }
.hero__lede { max-width: 620px; margin: 1.6rem 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__logo-wrap { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero__logo {
    width: min(100%, 540px);
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(25, 211, 209, 0.08));
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.15rem;
    border-radius: 999px;
    background: var(--signal);
    color: var(--paper);
    border: 2px solid var(--signal);
    text-decoration: none;
    font-weight: 800;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); background: var(--signal-dark); border-color: var(--signal-dark); box-shadow: 0 8px 24px rgba(25, 211, 209, 0.15); }
.button--ghost { background: transparent; color: var(--signal); }
.button--ghost:hover { background: rgba(25, 211, 209, 0.08); color: var(--signal-dark); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section h2,
.page-hero h1 { font-size: clamp(2.5rem, 5.8vw, 5rem); }
.section-heading > p:last-child,
.prose { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--signal), rgba(25, 211, 209, 0));
    opacity: .7;
}
.card:hover { transform: translateY(-3px); border-color: rgba(53, 240, 237, 0.28); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18); }
.card h3 { margin: 0 0 .6rem; font-size: 1.25rem; color: var(--ink); }
.card p { margin: 0; color: var(--muted); }
.section--accent {
    background: linear-gradient(180deg, rgba(25, 211, 209, 0.035), rgba(25, 211, 209, 0.01)), var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.section--accent .eyebrow { color: var(--signal); }
.section--accent .prose { color: var(--muted); font-size: 1.08rem; }
.text-link { font-weight: 850; color: var(--signal); text-decoration: none; }
.text-link:hover { color: var(--signal-dark); }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 2rem; }
.page-content { padding-top: 1rem; }
.prose { font-size: 1.08rem; }
.prose h2,
.prose h3,
.prose h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.025em; }
.prose h2 { margin-top: 2.6rem; font-size: 2rem; }
.prose h3 { margin-top: 2rem; font-size: 1.4rem; }
.prose a { color: var(--signal); font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--signal-dark); }
.prose li + li { margin-top: .45rem; }

.site-footer { background: #070a0c; color: var(--ink); padding: 2.5rem 0; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.site-footer p { margin: .25rem 0 0; color: var(--muted); }
.site-footer__meta { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }

/* Contact page */
.contact-hero { padding-bottom: 1.5rem; }
.contact-intro { max-width: 650px; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.contact-section { padding-top: 1rem; }
.contact-form { display: grid; gap: 1.4rem; max-width: 720px; }
.contact-field { display: grid; gap: .5rem; }
.contact-field label { color: var(--ink); font-weight: 800; font-size: .95rem; }
.contact-optional { margin-left: .35rem; color: var(--muted); font-size: .8rem; font-weight: 500; }
.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    padding: .9rem 1rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.contact-field textarea { resize: vertical; min-height: 180px; }
.contact-field input:hover,
.contact-field textarea:hover { border-color: rgba(53, 240, 237, 0.30); }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(25, 211, 209, 0.10); }
.contact-submit { margin-top: .4rem; }
.contact-submit .button { cursor: pointer; font: inherit; }
.contact-notice { margin-bottom: 2rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-notice strong { color: var(--ink); }
.contact-notice p { margin: .35rem 0 0; color: var(--muted); }
.contact-notice ul { margin: .5rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.contact-notice--success { border-color: rgba(25, 211, 209, 0.4); box-shadow: 0 0 25px rgba(25, 211, 209, 0.05); }
.contact-notice--error { border-color: rgba(255, 120, 120, 0.35); }
.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 3rem; }
    .hero__logo { width: min(100%, 420px); }
}
@media (max-width: 800px) {
    .site-header__inner { min-height: auto; padding: .85rem 0; align-items: flex-start; }
    .site-nav__list { gap: .75rem 1rem; flex-wrap: wrap; justify-content: flex-end; }
    .brand__tagline { display: none; }
    .hero__grid,
    .split { grid-template-columns: 1fr; }
    .hero__logo-wrap { justify-content: flex-start; }
    .hero__logo { width: min(100%, 380px); }
    .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .site-header__inner { display: grid; }
    .brand__mark { width: 48px; height: 48px; }
    .site-nav__list { justify-content: flex-start; }
    .hero { padding-top: 3rem; }
    .hero h1 { font-size: clamp(3.2rem, 17vw, 5.3rem); }
    .hero__logo { width: min(100%, 320px); }
    .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
