/* ============================================================
   db2U GmbH – Design System
   Fiber-Tech Branding: Navy Base · Cyan→Indigo Glow
   ============================================================ */

:root {
    --bg:        #0b1220;
    --bg-2:      #0e1729;
    --surface:   #131f36;
    --surface-2: #182543;
    --line:      rgba(148, 173, 214, 0.14);
    --line-strong: rgba(148, 173, 214, 0.28);

    --text:      #eaf1ff;
    --text-soft: #b6c4de;
    --text-mute: #8092b3;

    --cyan:   #22d3ee;
    --indigo: #6366f1;
    --violet: #8b5cf6;
    --teal:   #2dd4bf;
    --amber:  #fbbf24;

    --grad:      linear-gradient(120deg, #22d3ee 0%, #6366f1 100%);
    --grad-soft: linear-gradient(120deg, rgba(34,211,238,.16), rgba(99,102,241,.16));
    --glow:      0 0 40px rgba(34, 211, 238, 0.25);

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -30px rgba(4, 10, 25, 0.85);

    --font:  'Inter', system-ui, 'Segoe UI', sans-serif;
    --head:  'Poppins', var(--font);
    --maxw:  1180px;
    --ease:  cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(60rem 60rem at 80% -10%, rgba(99,102,241,.18), transparent 60%),
        radial-gradient(50rem 50rem at -10% 10%, rgba(34,211,238,.12), transparent 55%);
    background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--cyan); color: #001018; padding: .6rem 1rem; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Gradient text & utility ---------- */
.grad-text {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--cyan);
    padding: .4rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px;
    background: rgba(34,211,238,.06);
}
.lead { color: var(--text-soft); font-size: clamp(1.02rem, 1.6vw, 1.22rem); }
.center { text-align: center; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Icon chips ---------- */
.ic { flex-shrink: 0; }
.ic-chip {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
    background: var(--grad-soft); color: var(--cyan);
    border: 1px solid var(--line-strong);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--head); font-weight: 600; font-size: .98rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    background: var(--grad); color: #04121f; box-shadow: 0 10px 30px -10px rgba(34,211,238,.5);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34,211,238,.65); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-ghost {
    background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--cyan); box-shadow: none; }
.btn-nav { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(11, 18, 32, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11,18,32,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { color: var(--text); display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list a {
    font-weight: 500; font-size: .96rem; color: var(--text-soft);
    padding: .5rem .85rem; border-radius: 10px; transition: color .2s, background .2s; position: relative;
}
.nav-list a:hover { color: var(--text); }
.nav-list a.active { color: var(--text); }
.nav-list a.active::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .28rem; height: 2px;
    background: var(--grad); border-radius: 2px;
}
.nav-list a.btn-nav { color: #04121f; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { margin: 1.2rem 0 1.1rem; }
.hero .lead { max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; color: var(--text-mute); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .ic { color: var(--teal); }

/* Fiber visual */
.fiber-wrap { position: relative; }
.fiber-visual {
    position: relative; aspect-ratio: 1 / 1; border-radius: 26px;
    background: linear-gradient(160deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
    display: grid; place-items: center;
}
.fiber-visual::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(34,211,238,.35), transparent 45%),
        radial-gradient(circle at 70% 75%, rgba(99,102,241,.3), transparent 45%);
}
.fiber-svg { position: relative; width: 88%; }
.fiber-node { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.pulse { stroke-dasharray: 6 10; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -160; } }

.hero-badge {
    position: absolute; z-index: 3; background: rgba(19, 31, 54, .92); border: 1px solid var(--line-strong);
    border-radius: 14px; padding: .7rem .95rem; box-shadow: var(--shadow); backdrop-filter: blur(6px);
    display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600;
}
.hero-badge .ic { color: var(--cyan); }
.hero-badge.b1 { top: 6%; right: -12px; }
.hero-badge.b2 { bottom: 9%; left: -12px; }

/* ---------- Marquee / logo strip ---------- */
.strip { border-block: 1px solid var(--line); background: rgba(19,31,54,.4); padding: 1.1rem 0; }
.strip-inner { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; color: var(--text-mute); font-size: .92rem; }
.strip-inner strong { color: var(--text); font-family: var(--head); }
.strip-tag { display: inline-flex; align-items: center; gap: .5rem; }
.strip-tag .ic { color: var(--teal); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; text-align: center; transition: transform .3s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.stat-value { font-family: var(--head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.stat-label { color: var(--text-mute); font-size: .9rem; margin-top: .35rem; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.8rem; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
    overflow: hidden;
}
.card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card.feature { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border-color: var(--line-strong); }
.card.feature::before { transform: scaleX(1); }
.card-flag { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.card h3 { margin: 1.1rem 0 .6rem; }
.card p { color: var(--text-soft); font-size: .98rem; }
.card-list { margin-top: 1.1rem; display: grid; gap: .55rem; }
.card-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .93rem; color: var(--text-soft); }
.card-list .ic { color: var(--teal); margin-top: 3px; }

/* ---------- Split / feature band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: -1; }
.media-panel {
    background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}

/* ---------- Circet highlight band ---------- */
.band {
    position: relative; border-radius: 26px; overflow: hidden;
    background: linear-gradient(130deg, #0d1b3a, #10233f 55%, #131f36);
    border: 1px solid var(--line-strong); padding: clamp(2rem, 5vw, 3.5rem);
}
.band::after {
    content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
    background: radial-gradient(circle, rgba(34,211,238,.22), transparent 60%); pointer-events: none;
}
.band-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.tl-step {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem; transition: transform .3s var(--ease), border-color .3s;
}
.tl-step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tl-num { font-family: var(--head); font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-step h3 { font-size: 1.1rem; margin: .5rem 0 .5rem; }
.tl-step p { color: var(--text-soft); font-size: .92rem; }
.tl-connector { display: none; }

/* ---------- CTA banner ---------- */
.cta {
    text-align: center; border-radius: 26px; padding: clamp(2.5rem, 6vw, 4rem);
    background: var(--grad); color: #04121f; position: relative; overflow: hidden;
}
.cta h2 { color: #04121f; }
.cta p { color: #0a2233; max-width: 55ch; margin: 1rem auto 2rem; font-weight: 500; }
.cta .btn { background: #04121f; color: #eaf1ff; box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); }
.cta .btn:hover { background: #0a1a2e; }

/* ---------- About / owner ---------- */
.owner-card {
    display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.8rem;
}
.avatar {
    width: 96px; height: 96px; border-radius: 20px; display: grid; place-items: center;
    background: var(--grad); color: #04121f; font-family: var(--head); font-weight: 800; font-size: 2rem;
}
.qual-list { display: grid; gap: .6rem; margin-top: 1rem; }
.qual-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-soft); }
.qual-list .ic { color: var(--cyan); margin-top: 3px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.team-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.team-item .ic-chip { margin: 0 auto .8rem; }
.team-count { font-family: var(--head); font-weight: 800; font-size: 1.8rem; }

/* ---------- Fit grid (Circet page) ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.fit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: transform .3s var(--ease), border-color .3s; }
.fit:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.fit .ic-chip { margin-bottom: 1rem; }
.fit h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.fit p { color: var(--text-soft); font-size: .95rem; }

/* ---------- Comparison / value table ---------- */
.value-list { display: grid; gap: 1rem; }
.value-row {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.value-row .ic { color: var(--teal); margin-top: 4px; }
.value-row strong { font-family: var(--head); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-item {
    display: flex; gap: 1rem; align-items: center; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.contact-item .ic-chip { width: 46px; height: 46px; }
.contact-item .ci-label { font-size: .8rem; color: var(--text-mute); }
.contact-item .ci-value { font-weight: 600; font-family: var(--head); }

.form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .45rem; color: var(--text-soft); }
.field input, .field select, .field textarea {
    width: 100%; padding: .8rem 1rem; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
    font-family: var(--font); font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--text-mute); margin-top: .8rem; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-size: .95rem; display: flex; gap: .6rem; align-items: center; }
.alert .ic { flex-shrink: 0; }
.alert-success { background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.4); color: #bff4ea; }
.alert-error { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.4); color: #ffd0d6; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.page-hero h1 { margin: 1rem 0 .8rem; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { color: var(--text-mute); font-size: .85rem; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 3.5rem; background: rgba(9,14,25,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-claim { font-family: var(--head); font-weight: 600; margin-top: 1rem; }
.footer-sub { color: var(--text-mute); font-size: .9rem; margin-top: .4rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: 1rem; color: var(--text); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a, .footer-col li { color: var(--text-mute); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: .55rem; align-items: center; }
.footer-contact .ic { color: var(--teal); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.4rem 0; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .8rem;
}
.footer-disclaimer { max-width: 60ch; opacity: .8; }

/* ---------- To top ---------- */
.to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 46px; height: 46px;
    border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
    display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px);
    transition: opacity .3s, transform .3s, background .3s; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--surface-2); border-color: var(--cyan); }
.rot-up { transform: rotate(-90deg); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .fiber-wrap { max-width: 420px; margin-inline: auto; order: -1; }
    .hero-badge.b1 { right: 2%; } .hero-badge.b2 { left: 2%; }
    .split, .band-inner, .contact-grid, .split.reverse .split-media { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .stats-grid, .cards, .cards.two, .fit-grid, .team-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-list {
        position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1rem 1.2rem;
        transform: translateY(-140%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
    }
    .nav-list.open { transform: translateY(0); }
    .nav-list a { padding: .9rem .4rem; border-radius: 8px; }
    .nav-list a.active::after { display: none; }
    .nav-list .btn-nav { margin-top: .6rem; justify-content: center; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .stats-grid, .cards, .cards.two, .fit-grid, .team-grid, .timeline, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .owner-card { grid-template-columns: 1fr; text-align: center; }
    .avatar { margin-inline: auto; }
    .footer-bottom { flex-direction: column; }
}

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