/* ==========================================================================
   Draf IT Services — design system
   Deep navy + electric cyan. Dark by default, with a full light theme.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */

:root {
    color-scheme: dark;

    --bg: #04070f;
    --bg-2: #070d1c;
    --bg-3: #0b1426;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --surface-solid: #0c1526;
    /* Form fields must be opaque: the native <select> popup is painted by the OS using the
       element's own background-color, and a translucent one composites against white. */
    --field-bg: #0d1729;
    --field-bg-active: #16304d;
    --border: rgba(150, 180, 230, .14);
    --border-strong: rgba(150, 180, 230, .28);

    --fg: #e9f0fb;
    --fg-muted: #94a7c6;
    --fg-dim: #6c7f9e;

    --brand: #22d3ee;
    --brand-2: #4f7dff;
    --brand-3: #7c5cff;
    --brand-ink: #04121a;
    --brand-soft: rgba(34, 211, 238, .12);
    --brand-line: rgba(34, 211, 238, .38);

    --grad: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
    --grad-text: linear-gradient(100deg, #67e8f9 0%, #7aa2ff 50%, #a78bfa 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, .85);
    --glow: 0 0 0 1px var(--brand-line), 0 20px 60px -24px rgba(34, 211, 238, .5);

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shell: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(4.5rem, 9vw, 8.5rem);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", var(--font);

    --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="light"] {
    color-scheme: light;

    --bg: #ffffff;
    --bg-2: #f6f8fc;
    --bg-3: #eef2f9;
    --surface: #ffffff;
    --surface-2: #f4f7fc;
    --surface-solid: #ffffff;
    --field-bg: #ffffff;
    --field-bg-active: #e6f2f7;
    --border: #e2e8f3;
    --border-strong: #cbd6e8;

    --fg: #081326;
    --fg-muted: #51617d;
    --fg-dim: #78879f;

    --brand: #0891b2;
    --brand-2: #2b53e8;
    --brand-3: #6d3ff0;
    --brand-ink: #ffffff;
    --brand-soft: rgba(8, 145, 178, .09);
    --brand-line: rgba(8, 145, 178, .32);

    --grad-text: linear-gradient(100deg, #0e7490 0%, #2b53e8 55%, #6d3ff0 100%);

    --shadow-sm: 0 1px 2px rgba(16, 32, 64, .06);
    --shadow: 0 16px 40px -20px rgba(16, 32, 64, .28);
    --shadow-lg: 0 40px 80px -36px rgba(16, 32, 64, .32);
    --glow: 0 0 0 1px var(--brand-line), 0 20px 50px -26px rgba(43, 83, 232, .38);
}

/* --- Base ---------------------------------------------------------------- */

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

/* No overflow-x on html or body: `hidden` there turns the root into a scroll container
   (breaking position:sticky and the page scroll position) and `clip` stops Chrome
   scrolling the viewport at all. Wide decoration is clipped by its own section instead —
   see .hero and .marquee, which both set overflow: hidden. */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

img, svg { max-width: 100%; }

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

::selection { background: var(--brand); color: var(--brand-ink); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--brand);
    color: var(--brand-ink);
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- Layout -------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-2); }

.section--alt::before,
.section--alt::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: var(--border);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* --- Section headings ---------------------------------------------------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 1.1rem;
}

.kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

.lead {
    font-size: clamp(1.03rem, 1.5vw, 1.2rem);
    color: var(--fg-muted);
    line-height: 1.7;
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    --btn-bg: var(--grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background-color .25s var(--ease), border-color .25s var(--ease), color .2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--grad);
    color: #04121a;
    box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .6);
}
:root[data-theme="light"] .btn--primary { color: #fff; }
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(34, 211, 238, .75); }

.btn--ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--fg);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--brand-line); background: var(--surface-2); }

.btn--quiet {
    background: transparent;
    color: var(--fg-muted);
    padding-inline: .4rem;
}
.btn--quiet:hover { color: var(--fg); }

.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .93rem;
    color: var(--brand);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Badges & pills ------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.badge--brand {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .85rem;
    font-weight: 500;
    color: var(--fg-muted);
}
.pill svg { color: var(--brand); flex: none; }

/* --- Cards --------------------------------------------------------------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
    overflow: hidden;
}

:root[data-theme="light"] .card { box-shadow: var(--shadow-sm); }

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}

.card--interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--interactive:hover::after { opacity: .55; }

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--fg-muted); font-size: .95rem; }

.card-icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    flex: none;
}

.card-foot { margin-top: auto; padding-top: 1.25rem; }

/* --- Feature list -------------------------------------------------------- */

.checklist { display: grid; gap: .7rem; }

.checklist li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: .7rem;
    align-items: start;
    font-size: .94rem;
    color: var(--fg-muted);
}

.checklist svg { color: var(--brand); margin-top: .35rem; }

/* --- Header -------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}

.site-header[data-scrolled="true"] {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; }

.brand__mark { width: 34px; height: 34px; flex: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -.03em;
}
.brand__name span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.brand__sub {
    font-size: .58rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-top: .25rem;
}

.nav { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }

.nav__link {
    position: relative;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--fg-muted);
    transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--fg); background: var(--surface-2); }
.nav__link.active { color: var(--fg); }
.nav__link.active::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -2px;
    transform: translateX(-50%);
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.header-tools { display: flex; align-items: center; gap: .5rem; flex: none; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg-muted);
    cursor: pointer;
    transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--border-strong); }

.nav-toggle { display: none; }

/* Dropdowns (products / solutions / language) */

.menu { position: relative; }

.menu__button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .85rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
    color: var(--fg-muted);
    cursor: pointer;
    transition: color .2s, background-color .2s;
}
.menu__button:hover, .menu__button[aria-expanded="true"] { color: var(--fg); background: var(--surface-2); }
.menu__button svg { transition: transform .25s var(--ease); }
.menu__button[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu__panel {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 300px;
    padding: .5rem;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--surface-solid);
    box-shadow: var(--shadow-lg);
    z-index: 70;
    animation: pop .2s var(--ease);
}
.menu__panel--right { left: auto; right: 0; min-width: 190px; }

@keyframes pop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.menu__item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    width: 100%;
    padding: .7rem .8rem;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    font: inherit;
    text-align: start;
    color: var(--fg);
    cursor: pointer;
    transition: background-color .18s;
}
.menu__item:hover { background: var(--surface-2); }

.menu__item strong { display: block; font-size: .93rem; font-weight: 600; }
.menu__item small { display: block; font-size: .8rem; color: var(--fg-muted); line-height: 1.45; }
.menu__item .card-icon { width: 34px; height: 34px; margin: 0; border-radius: 10px; }
.menu__item[aria-current="true"] { background: var(--brand-soft); }

.menu__flag { font-size: 1.05rem; line-height: 1; }

/* Mobile drawer */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    padding: 1.25rem var(--gutter) 2rem;
    overflow-y: auto;
    animation: fade .2s var(--ease);
}
.drawer[data-open="true"] { display: block; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 50px; margin-bottom: 1.5rem; }
.drawer__group { margin-bottom: 1.75rem; }
.drawer__label {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: .6rem;
}
.drawer__link {
    display: block;
    padding: .7rem 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
    border-bottom: 1px solid var(--border);
}
.drawer__link small { display: block; font-family: var(--font); font-size: .82rem; font-weight: 400; color: var(--fg-muted); letter-spacing: 0; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: -20% -10% auto;
    height: 130%;
    z-index: -1;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    animation: drift 22s ease-in-out infinite alternate;
}
.hero__glow--1 { width: 46vw; height: 46vw; left: 4%; top: 6%; background: radial-gradient(circle, #22d3ee, transparent 68%); }
.hero__glow--2 { width: 40vw; height: 40vw; right: 2%; top: 0; background: radial-gradient(circle, #4f7dff, transparent 68%); animation-delay: -7s; }
.hero__glow--3 { width: 34vw; height: 34vw; left: 40%; top: 40%; background: radial-gradient(circle, #7c5cff, transparent 70%); animation-delay: -14s; }

:root[data-theme="light"] .hero__glow { opacity: .22; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(4%, -6%, 0) scale(1.12); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    opacity: .55;
    pointer-events: none;
}

.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .9rem .4rem .5rem;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: .82rem;
    color: var(--fg-muted);
    backdrop-filter: blur(10px);
}

.hero__cta { margin-top: 2rem; }

.hero__pills { margin-top: 2.5rem; }

/* Floating product stack in the hero */

.stack-viz { position: relative; display: grid; gap: .85rem; perspective: 1200px; }

.stack-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    animation: float 7s ease-in-out infinite;
}
.stack-card:nth-child(2) { animation-delay: -2.3s; margin-inline-start: clamp(0px, 4vw, 42px); }
.stack-card:nth-child(3) { animation-delay: -4.6s; margin-inline-start: clamp(0px, 8vw, 84px); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.stack-card__body { min-width: 0; }
.stack-card strong { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: -.02em; }
.stack-card small { color: var(--fg-muted); font-size: .82rem; }

/* --- Marquee ------------------------------------------------------------- */

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    border-block: 1px solid var(--border);
    padding-block: 1.1rem;
    background: var(--bg-2);
}

.marquee__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 38s linear infinite;
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--fg-dim);
    white-space: nowrap;
}
.marquee__item svg { color: var(--brand); }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Product cards ------------------------------------------------------- */

.product-card { padding: 1.9rem; }

.product-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }

.product-card h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.product-card__tag { color: var(--brand); font-size: .9rem; font-weight: 500; margin-bottom: .9rem; }

/* --- Comparison table ---------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }

thead th {
    padding: 1.1rem 1.25rem;
    text-align: start;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: var(--fg);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

tbody td, tbody th {
    padding: .95rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--fg-muted);
    text-align: start;
    font-weight: 400;
    vertical-align: top;
}
tbody th { color: var(--fg); font-weight: 500; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: var(--surface-2); }

.tick { color: var(--brand); }
.cross { color: var(--fg-dim); }

/* --- Plans --------------------------------------------------------------- */

.plan { padding: 2rem; }
.plan--featured { border-color: var(--brand-line); box-shadow: var(--glow); }
.plan__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.plan__for { color: var(--fg-muted); font-size: .92rem; margin: .25rem 0 1.5rem; }

/* --- Steps / timeline ---------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 1.25rem; }

.step {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4.25rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    counter-increment: step;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 1.5rem;
    top: 1.45rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--fg-muted); font-size: .94rem; }

/* --- CTA band ------------------------------------------------------------ */

.band {
    position: relative;
    padding: clamp(2.75rem, 6vw, 4.5rem);
    border-radius: var(--r-xl);
    border: 1px solid var(--brand-line);
    background:
        radial-gradient(120% 160% at 12% 0%, rgba(34, 211, 238, .22), transparent 55%),
        radial-gradient(120% 160% at 90% 100%, rgba(124, 92, 255, .24), transparent 55%),
        var(--bg-3);
    overflow: hidden;
    text-align: center;
}

.band h2 { max-width: 20ch; margin-inline: auto; }
.band .lead { max-width: 52ch; margin-inline: auto; }
.band .btn-row { justify-content: center; margin-top: 2rem; }

/* --- Contact ------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.field { display: block; margin-bottom: 1.1rem; }

.field__label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--fg-muted);
    margin-bottom: .45rem;
}

.input, .textarea, .select {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--field-bg);
    color: var(--fg);
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-dim); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.textarea { min-height: 150px; resize: vertical; }
/* The popup list is drawn by the browser, so it needs its own explicit colours. */
.select option { background-color: var(--field-bg); color: var(--fg); }
.select option:checked { background-color: var(--field-bg-active); }

.select { appearance: none; cursor: pointer; padding-inline-end: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - .8rem) 1.25rem;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat; }

.field-row { display: grid; gap: 0 1.1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field-error { display: block; margin-top: .4rem; font-size: .82rem; color: #fb7185; }
.honeypot, .sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    gap: .8rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r);
    border: 1px solid var(--brand-line);
    background: var(--brand-soft);
    color: var(--fg);
    font-size: .95rem;
}
.alert svg { color: var(--brand); flex: none; margin-top: .2rem; }
.alert--error { border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .1); }
.alert--error svg { color: #fb7185; }

.info-block { display: flex; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--border); }
.info-block:last-child { border-bottom: 0; }
.info-block strong { display: block; font-size: .88rem; margin-bottom: .2rem; }
.info-block p, .info-block a { color: var(--fg-muted); font-size: .93rem; }
.info-block a:hover { color: var(--brand); }

/* --- Legal documents ----------------------------------------------------- */

.legal { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .legal { grid-template-columns: 250px 1fr; } }

.legal-toc { position: sticky; top: 100px; }
@media (max-width: 999px) { .legal-toc { position: static; } }

.legal-toc h2 {
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 1rem;
}

.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }

.legal-toc a {
    display: block;
    padding: .32rem 0 .32rem .85rem;
    border-inline-start: 2px solid var(--border);
    font-size: .86rem;
    color: var(--fg-muted);
    transition: color .2s, border-color .2s;
}
.legal-toc a:hover { color: var(--brand); border-inline-start-color: var(--brand); }

.legal-body { max-width: 72ch; }

.legal-section { scroll-margin-top: 100px; padding-block: 1.5rem; }
.legal-section + .legal-section { border-top: 1px solid var(--border); }

.legal-section h2 {
    display: flex;
    gap: .75rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    margin-bottom: .9rem;
}

.legal-section h2 span {
    flex: none;
    font-variant-numeric: tabular-nums;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-section p { color: var(--fg-muted); font-size: .96rem; line-height: 1.75; }
.legal-section p + p { margin-top: .9rem; }

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: .85rem;
    color: var(--fg-dim);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }

.footer-col h4 {
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 1rem;
}

.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--fg-muted); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--brand); }

.footer-brand p { color: var(--fg-muted); font-size: .93rem; max-width: 40ch; margin-top: 1.1rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--fg-dim);
}

.social-row { display: flex; gap: .5rem; margin-top: 1.5rem; }

/* --- Chat widget --------------------------------------------------------- */

.chat-launcher {
    position: fixed;
    inset-block-end: clamp(1rem, 3vw, 1.75rem);
    inset-inline-end: clamp(1rem, 3vw, 1.75rem);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #04121a;
    font: inherit;
    font-weight: 600;
    font-size: .93rem;
    cursor: pointer;
    box-shadow: 0 18px 45px -14px rgba(34, 211, 238, .65);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
:root[data-theme="light"] .chat-launcher { color: #fff; }
.chat-launcher:hover { transform: translateY(-3px) scale(1.02); }
.chat-launcher__ping {
    position: absolute;
    inset-block-start: -2px;
    inset-inline-end: -2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid var(--bg);
}

.chat-panel {
    position: fixed;
    inset-block-end: clamp(1rem, 3vw, 1.75rem);
    inset-inline-end: clamp(1rem, 3vw, 1.75rem);
    z-index: 95;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 2rem));
    height: min(620px, calc(100dvh - 2rem));
    border-radius: var(--r-lg);
    border: 1px solid var(--border-strong);
    background: var(--surface-solid);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: chatIn .3s var(--ease);
}

@keyframes chatIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.chat-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(124, 92, 255, .12));
}
.chat-head__avatar {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--grad);
    color: #04121a;
    flex: none;
}
:root[data-theme="light"] .chat-head__avatar { color: #fff; }
.chat-head strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.chat-head small { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--fg-muted); }
.chat-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
}

.bubble {
    max-width: 86%;
    padding: .8rem 1rem;
    border-radius: var(--r);
    font-size: .92rem;
    line-height: 1.6;
    animation: bubbleIn .25s var(--ease);
}
.bubble strong { color: var(--fg); font-weight: 650; }

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.bubble--bot {
    align-self: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
    color: var(--fg-muted);
}
.bubble--user {
    align-self: flex-end;
    background: var(--grad);
    color: #04121a;
    border-bottom-right-radius: 6px;
    font-weight: 500;
}
:root[data-theme="light"] .bubble--user { color: #fff; }
.bubble--user strong { color: inherit; }

.chat-chips { display: flex; flex-wrap: wrap; gap: .45rem; }

.chip {
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
    font: inherit;
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, transform .2s var(--ease);
}
.chip:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); transform: translateY(-1px); }

.chat-links { display: grid; gap: .4rem; }
.chat-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .85rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .86rem;
    font-weight: 500;
    transition: border-color .2s, background-color .2s;
}
.chat-links a:hover { border-color: var(--brand-line); background: var(--brand-soft); }

.chat-typing { display: inline-flex; gap: .25rem; align-self: flex-start; padding: .9rem 1rem; }
.chat-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fg-dim);
    animation: blink 1.3s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }

@keyframes blink {
    0%, 60%, 100% { opacity: .25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.chat-foot { border-top: 1px solid var(--border); padding: .8rem; }
.chat-input-row { display: flex; gap: .5rem; }
.chat-input-row .input { padding: .65rem .9rem; border-radius: 999px; }
.chat-send {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: var(--grad);
    color: #04121a;
    cursor: pointer;
    transition: transform .2s var(--ease), opacity .2s;
}
:root[data-theme="light"] .chat-send { color: #fff; }
.chat-send:hover:not(:disabled) { transform: scale(1.06); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
.chat-disclaimer { display: block; margin-top: .55rem; text-align: center; font-size: .72rem; color: var(--fg-dim); }

/* --- Scroll reveal ------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Blazor error UI ----------------------------------------------------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 1000;
    padding: .9rem 1.25rem;
    background: #fde68a;
    color: #1c1917;
    font-size: .9rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
}
#blazor-error-ui .dismiss { cursor: pointer; float: inline-end; font-weight: 700; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 960px) {
    .nav, .header-tools .menu--lang, .header-tools .btn { display: none; }
    .nav-toggle { display: grid; margin-inline-start: auto; }
}

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