/* ═══════════════════════════════════════════════════════
   RaDigSol – Dark Tech-Focused Theme
   Pure CSS, no npm required
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #080A12;
    --color-darker: #060810;
    --color-accent: #00F0C8;
    --color-blue: #0080FF;
    --color-text: #E8ECF4;
    --color-muted: #8892A8;
    --color-subtle: #6B7488;
    --color-surface: rgba(255, 255, 255, 0.02);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-accent: rgba(0, 240, 200, 0.2);
    --font-display: 'Raleway', sans-serif;
    --font-mono: 'Raleway', sans-serif;
    --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: rgba(0, 240, 200, 0.2);
    color: var(--color-text);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 200, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 200, 0.25);
}

/* ── Layout ──────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
}

.section--subtle {
    background: rgba(0, 240, 200, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section--subtle-top {
    background: rgba(0, 240, 200, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section__header {
    margin-bottom: 64px;
}

/* ── Typography ──────────────────────────────────────── */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-muted {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ── Reveal Animation ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1),
                transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navigation ──────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.nav--scrolled {
    background: rgba(8, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(0, 240, 200, 0.08);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
}

.nav__logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.nav__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 16px;
    color: var(--color-dark);
}

.nav__logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav__link:hover {
    color: #C8CED8;
}

.nav__link--active {
    background: rgba(0, 240, 200, 0.1);
    color: var(--color-accent);
}

.nav__link--active:hover {
    color: var(--color-accent);
}

.nav__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
}

.nav__mobile-menu {
    background: rgba(8, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(0, 240, 200, 0.08);
}

.nav__mobile-link {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 0;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.nav__mobile-link--active {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .nav__inner {
        padding: 0 16px;
        height: 64px;
    }

    .nav__logo img {
        height: 40px;
        max-width: 150px;
    }

    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: block;
    }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero__wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    text-align: left;
}

.hero__image {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 200, 0.1);
    border: 1px solid rgba(0, 240, 200, 0.15);
}

.hero__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero__image:hover img {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .hero__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__content {
        text-align: center;
    }

    .hero__image {
        order: -1;
    }
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 200, 0.06);
    border: 1px solid rgba(0, 240, 200, 0.15);
    border-radius: 100px;
    padding: 6px 18px 6px 12px;
    margin-bottom: 32px;
}

.hero__tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px rgba(0, 240, 200, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 240, 200, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 240, 200, 0.8); }
}

.hero__tag-text {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-text);
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}

.hero__title--gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 40px 0;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .hero__subtitle {
        margin: 0 auto 40px;
    }

    .hero__actions {
        justify-content: center;
    }
}

/* ── Grid Background ─────────────────────────────────── */
.grid-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-bg__lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 200, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.grid-bg__glow {
    position: absolute;
    border-radius: 50%;
}

.grid-bg__glow--blue {
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.06) 0%, transparent 70%);
}

.grid-bg__glow--green {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 200, 0.05) 0%, transparent 70%);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-block;
    border-radius: 12px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), #00C8A0);
    color: var(--color-dark);
    box-shadow: 0 4px 24px rgba(0, 240, 200, 0.2);
}

.btn--primary:hover {
    box-shadow: 0 8px 40px rgba(0, 240, 200, 0.35);
    transform: translateY(-1px);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #C8CED8;
    font-weight: 500;
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-accent);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.35s ease;
    height: 100%;
}

.card:hover {
    border-color: var(--color-border-accent);
    background: rgba(0, 240, 200, 0.03);
    transform: translateY(-4px);
}

.card--padded {
    padding: 36px;
}

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

.card__icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px;
}

.card__desc {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}

.card__heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 24px;
}

/* ── Services Grid ───────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ── About Grid ──────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── UseCase Grid ──────────────────────────────────────── */
.usecase-grid {
    display: grid;
    gap: 24px;
}

@media (max-width: 768px) {
    .usecase-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* ── About Grid ──────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Stats Grid ──────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card--stat-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card--stat-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 240, 200, 0.15);
    border-color: rgba(0, 240, 200, 0.3);
}

.stat__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 240, 200, 0.06);
    border: 1px solid rgba(0, 240, 200, 0.15);
}

.stat__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(80%) sepia(25%) saturate(500%) hue-rotate(120deg) brightness(95%) contrast(95%);
}

.stat__value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.stat__img {
    width: 100%;
    max-width: 500px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.stat__img img {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.stat__label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-subtle);
}

/* ── Contact Grid ────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-item__value {
    font-family: var(--font-body);
    font-size: 16px;
    color: #C8CED8;
}

.impressum-text {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--color-muted);
    line-height: 1.8;
}

.impressum-text p {
    margin: 0 0 12px;
}

.impressum-text p:last-child {
    margin-bottom: 0;
}

.impressum-text strong {
    color: #C8CED8;
}

/* ── Privacy ─────────────────────────────────────────── */
.privacy-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.privacy-item__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #C8CED8;
    margin: 0 0 12px;
}

.privacy-item__body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.8;
    margin: 0;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px 32px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer__brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 6px;
}

.footer__copy {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-subtle);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-subtle);
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer__link:hover {
    color: var(--color-accent);
}

/* ── Error UI (Blazor) ───────────────────────────────── */
#blazor-error-ui {
    background: rgba(200, 60, 60, 0.9);
    color: white;
    padding: 12px 24px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 16px;
    text-decoration: underline;
}
