/* DB Team - landing page
   Dark, minimal. Brand red #e61e28, taken from the logo. */

:root {
    --bg:            #0a0a0b;
    --bg-alt:        #0f0f11;
    --line:          #232327;
    --line-soft:     #1a1a1d;
    --text:          #e8e8ea;
    --text-dim:      #9b9ba3;
    --text-faint:    #6e6e77;
    --red:           #e61e28;
    --red-dark:      #c41c2c;
    --radius:        10px;
    --wrap:          1080px;
    --mono:          "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

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

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

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--red);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Typography ---------- */

h1, h2, h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.1rem, 6vw, 3.9rem);
    margin-bottom: 24px;
}

h1 em {
    font-style: normal;
    color: var(--red);
}

h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

p { margin: 0 0 16px; }

.eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 62ch;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 68px;
}

.logo img {
    width: 116px;
    height: auto;
}

.nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 0.93rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.15s ease;
}

.nav a:hover { color: var(--text); }

.header-cta { font-family: var(--mono); font-size: 0.85rem; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-ghost { color: var(--text); }

.btn-ghost:hover { border-color: #3a3a40; background: #141417; }

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

.hero {
    position: relative;
    padding: clamp(72px, 13vw, 140px) 0 clamp(56px, 9vw, 104px);
    overflow: hidden;
}

/* single soft red glow - the only "graphic" on the page */
.hero::before {
    content: "";
    position: absolute;
    top: -220px;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translateX(-60%);
    background: radial-gradient(closest-side, rgba(230, 30, 40, 0.16), transparent 70%);
    pointer-events: none;
}

.hero .wrap { position: relative; }

.hero .lead { font-size: 1.18rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* ---------- Facts ---------- */

.facts {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-alt);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding-top: 0;
    padding-bottom: 0;
}

.fact {
    padding: 28px 24px;
    text-align: center;
}

.fact + .fact { box-shadow: -1px 0 0 var(--line-soft); }

.fact strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: var(--red);
}

.fact span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ---------- Sections ---------- */

.section { padding: clamp(60px, 9vw, 100px) 0; }

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #121214;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
    border-color: #3a3a40;
    transform: translateY(-2px);
}

.card h3 { color: var(--text); }

.card h3::before {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    background: var(--red);
    margin-bottom: 14px;
}

.card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.97rem;
}

.card-wide { grid-column: 1 / -1; }

/* ---------- Tags ---------- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
}

.tags li {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    background: #121214;
}

.tags-note {
    margin: 36px 0 0;
    font-size: 0.95rem;
    color: var(--text-faint);
}

.tags-muted { margin-top: 14px; }

.tags-muted li {
    color: var(--text-faint);
    border-style: dashed;
    background: none;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.contact-item {
    display: block;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #121214;
    text-decoration: none;
    transition: border-color 0.18s ease;
}

a.contact-item:hover { border-color: var(--red); }

.contact-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.45;
}

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

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

.footer-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
}

.footer-logo { width: 100px; opacity: 0.75; }

.footer-copy {
    margin: 0 0 0 auto;
    font-size: 0.87rem;
    color: var(--text-faint);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 860px) {
    .cards,
    .cards-3,
    .contact-grid { grid-template-columns: 1fr; }

    .facts-grid { grid-template-columns: 1fr; }
    .fact + .fact { box-shadow: 0 -1px 0 var(--line-soft); }

    .header-cta { display: none; }

    .nav-toggle { display: block; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px 24px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line-soft);
        display: none;
    }

    .nav.is-open { display: flex; }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover,
    .card:hover { transform: none; }
}
