/* ==========================================================================
   py-berater.de / py-consultant.com — modernized look & feel
   Sits on top of Tailwind (Play CDN) + flowbite and owns exactly those
   pieces the markup hands over: section heads, icon tiles, card surfaces,
   chips, stat blocks and buttons.

   Contract with the markup: wherever one of these classes is applied, the
   Tailwind utilities that set the *same* property were removed from the
   element. The utility sheet is linked as the LAST stylesheet (tailwind.css,
   compiled by `npm run build:css`) — that is the position the Play CDN's
   injected <style> used to occupy — so a leftover utility of equal
   specificity would win.
   ========================================================================== */

/* ---------- Mono micro-type (self-hosted) ---------- */

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}

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

:root {
    --paper: #e8eef8;
    --muted: #94a5bd;
    --hairline: rgba(226, 232, 240, 0.13);
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --grad-brand: linear-gradient(120deg, #2563eb, #22d3ee 52%, #8b5cf6);
    /* Same hue journey, dark enough for white text: the vivid mid stop
       (#22d3ee) only reaches 1.8:1 against #fff, which failed WCAG AA on
       .btn-primary and .lang-switch-active. All three stops now carry white
       text at >= 5.3:1. Decorative uses keep --grad-brand. */
    --grad-brand-deep: linear-gradient(120deg, #1d4ed8, #0e7490 52%, #6d28d9);

    /* default palette; every .sec-* block overrides it */
    --accent: #2563eb;
    --accent-2: #22d3ee;
    --accent-ink: #7dd3fc;
    --accent-glow: rgba(37, 99, 235, 0.4);
}

/* One palette per section — that is what makes mixed hues read as a system. */

.sec-services {
    --accent: #2563eb;
    --accent-2: #22d3ee;
    --accent-ink: #7dd3fc;
    --accent-glow: rgba(37, 99, 235, 0.4);
}

.sec-ai {
    --accent: #8b5cf6;
    --accent-2: #ec4899;
    --accent-ink: #d8b4fe;
    --accent-glow: rgba(139, 92, 246, 0.36);
}

.sec-tech {
    --accent: #0ea5e9;
    --accent-2: #14b8a6;
    --accent-ink: #67e8f9;
    --accent-glow: rgba(14, 165, 233, 0.36);
}

.sec-trust {
    --accent: #f59e0b;
    --accent-2: #f97316;
    --accent-ink: #fcd34d;
    --accent-glow: rgba(245, 158, 11, 0.32);
}

.sec-refs {
    --accent: #10b981;
    --accent-2: #22d3ee;
    --accent-ink: #6ee7b7;
    --accent-glow: rgba(16, 185, 129, 0.32);
}

.sec-contact {
    --accent: #2563eb;
    --accent-2: #8b5cf6;
    --accent-ink: #a5b4fc;
    --accent-glow: rgba(37, 99, 235, 0.38);
}

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

.logo-mark {
    filter: drop-shadow(0 6px 14px rgba(2, 6, 23, 0.5));
}

.nav-link {
    position: relative;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 180ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1.5px;
    border-radius: 999px;
    background-image: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.lang-switch {
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.lang-switch-active {
    background-image: var(--grad-brand-deep);
    color: #fff;
}

.lang-switch-link {
    /* was var(--muted) #94a5bd -> 4.37:1 on the chip background (needs 4.5) */
    color: #a9bad1;
}

.lang-switch-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-badge {
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.16));
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.06em;
}

/* .hero-title/.section-title are doubled so they beat the runtime utility
   sheet for line-height, which the text-size utilities also set. */
.hero-title.hero-title {
    letter-spacing: -0.032em;
    line-height: 1.04;
}

.grad-text {
    background-image: linear-gradient(105deg, #7dd3fc, #22d3ee 40%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #7dd3fc;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hairline);
    transition: border-color 200ms ease, background-color 200ms ease;
}

.stat-card:hover {
    border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
    background-color: rgba(255, 255, 255, 0.07);
}

.stat-value {
    letter-spacing: -0.03em;
    background-image: linear-gradient(120deg, #f8fafc, #7dd3fc 62%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e2e8f0;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Section heads ---------- */

.section-icon,
.icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    color: #fff;
    background-image: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 30px -16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    flex: 0 0 auto;
}

.section-icon {
    margin: 0 auto 1.35rem;
}

.icon-tile-lg {
    width: 62px;
    height: 62px;
    border-radius: 19px;
}

.icon-tile-sm {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.section-icon svg,
.icon-tile svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}

.icon-tile-lg svg {
    width: 28px;
    height: 28px;
}

.icon-tile-sm svg {
    width: 22px;
    height: 22px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.section-no {
    /* the raw accent-2 reached only 2.75:1 on the section background (violet on
       #213766); mixed toward white it keeps the per-section hue at >= 5.5:1 */
    color: color-mix(in srgb, var(--accent-2) 45%, #ffffff);
}

.section-no::after {
    content: '·';
    margin: 0 0.55em;
    opacity: 0.55;
}

.section-title.section-title {
    letter-spacing: -0.022em;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    margin: 1.5rem auto 0;
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Cards, chips, tags ---------- */

.card-accent {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background-color: rgba(15, 23, 42, 0.5);
    background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

/* corner bloom — stays well under .2 or it reads as a rendering smudge */
.card-accent::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), rgba(255, 255, 255, 0) 68%);
    opacity: 0.16;
    pointer-events: none;
}

.card-accent:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 30px 55px -32px var(--accent-glow);
}

/* keeps card content above the bloom */
.card-accent > * {
    position: relative;
    z-index: 1;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 9px 18px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-image: linear-gradient(140deg, var(--accent), var(--accent-2));
    flex: 0 0 auto;
}

.chip-plain::before {
    display: none;
}

.chip:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
    color: var(--paper);
}

.year-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.sub-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    letter-spacing: -0.012em;
}

.sub-head::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--accent), var(--accent-2));
    flex: 0 0 auto;
}

/* ---------- Banners & buttons ---------- */

.ai-banner {
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background-image: linear-gradient(120deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.22) 60%, rgba(37, 99, 235, 0.22));
}

.cta-box {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-primary {
    background-image: var(--grad-brand-deep);
    color: #fff;
    box-shadow: 0 16px 34px -18px rgba(37, 99, 235, 0.65);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px -18px rgba(37, 99, 235, 0.8);
}

.btn-ghost {
    border: 1px solid rgba(226, 232, 240, 0.22);
    color: var(--paper);
}

.btn-ghost:hover {
    border-color: rgba(226, 232, 240, 0.45);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-light {
    background: #fff;
    /* was #1d4ed8 -> 6.70:1 with white text (AAA wants 7); #1e40af gives 8.72:1 */
    color: #1e40af;
    box-shadow: 0 18px 36px -20px rgba(2, 6, 23, 0.9);
}

.btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 46px -20px rgba(2, 6, 23, 1);
}

/* ---------- Motion / responsive ---------- */

@media (max-width: 767px) {
    .section-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        margin-bottom: 1.1rem;
    }

    .section-icon svg {
        width: 23px;
        height: 23px;
    }

    .section-title::after {
        margin-top: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-accent,
    .chip,
    .stat-card,
    .btn-primary,
    .btn-light {
        transition: none;
    }

    .card-accent:hover,
    .btn-primary:hover,
    .btn-light:hover {
        transform: none;
    }
}
