/* ==========================================================================
   RACESUCHT — EXECUTIVE LIGHT MODE DESIGN SYSTEM WITH GRID OVERLAY
   ========================================================================== */

:root {
    /* Pure Executive Light Palette */
    --bg-main: #f8fafc;
    --bg-alt: #ffffff;
    --bg-accent: #f1f5f9;
    
    /* Clean Hairline Architectural Dividers */
    --border-hairline: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.18);
    
    /* Deep High-Contrast Typography */
    --text-pure: #0f172a;
    --text-subtle: #334155;
    --text-muted: #64748b;

    /* Enterprise Accents */
    --host-blue: #2563eb;
    --studio-cyan: #0284c7;
    --success-emerald: #059669;

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-pure);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    /* Clean Architectural Blueprint Grid Background (RaceHost.eu Style) */
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* Ambient Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Navbar (Always Visible) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(248, 250, 252, 0.88);
    border-bottom: 1px solid var(--border-hairline);
    padding: 1.2rem 0;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
}

.brand-badge {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: var(--text-pure);
}

.brand-badge-large {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-pure);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.nav-item:hover {
    color: var(--host-blue);
}

.nav-icon {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    padding: 170px 2rem 100px;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--host-blue);
    background: rgba(37, 99, 235, 0.06);
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    margin-bottom: 1.75rem;
}

.spark-icon {
    width: 14px;
    height: 14px;
    color: var(--host-blue);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    max-width: 900px;
    text-transform: none;
}

.hero-title-accent {
    color: var(--text-subtle);
    font-weight: 700;
}

/* Vibrant Pure Yellow Highlighter Marker */
.highlight-yellow {
    color: #0f172a;
    background: #ffe600;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 900;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.75rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 4.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--host-blue);
    color: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-pure);
    border: 1px solid var(--border-hairline);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: var(--bg-accent);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* Fact Banner Horizontal */
.facts-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.fact-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fact-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
}

.fact-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Showcase Section - Full Width Architectural Blocks */
.projects-section {
    padding: 40px 0 0;
}

.showcase-block {
    padding: 70px 2rem;
    border-top: 1px solid var(--border-hairline);
}

.host-block {
    background: var(--bg-alt);
}

.studio-block {
    background: var(--bg-main);
}

.showcase-container {
    max-width: 1240px;
    margin: 0 auto;
}

.showcase-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-hairline);
}

.showcase-num {
    color: var(--host-blue);
    font-weight: 700;
}

.studio-block .showcase-num {
    color: var(--studio-cyan);
}

.showcase-url {
    color: var(--text-subtle);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.showcase-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.showcase-tagline {
    font-size: 1.1rem;
    color: var(--text-subtle);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.showcase-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Feature Rows */
.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--host-blue);
    border: 1px solid rgba(37, 99, 235, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-box svg {
    width: 20px;
    height: 20px;
}

.studio-icon {
    background: rgba(2, 132, 199, 0.08);
    color: var(--studio-cyan);
    border-color: rgba(2, 132, 199, 0.18);
}

.feature-row h4 {
    color: var(--text-pure);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-row p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--host-blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.showcase-cta svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.showcase-cta:hover {
    background: #1d4ed8;
}

.showcase-cta:hover svg {
    transform: translateX(4px);
}

.studio-cta {
    background: var(--studio-cyan);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.studio-cta:hover {
    background: #0369a1;
}

/* Showcase Interactive Panel */
.showcase-interactive {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.studio-block .showcase-interactive {
    background: var(--bg-alt);
}

.interactive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-hairline);
}

/* RaceHost Advantages Grid */
.host-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.advantage-card {
    background: var(--bg-main);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    transition: all var(--transition);
}

.advantage-card:hover {
    border-color: var(--border-strong);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.advantage-header svg {
    width: 16px;
    height: 16px;
    color: var(--host-blue);
    flex-shrink: 0;
}

.advantage-header strong {
    font-size: 0.85rem;
    color: var(--text-pure);
    font-weight: 700;
}

.advantage-card p {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Studio Pipeline */
.studio-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pipeline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.pipeline-item:hover {
    background: #ffffff;
    border-color: var(--border-strong);
}

.pipeline-item.active {
    background: rgba(2, 132, 199, 0.06);
    border-color: var(--studio-cyan);
}

.pipeline-no {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--studio-cyan);
}

.pipeline-details strong {
    display: block;
    font-size: 0.825rem;
    color: var(--text-pure);
}

.pipeline-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pipeline-desc-box {
    font-size: 0.85rem;
    color: var(--text-subtle);
    background: var(--bg-main);
    padding: 14px;
    border-radius: 6px;
    border: 1px solid var(--border-hairline);
    line-height: 1.6;
}

/* Principles Section (Tightened Spacing) */
.principles-section {
    padding: 50px 0 70px;
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-main);
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header-left {
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--host-blue);
    letter-spacing: 0.12em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-top: 0.4rem;
}

.principles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.principle-column {
    display: flex;
    flex-direction: column;
}

.principle-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-hairline);
}

.principle-column h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 0.75rem;
}

.principle-column p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* INLINE LEGAL PAGE VIEWS */
.legal-page-view {
    display: none;
    padding: 140px 2rem 80px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 70vh;
}

.legal-page-container {
    background: var(--bg-alt);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border-hairline);
    color: var(--text-pure);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: 2rem;
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.back-btn:hover {
    background: #ffffff;
    border-color: var(--border-strong);
}

.back-btn-bottom {
    margin-top: 3rem;
    margin-bottom: 0;
}

.legal-text-body h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 0.75rem;
}

.legal-text-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 0.5rem;
}

.legal-text-body p {
    color: var(--text-subtle);
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-text-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-subtle);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Distinct Active Link Styling in Legal Texts */
.legal-text-body a {
    color: var(--host-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition);
}

.legal-text-body a:hover {
    color: #1d4ed8;
}

/* Footer (Always Visible) */
.footer {
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-alt);
    padding: 90px 2rem 40px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 340px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h5 {
    color: var(--text-pure);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--host-blue);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .showcase-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-title { font-size: 2.75rem; }
    .facts-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .principles-list { grid-template-columns: 1fr; gap: 2rem; }
    .footer-container { grid-template-columns: 1fr; }
    .legal-page-container { padding: 2rem; }
    .host-advantages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.1rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .facts-bar { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
