/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Orbitron:wght@700&display=swap');

/*------------------------------------*\
    #ROOT & THEME VARIABLES
\*------------------------------------*/
:root {
    /* Light Theme Colors */
    --color-text-light: #2c2c2c;
    --color-background-light: #f5e8d8; /* Existing light background */
    --color-surface-light: #ffffff;
    --color-primary-light: #8a643f; /* Darker tan for primary actions */
    --color-secondary-light: #3b2f2f; /* Dark brown for secondary */
    --color-accent-light: #d4a373; /* Original tan as accent */
    --color-border-light: #d8c8b8; /* Slightly darker border for light mode */
    --color-gradient-start-light: #b88b5a;
    --color-gradient-end-light: #8a643f;
    --color-hero-overlay-light: rgba(245, 232, 216, 0.3); /* Light overlay for contrast */
    --color-hero-text-light: #3b2f2f; /* Darker text for hero light mode */
    --btn-primary-text-light: var(--color-surface-light); /* Text on primary button */
    --btn-secondary-text-light: var(--color-surface-light); /* Text on secondary button */
    --btn-primary-hover-bg-light: color-mix(in srgb, var(--color-primary-light) 90%, black);
    --btn-secondary-hover-bg-light: color-mix(in srgb, var(--color-secondary-light) 90%, black);
    --btn-outline-hover-text-light: var(--color-surface-light); /* Text on outline button hover */

    /* Dark Theme Colors (Inspired by examples) */
    --color-text-dark: #e0e0e0;
    --color-background-dark: #121212; /* Dark base */
    --color-surface-dark: #1e1e1e; /* Slightly lighter surface */
    --color-primary-dark: #88aaff; /* Techy blue primary */
    --color-secondary-dark: #d4a373; /* Tan accent becomes secondary */
    --color-accent-dark: #ff8c42; /* Vibrant orange accent */
    --color-border-dark: #333333;
    --color-gradient-start-dark: #88aaff;
    --color-gradient-end-dark: #5577cc;
    --color-hero-overlay-dark: rgba(18, 18, 18, 0.7); /* Dark overlay */
    --color-hero-text-dark: #ffffff; /* White text for hero dark mode */
    --btn-primary-text-dark: var(--color-background-dark); /* Text on primary button */
    --btn-secondary-text-dark: var(--color-background-dark); /* Text on secondary button */
    --btn-primary-hover-bg-dark: color-mix(in srgb, var(--color-primary-dark) 90%, white); /* Slightly lighter blue */
    --btn-secondary-hover-bg-dark: color-mix(in srgb, var(--color-secondary-dark) 90%, black); /* Slightly darker tan */
    --btn-outline-hover-text-dark: var(--color-background-dark); /* Text on outline button hover */


    /* --- Neural Network Colors (Light Mode Adjusted) --- */
    /* Dark Theme */
    --neural-node-color-dark: rgba(136, 170, 255, 0.2);  /* Faint blue */
    --neural-line-color-dark: rgba(136, 170, 255, 0.35); /* Faint blue lines */
    --neural-pulse-color-dark: rgba(255, 255, 255, 0.9);  /* Bright white pulse */
    --neural-glow-color-dark: rgba(136, 170, 255, 0.8);  /* Blue glow */
    --neural-trail-color-dark: rgba(136, 170, 255, 0.6); /* Blue trail */

    /* Light Theme (Using Theme Colors) */
    --neural-node-color-light: rgba(138, 100, 63, 0.3);  /* Faint dark tan (Primary Light) */
    --neural-line-color-light: rgba(138, 100, 63, 0.25); /* Fainter dark tan lines */
    --neural-pulse-color-light: rgba(59, 47, 47, 0.95); /* Dark brown pulse (Secondary Light) */
    --neural-glow-color-light: rgba(212, 163, 115, 0.9); /* Accent tan glow */
    --neural-trail-color-light: rgba(212, 163, 115, 0.7); /* Accent tan trail */


    /* Neutral Theme Variables */
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Orbitron', sans-serif; /* Techy heading font */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --container-width: 1140px;
    --container-padding: 1rem;

    /* Default to dark mode variables */
    --text-color: var(--color-text-dark);
    --background-color: var(--color-background-dark);
    --surface-color: var(--color-surface-dark);
    --primary-color: var(--color-primary-dark);
    --secondary-color: var(--color-secondary-dark);
    --accent-color: var(--color-accent-dark);
    --border-color: var(--color-border-dark);
    --gradient-start: var(--color-gradient-start-dark);
    --gradient-end: var(--color-gradient-end-dark);
    --hero-overlay-color: var(--color-hero-overlay-dark);
    --hero-text-color: var(--color-hero-text-dark);
    --neural-node-color: var(--neural-node-color-dark);
    --neural-line-color: var(--neural-line-color-dark);
    --neural-pulse-color: var(--neural-pulse-color-dark);
    --neural-glow-color: var(--neural-glow-color-dark);
    --neural-trail-color: var(--neural-trail-color-dark);
    --btn-primary-text: var(--btn-primary-text-dark);
    --btn-secondary-text: var(--btn-secondary-text-dark);
    --btn-primary-hover-bg: var(--btn-primary-hover-bg-dark);
    --btn-secondary-hover-bg: var(--btn-secondary-hover-bg-dark);
    --btn-outline-hover-text: var(--btn-outline-hover-text-dark);
}

.light-mode {
    --text-color: var(--color-text-light);
    --background-color: var(--color-background-light);
    --surface-color: var(--color-surface-light);
    --primary-color: var(--color-primary-light);
    --secondary-color: var(--color-secondary-light);
    --accent-color: var(--color-accent-light);
    --border-color: var(--color-border-light);
    --gradient-start: var(--color-gradient-start-light);
    --gradient-end: var(--color-gradient-end-light);
    --hero-overlay-color: var(--color-hero-overlay-light);
    --hero-text-color: var(--color-hero-text-light);
    --neural-node-color: var(--neural-node-color-light);
    --neural-line-color: var(--neural-line-color-light);
    --neural-pulse-color: var(--neural-pulse-color-light);
    --neural-glow-color: var(--neural-glow-color-light);
    --neural-trail-color: var(--neural-trail-color-light);
    --btn-primary-text: var(--btn-primary-text-light);
    --btn-secondary-text: var(--btn-secondary-text-light);
    --btn-primary-hover-bg: var(--btn-primary-hover-bg-light);
    --btn-secondary-hover-bg: var(--btn-secondary-hover-bg-light);
    --btn-outline-hover-text: var(--btn-outline-hover-text-light);
}

/*------------------------------------*\
    #BASE & RESET
\*------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Specifically target SVG placeholders if needed */
img[src^="data:image/svg+xml"] {
    /* No background for logo placeholder */
}
.product-card img[src^="data:image/svg+xml"],
.product-detail-media img[src^="data:image/svg+xml"]:not(.video-thumbnail), /* Exclude video thumbnail */
.about-image img[src^="data:image/svg+xml"],
.related-product-card img[src^="data:image/svg+xml"],
.how-it-works-visual img[src^="data:image/svg+xml"] {
     background-color: color-mix(in srgb, var(--surface-color) 90%, black); /* Give product placeholders bg */
     border: 1px dashed var(--border-color);
     padding: 0.5rem; /* Add some padding to placeholders */
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: 1.3;
    color: var(--primary-color); /* Headings stand out */
    margin-bottom: 0.75em;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw + 1rem, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw + 1rem, 2rem); }

p {
    margin-bottom: 1rem;
    /* Removed global max-width. Apply where needed */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover, a:focus {
    color: var(--primary-color);
    /* Base underline removed, handled by specific elements */
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0; /* Responsive padding */
}

.light-section {
    background-color: var(--surface-color);
    transition: background-color var(--transition-speed) ease; /* Smooth transition */
}

.section-title {
    text-align: center; /* Center align section titles */
    margin-bottom: 1rem;
     /* Gradient text effect */
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* Fallback */
}

.section-subtitle {
    text-align: center; /* Center align section subtitles */
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 60ch; /* Keep max-width for readability */
    margin-left: auto; /* Centering block */
    margin-right: auto; /* Centering block */
    margin-bottom: 3rem;
}

/*------------------------------------*\
    #HEADER & NAVIGATION
\*------------------------------------*/
.site-header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed) ease;
}

.header-container {
    display: flex;
    /* Mobile: space-between centers logo between nav/theme */
    justify-content: space-between;
    align-items: center;
    position: relative; /* Add relative positioning for absolute logo */
}

/* Mobile: Nav/Toggle is first element visually via order */
.main-nav {
    /* Remove flex-grow for mobile, let it shrink */
    text-align: left; /* Align mobile menu content left */
    order: 1; /* Default order */
    flex-shrink: 0; /* Ensure it doesn't shrink excessively */
    /* z-index needed if logo overlaps */
    position: relative;
    z-index: 10;
}

/* Mobile: Logo is centered using absolute positioning */
.logo-link {
    text-decoration: none;
    /* flex-shrink: 0; Not needed for absolute */
    /* order: 2; Not needed for absolute */
    /* flex-grow: 1; Remove flex-grow */
    /* display: flex; Not needed for absolute */
    /* justify-content: center; Not needed for absolute */

    /* Absolute Positioning for Centering on Mobile */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Below nav toggle menu, above background */
}

.logo-container {
    position: relative;
    height: 30px;
    width: 150px; /* Match HTML width */
}

.logo-image {
    height: 30px;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Hidden by default */
    transition: opacity var(--transition-speed) ease; /* Smooth fade (0.3s) */
}

.light-mode .logo-light {
    opacity: 1; /* Show light logo in light mode */
}

.dark-mode .logo-dark {
    opacity: 1; /* Show dark logo in dark mode */
}

/* --- Mobile Nav Toggle Button Styling --- */
.nav-toggle {
    display: block; /* Show on mobile */
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 101;
    color: var(--text-color);
    flex-shrink: 0;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transition: transform var(--transition-speed) ease, top var(--transition-speed) ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }


/* --- Mobile Nav Menu List --- */
.nav-list {
    display: none; /* Mobile */
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none !important;
    transition: color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-out;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    text-decoration: none !important;
    outline: none;
}
.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Nav Open State */
.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1px);
    /* Changed from right:0 to left:0 to match toggle button */
    left: 0;
    background-color: var(--surface-color);
    width: auto;
    min-width: 200px;
    max-width: 90vw;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-top: none;
    /* Adjust border-radius for left opening */
    border-radius: 0 0 var(--border-radius) 0;
    animation: slideDown 0.3s ease-out forwards;
    z-index: 100;
    text-align: left;
}

.nav-open .hamburger { background-color: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }


@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/*------------------------------------*\
    #THEME TOGGLE (Rotation Fully Managed by JS)
\*------------------------------------*/
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem; /* Add spacing from logo on mobile */
    width: 30px;
    height: 30px;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    flex-shrink: 0;
    order: 3; /* Keep last on mobile */
    z-index: 10; /* Ensure it's clickable */
}

.icon-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    will-change: opacity;
}

.icon-wrapper svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: var(--text-color);
    transform-origin: center center;
    transform: scale(1);
    transition: fill var(--transition-speed) ease,
                transform var(--transition-speed) ease;
    will-change: fill, transform;
}

.moon-wrapper svg {
    transform: scale(0.8);
}

body:not(.light-mode) .moon-wrapper {
    opacity: 1;
    pointer-events: auto;
}

.light-mode .sun-wrapper {
    opacity: 1;
    pointer-events: auto;
}

/*------------------------------------*\
    #HERO SECTION
\*------------------------------------*/
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--hero-text-color);
    background-color: var(--background-color);
}

.hero-background-animation {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    z-index: -2;
}
.hero-background-animation::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--hero-overlay-color);
    transition: background-color var(--transition-speed) ease;
    z-index: -1;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--container-padding);
    margin-left: auto;
    margin-right: auto;
}

.hero-headline {
    color: var(--hero-text-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-subheadline {
    color: var(--hero-text-color);
    opacity: 0.9;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: none; /* Allow centering */
}

/*------------------------------------*\
    #BUTTONS (Standardized Hover/Focus)
\*------------------------------------*/
.btn { display: inline-block; padding: 0.8rem 1.8rem; font-family: var(--font-headings); font-weight: 700; text-align: center; text-decoration: none; border-radius: var(--border-radius); cursor: pointer; transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; border: 2px solid transparent; min-height: 48px; min-width: 48px; line-height: 1.5; vertical-align: middle; }
.btn:hover, .btn:focus { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none !important; outline: none; }
.btn-primary { background-color: var(--primary-color); color: var(--btn-primary-text); border-color: var(--primary-color); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-bg); color: var(--btn-primary-text); }
.btn-secondary { background-color: var(--secondary-color); color: var(--btn-secondary-text); border-color: var(--secondary-color); }
.btn-secondary:hover, .btn-secondary:focus { background-color: var(--btn-secondary-hover-bg); border-color: var(--btn-secondary-hover-bg); color: var(--btn-secondary-text); }
.btn-outline { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover, .btn-outline:focus { background-color: var(--primary-color); color: var(--btn-outline-hover-text); border-color: var(--primary-color); }
.button-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; justify-content: center; }

/*------------------------------------*\
    #PRODUCT SECTION & CARDS
\*------------------------------------*/
.product-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.product-card { background-color: var(--surface-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease; display: flex; flex-direction: column; text-align: center; }
.product-card:hover, .product-card:focus-within { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.product-card-image-wrapper { position: relative; overflow: hidden; }
.product-card-image { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s ease; display: block; }
.product-card:hover .product-card-image { transform: scale(1.05); }
.product-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-card-title { margin-bottom: 0.5rem; font-size: 1.5rem; }
.product-card-description { margin-bottom: 1.5rem; opacity: 0.9; max-width: none; margin-left: auto; margin-right: auto; }

/*------------------------------------*\
    #HOW IT WORKS / DIAGRAM SECTION
\*------------------------------------*/
.how-it-works-visual { max-width: 700px; margin: 2rem auto; text-align: center; }
.how-it-works-visual img, .how-it-works-visual svg { border-radius: var(--border-radius); box-shadow: var(--shadow-md); margin-left: auto; margin-right: auto; }
.how-it-works-visual + p { text-align: center; margin-left: auto; margin-right: auto; }

/*------------------------------------*\
    #ABOUT SECTION
\*------------------------------------*/
.about-container { display: grid; gap: 2rem; align-items: center; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-md); width: 100%; max-width: 450px; margin: 0 auto; }
.about-content { text-align: left; }
.about-content .section-title, .about-content .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; }
.about-content p { max-width: 65ch; }

/*------------------------------------*\
    #ABOUT SECTION CAROUSEL
\*------------------------------------*/
.carousel-container {
    position: relative; /* Crucial for absolute positioning of images */
    overflow: hidden; /* Hide images outside the container */
    border-radius: var(--border-radius); /* Keep existing rounded corners */
    box-shadow: var(--shadow-md); /* Keep existing shadow */
    /* Maintain aspect ratio based on original image dimensions (400x300) */
    aspect-ratio: 4 / 3;
    /* Ensure it takes up space */
    width: 100%;
    max-width: 450px; /* Match max-width from previous styles */
    margin: 0 auto; /* Center if needed */
    background-color: var(--surface-color); /* Background while images load */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container without distortion */
    display: block; /* Ensure block display */
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Inactive images are not interactive */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), /* Smooth fade */
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth scale/slide */
    will-change: opacity, transform; /* Optimize transitions */
    transform: scale(1.05); /* Start slightly zoomed in */
}

/* State for the image that was *just* active */
.carousel-image.previous {
    /* No special style needed for fade, but kept for potential other transitions */
    /* For a slide-out effect, you could add: transform: translateX(-100%); */
}

/* State for the *currently* active/visible image */
.carousel-image.active {
    opacity: 1; /* Make it visible */
    z-index: 2; /* Ensure it's on top */
    pointer-events: auto; /* Make the active image clickable */
    cursor: pointer; /* Show pointer cursor */
    transform: scale(1); /* Scale back to normal size */
}

/* Slightly more advanced transition: Fade + Subtle Scale */
/* (Already incorporated above with transform) */

/* Alternative Transition Idea (Slide):
   .carousel-image {
       transform: translateX(100%); // Start off-screen right
       opacity: 1; // Keep opacity 1 for slide
       transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
   }
   .carousel-image.previous {
       transform: translateX(-100%); // Slide out left
       z-index: 1;
   }
   .carousel-image.active {
       transform: translateX(0); // Slide into view
       z-index: 2;
   }
*/

/* Ensure the container maintains height even before JS loads */
.about-image { /* Target the original class too for consistency */
    min-height: 200px; /* Adjust as needed */
}

/*------------------------------------*\
    #PRODUCT DETAIL PAGES
\*------------------------------------*/
.product-hero { background: linear-gradient(135deg, var(--surface-color), color-mix(in srgb, var(--surface-color) 80%, var(--background-color))); text-align: center; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.product-detail-title { color: var(--primary-color); }
.tagline { font-size: 1.25rem; font-style: italic; color: var(--accent-color); margin-bottom: 0; }
.product-hero .tagline { max-width: none; margin-left: auto; margin-right: auto; }
.product-detail-grid { display: grid; gap: 3rem; align-items: start; }
.product-detail-media { /* Handled by video wrapper or product-image */ }
.product-image { border-radius: var(--border-radius); box-shadow: var(--shadow-md); display: block; margin-left: auto; margin-right: auto; }
.product-detail-info { text-align: left; }
.product-detail-info h2 { text-align: left; font-size: 1.8rem; margin-top: 0; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.product-detail-info h3 { text-align: left; font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--secondary-color); }
.light-mode .product-detail-info h3 { color: var(--color-primary-light); }
.product-detail-info ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; padding-left: 0.5rem; text-align: left; }
.product-detail-info ul li { margin-bottom: 0.75rem; }
.product-detail-info ul li::marker { color: var(--accent-color); }
.pricing-info { background-color: color-mix(in srgb, var(--surface-color) 95%, var(--background-color)); padding: 1.5rem; border-radius: var(--border-radius); margin: 1.5rem 0; border: 1px solid var(--border-color); transition: background-color var(--transition-speed) ease; text-align: left; }
.pricing-info .price { font-weight: 700; font-size: 1.5rem; color: var(--primary-color); display: inline-block; margin-right: 0.5rem; }
.pricing-info p { margin-bottom: 0.5rem; max-width: none; }
.pricing-info p:last-child { margin-bottom: 0; }
.purchase-btn { margin-top: 1.5rem; display: block; margin-left: auto; margin-right: auto; width: fit-content; padding: 1rem 2rem; font-size: 1.1rem; }
.product-specs { text-align: center; }
/* Target specific placeholder div if possible, otherwise rely on parent text-align */
.product-specs .animate-on-scroll > p { text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
.specs-list { list-style: none; padding: 0; max-width: 600px; margin: 0 auto; text-align: left; }
.specs-list li { padding: 0.75rem 0; border-bottom: 1px dashed var(--border-color); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.specs-list li:last-child { border-bottom: none; }
.specs-list li strong { color: var(--primary-color); margin-right: 0.5em;}

/*------------------------------------*\
    #FAQ SECTION
\*------------------------------------*/
.faq-container { max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-list details { background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: 1rem; transition: background-color var(--transition-speed) ease; }
.faq-list details[open] { background-color: color-mix(in srgb, var(--surface-color) 95%, var(--background-color)); }
.faq-list summary { padding: 1rem 1.5rem; cursor: pointer; font-weight: 700; font-family: var(--font-headings); font-size: 1.1rem; list-style: none; position: relative; color: var(--primary-color); display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.5rem; transition: transform var(--transition-speed) ease; color: var(--accent-color); line-height: 1; flex-shrink: 0; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list dt { display: inline; font-weight: 700;}
.faq-list dd { padding: 0 1.5rem 1.5rem 1.5rem; margin-left: 0; border-top: 1px dashed var(--border-color); margin-top: 1rem; text-align: left; }

/*------------------------------------*\
    #RELATED PRODUCTS
\*------------------------------------*/
.related-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.related-product-card { background-color: var(--surface-color); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease; height: 100%; display: flex; flex-direction: column; text-align: left; }
.related-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.related-product-card img { width: auto; max-width: 100%; height: 100px; object-fit: contain; border-radius: 4px; margin-bottom: 1rem; display: block; align-self: flex-start; flex-shrink: 0; }
.related-product-text { display: flex; flex-direction: column; flex-grow: 1; }
.related-product-card h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.related-product-card p { font-size: 0.9rem; color: var(--text-color); opacity: 0.8; margin-bottom: 1rem; flex-grow: 1; max-width: none; }
.related-product-card span { font-weight: 700; color: var(--accent-color); font-size: 0.9rem; display: inline-block; margin-top: auto; }

/*------------------------------------*\
    #FOOTER
\*------------------------------------*/
.site-footer { background-color: var(--surface-color); color: var(--text-color); padding: 3rem 0 1.5rem 0; border-top: 1px solid var(--border-color); font-size: 0.9rem; transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease; }
.footer-container { display: grid; gap: 2rem; text-align: center; grid-template-columns: 1fr; } /* Mobile: 1 column, center */
.footer-heading { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 1rem; font-family: var(--font-headings); }
.social-links { list-style: none; padding: 0; display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.social-links li { line-height: 0; }
.social-links a { color: var(--text-color); display: inline-flex; align-items: center; justify-content: center; transition: color var(--transition-speed) ease; }
.social-icon { height: 24px; fill: currentColor; transition: transform var(--transition-speed) ease; display: block; }
.social-links a:hover, .social-links a:focus { color: var(--accent-color); outline: none; }
.social-links a:hover .social-icon, .social-links a:focus .social-icon { transform: scale(1.2); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-color); opacity: 0.8; }
.footer-links a:hover, .footer-links a:focus { color: var(--accent-color); opacity: 1; text-decoration: none !important; outline: none; }
.footer-info { margin-top: 1rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.footer-info p { margin-bottom: 0.5rem; opacity: 0.7; font-size: 0.85rem; max-width: none; }
.footer-info p:last-child { margin-bottom: 0; }

/*------------------------------------*\
    #ANIMATIONS & UTILITIES
\*------------------------------------*/
.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; will-change: opacity, transform; }
.fade-in { transform: translateY(20px); }
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/*------------------------------------*\
    #VIDEO EMBED STYLES (Simplified Visibility)
\*------------------------------------*/
.video-embed-wrapper { position: relative; width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; border-radius: var(--border-radius); overflow: hidden; background-color: #000; aspect-ratio: 600 / 400; }
.video-thumbnail-container { position: absolute; inset: 0; cursor: pointer; background-color: var(--surface-color); display: block; z-index: 2; }
.video-thumbnail-container:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.video-thumbnail-container img.video-thumbnail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--border-radius); box-shadow: none; }
.play-button-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.3); opacity: 1; transition: background-color 0.2s ease, opacity 0.2s ease; pointer-events: none; }
.play-button-overlay svg { width: 68px; height: 48px; filter: drop-shadow(0 1px 5px rgba(0,0,0,0.5)); opacity: 0.9; transition: transform 0.2s ease, opacity 0.2s ease; }
.video-thumbnail-container:hover .play-button-overlay { background-color: rgba(0, 0, 0, 0.1); }
.video-thumbnail-container:hover .play-button-overlay svg { opacity: 1; transform: scale(1.1); }
.video-iframe-container { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.video-iframe-container iframe.youtube-iframe { display: block; width: 100%; height: 100%; border: 0; }

/*------------------------------------*\
    #MEDIA QUERIES (Enhancements for larger screens)
\*------------------------------------*/

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* --- Header --- */
    .header-container { justify-content: space-between; position: static; /* Revert relative positioning */ }
    /* Reset absolute positioning for logo */
    .logo-link { position: static; transform: none; flex-grow: 0; order: 1;}
    /* Reset order for desktop */
    .main-nav { order: 2; flex-grow: 1; margin: 0 1rem; text-align: center; position: relative; z-index: auto; }
    .theme-toggle { order: 3; margin-left: 1rem; position: relative; z-index: auto; }

    .nav-toggle { display: none; }
    .nav-list { display: flex; justify-content: center; align-items: center; position: static; background-color: transparent; width: auto; box-shadow: none; padding: 0; border: none; animation: none; }
    .nav-list li + li { margin-left: 0.5rem; }
    .nav-link { padding: 0.5rem 1rem; }

    /* --- Product Cards --- */
    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-card { text-align: left; }
    .product-card-image-wrapper { margin-left: 0; margin-right: 0; }
    .product-card-image { margin-left: 0; margin-right: 0; }
    .product-card-description { margin-left: 0; margin-right: 0; max-width: 65ch; }
    .product-card .button-group { justify-content: flex-start; }

    /* --- About --- */
    .about-container { grid-template-columns: repeat(2, 1fr); }
    .about-image { display: flex; justify-content: center; align-items: center; }

    /* --- Product Detail --- */
    .product-detail-grid { grid-template-columns: 1fr 1fr; }
    .purchase-btn { width: auto; display: inline-block; margin-left: 0; margin-right: 0; }

    /* --- Related Products - Side-by-Side --- */
     .related-product-card { flex-direction: row; align-items: flex-start; /* Align top */ gap: 1.5rem; text-align: left; }
    .related-product-card img { height: 80px; width: 120px; margin-bottom: 0; flex-shrink: 0; align-self: center; /* Re-center vertically */ }
    .related-product-text { align-self: stretch; }

    /* --- Footer --- */
     .footer-container {
         grid-template-columns: auto 1fr auto; /* Social | Links (flexible) | Info */
         text-align: left;
         align-items: start;
         gap: 1rem;
     }
     .footer-social { grid-column: 1 / 2; text-align: left; }
     .social-links { justify-content: flex-start; }

     .footer-links {
         grid-column: 2 / 3;
         justify-self: end; /* Align the grid cell right */
         text-align: right; /* Align text inside right */
     }

      .footer-info {
          grid-column: 1 / -1; /* Span all columns */
          text-align: center; /* Center text */
          border-top: 1px solid var(--border-color); /* Add border back */
          padding-top: 1.5rem; /* Add padding back */
          margin-top: 1.5rem; /* Add margin back */
     }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    :root { --container-padding: 1.5rem; }
    .product-grid { gap: 2.5rem; }
    .about-container { gap: 4rem; }
    .purchase-btn { padding: 1rem 2.5rem; font-size: 1.2rem;}
    .main-nav { margin: 0 2rem; }
    .nav-list li + li { margin-left: 1rem; }
    .footer-container { gap: 2rem; }
}

/*------------------------------------*\
    #COMING SOON MESSAGE
\*------------------------------------*/
:root {
    /* Add theme variables for the overlay */
    --coming-soon-overlay-bg-light: rgba(245, 232, 216, 0.6); /* Semi-transparent light background */
    --coming-soon-overlay-bg-dark: rgba(18, 18, 18, 0.7);   /* Semi-transparent dark background */

    /* Assign default (dark) */
    --coming-soon-overlay-bg: var(--coming-soon-overlay-bg-dark);
}

.light-mode {
    /* Assign light */
    --coming-soon-overlay-bg: var(--coming-soon-overlay-bg-light);
}

.coming-soon-overlay {
    position: fixed;
    inset: 0; /* top, right, bottom, left = 0 */
    background-color: var(--coming-soon-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's on top */
    cursor: pointer; /* Indicate the overlay is clickable */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s, background-color var(--transition-speed) ease;
    backdrop-filter: blur(3px); /* Optional: Adds a nice blur effect */
    -webkit-backdrop-filter: blur(3px);
}

.coming-soon-message {
    background-color: var(--surface-color); /* Use themed surface color */
    color: var(--text-color); /* Use themed text color */
    padding: clamp(1.5rem, 5vw, 2.5rem) clamp(2rem, 7vw, 4rem);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: clamp(1.1rem, 4vw, 1.5rem); /* Responsive font size */
    font-weight: 700;
    font-family: var(--font-headings);
    cursor: default; /* Message box itself isn't the primary click target */
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease 0.1s, /* Fade in slightly after transform starts */
                background-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
    will-change: transform, opacity;
    /* Prevent inheriting pointer cursor from overlay */
    pointer-events: auto; /* Allow clicks *on* the message box */
}

/* Visible State */
.coming-soon-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Override hidden transition delay */
    /* Ensure message box gets pointer events ONLY when visible */
    pointer-events: auto;
}

.coming-soon-overlay.is-visible .coming-soon-message {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Hidden State (Managed by JS adding/removing .is-visible) */
.coming-soon-overlay.is-hidden {
    pointer-events: none; /* Disable clicks when hidden */
}

/* Optional: Style the message text specifically if needed */
#coming-soon-message-text {
    margin: 0; /* Remove default paragraph margin */
    color: var(--primary-color); /* Make text use primary color for emphasis */
    transition: color var(--transition-speed) ease;
}

/* Ensure button styles apply correctly */
.btn {
    /* Your existing .btn styles should cover buttons */
    /* If purchase buttons look wrong, ensure base .btn styles aren't specific to 'a' tags */
}
.btn-secondary {
     /* Your existing .btn-secondary styles should cover buttons */
}

/*------------------------------------*\
    #CUSTOM BENCHMARK CHART STYLES
\*------------------------------------*/
.custom-chart-container {
    --chart-bg: var(--surface-color);
    --chart-text: var(--text-color);
    --chart-grid-color: color-mix(in srgb, var(--border-color) 50%, transparent);
    --chart-bar-5090-bg: var(--color-primary-dark);
    --chart-bar-5090-hover-bg: #c0d0ff;
    --chart-bar-4090-bg: var(--color-secondary-dark);
    --chart-bar-4090-hover-bg: #ffe0b3;

    position: relative;
    background-color: var(--chart-bg);
    padding: 1.5rem 1rem 1rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 2rem auto;
    max-width: 95%;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    font-family: var(--font-primary);
    font-size: 12px;
    min-height: 500px; /* Maintain overall chart container min-height */
    display: flex;
    flex-direction: column;
}

.light-mode .custom-chart-container {
    --chart-bar-5090-bg: var(--color-primary-light);
    --chart-bar-5090-hover-bg: #b89c7a;
    --chart-bar-4090-bg: var(--color-secondary-light);
    --chart-bar-4090-hover-bg: #6c5f5f;
}

.chart-title {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--chart-text);
    opacity: 0.8;
    transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.chart-area {
    display: flex;
    flex-grow: 1;
    /* min-height: 350px; */ /* Let content define height more naturally */
}

.chart-y-axis {
    flex: 0 0 auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    /* justify-content: REMOVED - Height set by JS */
    text-align: right;
    border-right: 1px solid var(--border-color);
    transition: border-color var(--transition-speed) ease;
    min-width: 100px;
}

.chart-y-axis-label {
    /* flex: 1; */ /* <-- REMOVED: Height set by JS */
    height: var(--chart-item-height, 30px); /* <-- ADDED: Default height, JS overrides */
    display: flex;
    align-items: center; /* Vertically center text */
    justify-content: flex-end; /* Keep text right-aligned */
    color: var(--chart-text);
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    opacity: 0.9;
    transition: color var(--transition-speed) ease;
    /* border-bottom: REMOVED */
    /* margin: REMOVED */
    box-sizing: border-box; /* Include padding/border in height calculation */
}

/* Wrapper for plot area and x-axis */
.chart-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 10px;
}

.chart-plot-area {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    /* justify-content: REMOVED - Height set by JS */
    overflow: hidden;
    /* min-height: REMOVED */
}

.chart-grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    z-index: 0;
}

.chart-grid-line {
    width: 1px;
    height: 100%;
    background-color: var(--chart-grid-color);
    transition: background-color var(--transition-speed) ease;
    position: absolute;
    top: 0;
}

.chart-bar-group {
    /* flex: 1; */ /* <-- REMOVED: Height set by JS */
    height: var(--chart-item-height, 30px); /* <-- ADDED: Default height, JS overrides */
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
    cursor: default;
    /* border-bottom: REMOVED */
    /* margin: REMOVED */
    box-sizing: border-box; /* Include padding/border in height calculation */
}

.chart-bar {
    height: 60%; /* Increased height within the group for better visual */
    margin-right: 2px;
    border-radius: 2px;
    transition: background-color 0.15s ease;
    will-change: width;
    flex-shrink: 0;
    background-color: grey;
    min-width: 2px;
}

.chart-bar.rtx5090 { background-color: var(--chart-bar-5090-bg); }
.chart-bar.rtx4090 { background-color: var(--chart-bar-4090-bg); }

.chart-bar-group:hover .chart-bar.rtx5090 { background-color: var(--chart-bar-5090-hover-bg); }
.chart-bar-group:hover .chart-bar.rtx4090 { background-color: var(--chart-bar-4090-hover-bg); }

.chart-x-axis {
    display: flex;
    margin-top: 5px;
    border-top: 1px solid var(--border-color);
    padding-top: 5px;
    transition: border-color var(--transition-speed) ease;
    height: 20px;
    position: relative;
}

.chart-x-axis-tick {
    color: var(--chart-text);
    font-size: 10px;
    transition: color var(--transition-speed) ease;
    opacity: 0.8;
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
}
.chart-x-axis-tick.tick-zero {
    transform: translateX(0%);
}
.chart-x-axis-tick.tick-last {
     transform: translateX(-100%);
}

.chart-legend {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9em;
    color: var(--chart-text);
    transition: color var(--transition-speed) ease;
}

.legend-item { margin: 0 10px; }
.legend-color { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.legend-color.rtx5090 { background-color: var(--chart-bar-5090-bg); }
.legend-color.rtx4090 { background-color: var(--chart-bar-4090-bg); }

/* Tooltip Styling (No changes needed here) */
.chart-tooltip {
    position: absolute;
    background-color: color-mix(in srgb, var(--background-color) 50%, transparent);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s, background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    border: 1px solid color-mix(in srgb, var(--text-color) 30%, transparent);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.chart-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.tooltip-title { font-weight: bold; margin-bottom: 4px; display: block; border-bottom: 1px solid color-mix(in srgb, var(--text-color) 30%, transparent); padding-bottom: 3px; }
.tooltip-line { display: block; margin-bottom: 2px; }
.tooltip-line:last-child { margin-bottom: 0; }
.tooltip-color { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.tooltip-footer { margin-top: 4px; display: block; font-style: italic; opacity: 0.9; border-top: 1px dashed color-mix(in srgb, var(--text-color) 30%, transparent); padding-top: 3px; }


/*------------------------------------*\
    #CUSTOM SWARM ANIMATION STYLES
\*------------------------------------*/

/* Add under #PRODUCT DETAIL PAGES or a new #ANIMATION section */
.product-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px; /* Matches original video width */
    padding-top: 66.67%; /* 3:2 aspect ratio (400/600 = 0.6667) */
    margin: 0 auto; /* Center the wrapper */
}

.product-media-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Remove default inline spacing */
    cursor: crosshair; /* Indicate interactivity */
}

/*------------------------------------*\
    #CUSTOM NEURALNET COMMAND EFFECT ANIMATION STYLES
\*------------------------------------*/

/* Neural Network Command Effect Styles */
#kaidros-animation-container {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    background-color: var(--background-color);
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

#neuralnet-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 15px;
    color: var(--text-color);
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif; /* Match your site's font */
}

:root {
    --background-color: #ffffff; /* Light mode */
    --text-color: #333333;      /* Light mode */
    --border-radius: 8px;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --background-color: #1a1a1a; /* Dark mode */
    --text-color: #ffffff;       /* Dark mode */
}

/*------------------------------------*\
    #CONSISTANT MEDIA CONTAINER STYLING
\*------------------------------------*/

.media-container {
    border-radius: var(--border-radius); /* Matches index.html's 8px */
    box-shadow: var(--shadow-md);        /* Matches index.html's shadow */
    overflow: hidden;                    /* Clips content to rounded corners */
}