:root {
    --bg-color: #2D2D31;
    --surface-color: #3A3A3F;
    --surface-hover: #4A4A50;
    --text-main: #FFFFFF;
    --text-muted: #AFAFAF;
    --accent-color: #3B82F6; /* Vibrant Blue */
    --accent-hover: #2563EB;
    --border-color: #4A4A50;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, #FFF, #AFAFAF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 0.5rem;
    min-height: 52px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-hover);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(45, 45, 49, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.price {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price span {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

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

.nav-links a.active {
    color: var(--text-main);
    transition: none;
}

.nav-btn {
    background-color: var(--accent-color);
    color: #FFF !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    color: #FFF !important;
}


/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Sections */
.section {
    padding: 3.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 5fr;
    gap: 7rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Typical UI aspect ratio */
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    background-color: var(--surface-light); /* fallback */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Feature Row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 500px;
}

.feature-image-container {
    position: relative;
    border-radius: 12px;
    padding: 1rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-image-container img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Overline */
.overline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Testimonials / Discord Section */
.discord-section {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 4rem;
    margin: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}

.testimonial-card p {
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-author {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 2.5rem 5% 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Page Header (for subpages) */
.page-header {
    padding: 6rem 5% 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--bg-color) 100%);
}

.page-content {
    padding: 1.5rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 50vh;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }

    .hero-content, .feature-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }
}

/* Guides Layout */
.guides-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: max-content;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar a:hover, .sidebar a.active {
    color: var(--accent-color);
}

.guide-content {
    max-width: 1200px;
}

.guide-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.guide-section h2 {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.guide-section h3 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.guide-section p, .guide-section ul {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-section ul {
    list-style-position: inside;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

.guide-section strong {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .guides-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.footer-social img {
    height: 20px;
    width: auto;
    filter: invert(1) opacity(0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-social a:hover img {
    filter: invert(1) opacity(1) drop-shadow(0 0 5px var(--accent-color));
}

/* FAQ Styling */
.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Premium Card & Video Mockup Styles */
.guide-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    max-width: 744px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    scroll-margin-top: 120px; /* offset for fixed header */
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Deep link targeting glow effect */
.guide-card:target {
    animation: target-glow 2.5s ease-out;
}

@keyframes target-glow {
    0% {
        border-color: var(--accent-color);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
        background: rgba(59, 130, 246, 0.05);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        background: var(--surface-color);
    }
}

.guide-card-content {
    display: flex;
    flex-direction: column;
    max-width: 750px;
}

.guide-card-content h3 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FFF, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.guide-card-content ul {
    margin-bottom: 0;
    list-style-type: none;
    padding-left: 0;
}

.guide-card-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.guide-card-content li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.25rem;
    position: absolute;
    left: 0.25rem;
    top: -0.15rem;
}

/* App/Browser Video Mockup */
.video-mockup {
    background: #1E1E22;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 850px;
    align-self: center;
}

.mockup-header {
    background: #252529;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27C93F; }

.mockup-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-mockup video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.video-highlight-box {
    position: absolute;
    border: 2px solid #326294;
    box-shadow: 0 0 10px rgba(50, 98, 148, 0.5);
    pointer-events: none;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .guide-card {
        padding: 1.5rem;
    }
}

/* Cinema Mode / Video Lightbox Overlay */
.cinema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cinema-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cinema-container {
    position: relative;
    max-width: 95%;
    max-height: 90vh;
    width: 1600px;
    background: #1e1e22;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cinema-overlay.active .cinema-container {
    transform: scale(1);
}

.cinema-header {
    background: #252529;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-title {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cinema-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cinema-body {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

/* Hover-Effekt zur Klickbarkeit-Signalisierung */
.video-mockup {
    cursor: pointer;
    position: relative;
}

.video-mockup::after {
    content: "🔍 Click to Zoom (Cinema Mode)";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.video-mockup:hover::after {
    opacity: 1;
}

/* Safety Assistant Interactive Disallowed Software Details */
.safety-details {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all var(--transition);
}
.safety-details[open] {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(50, 98, 148, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.safety-summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
}
.safety-summary::-webkit-details-marker {
    display: none;
}
.safety-summary:hover {
    color: var(--accent-color);
}
.safety-summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform var(--transition);
    transform: rotate(-90deg);
}
.safety-details[open] .safety-summary::after {
    transform: rotate(0deg);
}
.safety-list-container {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.safety-list-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1rem 0;
}
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.safety-grid-col h4 {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.safety-grid-col ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.safety-grid-col li {
    font-size: 0.85rem;
    color: var(--text-main);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-left: 0 !important;
    margin-bottom: 0.25rem !important;
}
.safety-grid-col li::before {
    content: none !important;
}
.safety-support-request {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.safety-support-request p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}
.safety-btn-group {
    display: flex;
    gap: 0.75rem;
}
.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* Feature Video Zooming */
.feature-video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    background: #000;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-crop {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}
.video-crop video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature specific video zooms using precise cropping */
.zoom-4-tables {
    /* Focuses on the top-left 1270x920 region (4 tables) of a 2560x1600 video */
    aspect-ratio: 1270 / 920;
}
.zoom-4-tables video {
    width: 201.57%; /* 2560 / 1270 */
    height: 173.91%; /* 1600 / 920 */
    max-width: none;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
}

.zoom-top-left-table {
    /* Focuses exactly on the top-left table */
    aspect-ratio: 16 / 9;
}
.zoom-top-left-table video {
    width: 250%; /* Shows the top-left 1024x576 of the 2560x1600 video */
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    object-fit: fill;
    transform: translate(0, 0);
}

.zoom-ui-panel {
    /* Safety Assistant - Focus on CoreSpade GUI (Bottom Left) */
    aspect-ratio: 16 / 9; /* Can be adjusted later if needed */
}
.zoom-ui-panel video {
    /* Standard scale/translate since UI panel size varies */
    transform: scale(2.1) translate(0%, -10%);
    transform-origin: 0% 100%;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); border-color: rgba(59, 130, 246, 1); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); border-color: rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); border-color: rgba(59, 130, 246, 1); }
}

.video-highlight-box.pulsate {
    border: 3px solid #3B82F6; /* Vibrant Blue */
    animation: pulse-border 0.5s infinite;
    background: rgba(59, 130, 246, 0.1);
}

/* Ultrawide Video Support */
.video-container.ultrawide {
    aspect-ratio: 3760 / 1600;
}
.cinema-container.ultrawide {
    width: 2350px;
    max-width: 98%;
}
.cinema-container.ultrawide .video-container {
    aspect-ratio: 3760 / 1600;
}
