/**
 * XDRIP Solutions - Consolidated Stylesheet
 * Based on XDRIP Digital Management LLC Brand Manual v5.0
 *
 * @version 1.0.0
 * @copyright 2025 XDRIP Digital Management LLC
 */

/* ================================================
   CSS VARIABLES (Design Tokens)
================================================ */
:root {
    /* Primary Brand Colors */
    --xdrip-blue: #0271FC;
    --xdrip-blue-light: #4A9DFF;
    --xdrip-blue-dark: #0258C7;
    --xdrip-blue-glow: rgba(2, 113, 252, 0.3);
    --xdrip-blue-subtle: rgba(2, 113, 252, 0.1);

    /* Background Colors */
    --bg-primary: #141414;
    --bg-secondary: #0A0A0A;
    --bg-card: #262628;
    --bg-card-hover: #2a2a2c;
    --frozen-navy: #012551;
    --frozen-navy-light: rgba(1, 37, 81, 0.3);

    /* Text Colors */
    --text-primary: #F9F9F9;
    --text-secondary: #EBF4FF;
    --text-muted: #C7D5E0;
    --text-accent: #AED2FE;
    --text-dim: #6D7D92;

    /* Product Accent Colors */
    --color-xcoldpro: #0AA4FF;
    --color-xecho: #8B5CF6;
    --color-trace: #D4AF37;
    --color-forge: #CD7F32;
    --color-xdripia: #9333EA;

    /* UI State Colors */
    --color-success: #50FA7B;
    --color-warning: #FFB224;
    --color-error: #FF6B6B;
    --color-info: #0AA4FF;

    /* Glassmorphism */
    --glass-bg: rgba(38, 38, 40, 0.75);
    --glass-bg-light: rgba(38, 38, 40, 0.5);
    --glass-border: rgba(2, 113, 252, 0.25);
    --glass-border-subtle: rgba(2, 113, 252, 0.15);
    --glass-blur: 16px;
    --glass-blur-heavy: 20px;

    /* Spacing (8px base) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
    --space-xxl: 80px;
    --space-section: 120px;

    /* Typography */
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Saira', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Font weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.8;

    /* Letter spacing */
    --tracking-tighter: -0.02em;
    --tracking-tight: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;
    --tracking-widest: 0.15em;

    /* Borders & Radius */
    --border-width: 1px;
    --border-color: rgba(2, 113, 252, 0.2);
    --border-color-hover: rgba(2, 113, 252, 0.4);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --glow-blue: 0 0 20px rgba(2, 113, 252, 0.4);
    --glow-blue-intense: 0 0 30px rgba(2, 113, 252, 0.6);
    --glow-blue-subtle: 0 0 10px rgba(2, 113, 252, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    --header-height: 80px;
    --header-height-mobile: 70px;
}

/* ================================================
   CSS RESET
================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

ul[role='list'], ol[role='list'] {
    list-style: none;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--xdrip-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
   TYPOGRAPHY
================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(var(--text-5xl), 6vw, var(--text-7xl));
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tighter);
    line-height: 0.95;
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--xdrip-blue);
}

h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.text-accent, .tagline {
    font-family: var(--font-accent);
    font-weight: var(--font-medium);
    font-style: italic;
    color: var(--text-accent);
}

code, pre, .text-mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

code {
    padding: 0.2em 0.4em;
    background: var(--glass-bg-light);
    border-radius: var(--radius-sm);
    color: var(--xdrip-blue);
}

a {
    color: var(--xdrip-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--xdrip-blue-light);
}

.label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--xdrip-blue);
}

.section-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(2, 113, 252, 0.6);
}

/* Text utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--xdrip-blue); }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: var(--font-bold); }

/* ================================================
   LAYOUT - CONTAINER & GRID
================================================ */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
}

.container--2xl {
    max-width: var(--container-2xl);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(1, 1fr); }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
.grid--4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.flex { display: flex; }
.flex--wrap { flex-wrap: wrap; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { justify-content: space-between; }
.flex--column { flex-direction: column; }
.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ================================================
   HEADER
================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-mobile);
    z-index: var(--z-fixed);
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid var(--glass-border-subtle);
    transition: all var(--transition-smooth);
}

@supports (backdrop-filter: blur(16px)) {
    .site-header {
        background: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

@media (min-width: 1024px) {
    .site-header {
        height: var(--header-height);
    }
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .site-header__container {
        padding: 0 var(--space-lg);
    }
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: calc(var(--z-fixed) + 10);
}

.site-header__logo-img {
    height: 40px;
    width: auto;
}

@media (min-width: 1024px) {
    .site-header__logo-img {
        height: 48px;
    }
}

.site-header__logo-text {
    display: none;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

@media (min-width: 640px) {
    .site-header__logo-text {
        display: block;
    }
}

.site-header__logo-text span {
    font-weight: var(--font-light);
    color: var(--text-muted);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-header__cta {
    display: none;
}

@media (min-width: 1024px) {
    .site-header__cta {
        display: inline-flex;
    }
}

.site-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: calc(var(--z-fixed) + 10);
    transition: all var(--transition-fast);
}

.site-header__menu-toggle:hover {
    border-color: var(--xdrip-blue);
}

@media (min-width: 1024px) {
    .site-header__menu-toggle {
        display: none;
    }
}

/* ================================================
   NAVIGATION
================================================ */
.site-nav {
    display: none;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
        align-items: center;
    }
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.site-nav__link {
    display: block;
    padding: var(--space-xs) 0;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    transition: color var(--transition-fast);
    position: relative;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--xdrip-blue);
    transition: width var(--transition-smooth);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--text-primary);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__list {
    list-style: none;
    text-align: center;
}

.mobile-nav__item {
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.mobile-nav.is-open .mobile-nav__item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav__item:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav__item:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav__item:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__item:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.is-open .mobile-nav__item:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav__link {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
    color: var(--xdrip-blue);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: var(--space-lg);
}

.lang-switcher__btn {
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-switcher__btn:hover {
    color: var(--text-primary);
}

.lang-switcher__btn.is-active {
    color: var(--xdrip-blue);
    border-color: var(--xdrip-blue);
}

/* Hamburger */
.hamburger {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-smooth);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.hamburger.is-active {
    background: transparent;
}

.hamburger.is-active::before {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.is-active::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* ================================================
   BUTTONS
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: 1;
    border-radius: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--xdrip-blue);
    color: var(--text-primary);
    border-color: var(--xdrip-blue);
}

.btn--primary:hover {
    background: var(--xdrip-blue-dark);
    border-color: var(--xdrip-blue-dark);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(2, 113, 252, 0.4);
}

.btn--ghost:hover {
    background: rgba(2, 113, 252, 0.1);
    border-color: var(--xdrip-blue);
    color: var(--xdrip-blue-light);
}

.btn--sm {
    padding: 10px 20px;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 18px 40px;
    font-size: var(--text-base);
}

.btn--xl {
    padding: 22px 48px;
    font-size: var(--text-lg);
}

.btn--glow {
    box-shadow: var(--glow-blue-subtle);
}

.btn--glow:hover {
    box-shadow: var(--glow-blue);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================================================
   CARDS
================================================ */
.service-card {
    padding: 35px 30px;
    border: 1px solid rgba(2, 113, 252, 0.2);
    background: linear-gradient(180deg, rgba(2, 113, 252, 0.05) 0%, transparent 100%);
    text-align: center;
    transition: all var(--transition-smooth);
}

.service-card:hover {
    border-color: rgba(2, 113, 252, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, rgba(2, 113, 252, 0.2), rgba(2, 113, 252, 0.05));
    border: 1px solid rgba(2, 113, 252, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--xdrip-blue);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.service-card__description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--xdrip-blue);
    transition: all var(--transition-fast);
}

.service-card__link:hover {
    color: var(--xdrip-blue-light);
    gap: var(--space-sm);
}

/* Product Card */
.product-card {
    padding: var(--space-lg);
    border: 1px solid var(--glass-border-subtle);
    background: var(--glass-bg-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--xdrip-blue), transparent);
}

.product-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
}

.product-card__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.product-card__tagline {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--xdrip-blue);
    margin-bottom: var(--space-sm);
}

.product-card__description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.product-tag {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: var(--font-semibold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    background: var(--xdrip-blue-subtle);
    border: 1px solid rgba(2, 113, 252, 0.2);
    color: var(--xdrip-blue-light);
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--xdrip-blue);
    transition: all var(--transition-fast);
}

.product-card__link:hover {
    color: var(--xdrip-blue-light);
}

/* Value Card */
.value-card {
    padding: var(--space-lg);
    border: 1px solid rgba(2, 113, 252, 0.2);
    background: rgba(17, 17, 17, 0.3);
    transition: all var(--transition-smooth);
}

.value-card:hover {
    border-color: rgba(2, 113, 252, 0.4);
}

.value-card__number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--xdrip-blue);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.value-card__label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-xs);
}

.value-card__description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

/* Tech Item */
.tech-item {
    padding: var(--space-md) var(--space-sm);
    border: 1px solid var(--glass-border-subtle);
    background: rgba(17, 17, 17, 0.3);
    text-align: center;
    transition: all var(--transition-smooth);
}

.tech-item:hover {
    border-color: var(--glass-border);
    background: var(--glass-bg-light);
}

.tech-item__icon {
    font-size: 28px;
    margin-bottom: var(--space-xs);
    color: var(--xdrip-blue);
}

.tech-item__name {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ================================================
   GLASS EFFECTS
================================================ */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
}

@supports (backdrop-filter: blur(16px)) {
    .glass {
        background: rgba(38, 38, 40, 0.6);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.glass--light {
    background: var(--glass-bg-light);
    border-color: var(--glass-border-subtle);
}

.glow {
    box-shadow: var(--glow-blue-subtle);
}

.glow--hover:hover {
    box-shadow: var(--glow-blue);
}

/* ================================================
   SECTIONS
================================================ */
.section {
    padding: var(--space-xxl) 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-section) 0;
    }
}

.section--dark {
    background: var(--bg-secondary);
}

.section--gradient {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--frozen-navy-light) 100%);
}

.section__header {
    margin-bottom: var(--space-xl);
    max-width: 800px;
}

.section__header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section__label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(2, 113, 252, 0.6);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Section Ruler Marks (from Brand Manual) */
.section__ruler {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    overflow: hidden;
}

.section__ruler-mark {
    flex: 1;
    border-left: 1px solid rgba(2, 113, 252, 0.15);
    position: relative;
}

.section__ruler-mark:first-child {
    border-left: none;
}

/* Ruler with gradient fade effect */
.section__ruler--fade {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Animated ruler marks */
.section__ruler--animated .section__ruler-mark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--xdrip-blue), transparent);
    opacity: 0;
    animation: ruler-sweep 4s ease-in-out infinite;
}

.section__ruler--animated .section__ruler-mark:nth-child(1)::after { animation-delay: 0s; }
.section__ruler--animated .section__ruler-mark:nth-child(2)::after { animation-delay: 0.15s; }
.section__ruler--animated .section__ruler-mark:nth-child(3)::after { animation-delay: 0.3s; }
.section__ruler--animated .section__ruler-mark:nth-child(4)::after { animation-delay: 0.45s; }
.section__ruler--animated .section__ruler-mark:nth-child(5)::after { animation-delay: 0.6s; }
.section__ruler--animated .section__ruler-mark:nth-child(6)::after { animation-delay: 0.75s; }
.section__ruler--animated .section__ruler-mark:nth-child(7)::after { animation-delay: 0.9s; }
.section__ruler--animated .section__ruler-mark:nth-child(8)::after { animation-delay: 1.05s; }
.section__ruler--animated .section__ruler-mark:nth-child(9)::after { animation-delay: 1.2s; }
.section__ruler--animated .section__ruler-mark:nth-child(10)::after { animation-delay: 1.35s; }

@keyframes ruler-sweep {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Section with ruler needs top padding for spacing */
.section--with-ruler {
    padding-top: calc(var(--space-xxl) + 30px);
}

@media (min-width: 768px) {
    .section--with-ruler {
        padding-top: calc(var(--space-section) + 30px);
    }
}

/* ================================================
   HERO
================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-xxl) var(--space-md);
}

.hero__background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(20, 20, 20, 0.97) 0%, rgba(1, 37, 81, 0.3) 100%),
        radial-gradient(ellipse at center, rgba(2, 113, 252, 0.08) 0%, transparent 70%);
    z-index: -2;
}

.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(2, 113, 252, 0.15) 0%, transparent 60%);
    animation: hero-glow-pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes hero-glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Hero Video Background */
.hero--video {
    background: var(--bg-secondary);
    isolation: isolate;
}

.hero--video .hero__video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero--video .hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero--video .hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.55) 0%,
        rgba(27, 67, 126, 0.45) 40%,
        rgba(10, 10, 10, 0.6) 70%,
        rgba(10, 10, 10, 0.88) 100%
    );
    z-index: 2;
}

.hero--video .hero__glow {
    z-index: 3;
}

.hero--video .hero__content {
    z-index: 4;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero--video .hero__video {
        display: none;
    }
    .hero--video {
        background:
            linear-gradient(135deg, rgba(20, 20, 20, 0.97) 0%, rgba(1, 37, 81, 0.3) 100%),
            radial-gradient(ellipse at center, rgba(2, 113, 252, 0.08) 0%, transparent 70%);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Ensure hero content is always visible */
.hero__content > * {
    opacity: 1 !important;
    transform: none !important;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--xdrip-blue-subtle);
    border: 1px solid rgba(2, 113, 252, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--xdrip-blue-light);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    color: var(--xdrip-blue);
    text-shadow: 0 0 30px var(--xdrip-blue-glow);
}

.hero__subtitle {
    font-family: var(--font-accent);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: var(--leading-relaxed);
}

.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

/* ================================================
   CTA SECTION
================================================ */
.cta-section {
    position: relative;
    padding: var(--space-xxl) var(--space-md);
    overflow: hidden;
}

.cta-section__background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--frozen-navy) 0%, var(--bg-primary) 100%);
    z-index: -2;
}

.cta-section__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 113, 252, 0.2) 0%, transparent 60%);
    z-index: -1;
}

.cta-section__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.cta-section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: var(--leading-relaxed);
}

/* ================================================
   FORMS
================================================ */
.form__group {
    margin-bottom: var(--space-md);
}

.form__label {
    display: block;
    margin-bottom: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-secondary);
}

.form__label--required::after {
    content: ' *';
    color: var(--xdrip-blue);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--glass-border-subtle);
    transition: all var(--transition-fast);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-dim);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--xdrip-blue);
    box-shadow: 0 0 0 3px var(--xdrip-blue-subtle);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C7D5E0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
    line-height: var(--leading-relaxed);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .form__row--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form__status {
    padding: var(--space-md);
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    display: none;
}

.form__status.is-visible {
    display: block;
}

.form__status--success {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.form__status--error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

/* ================================================
   FOOTER
================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border-subtle);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.site-footer__container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .site-footer__container {
        padding: 0 var(--space-lg);
    }
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--glass-border-subtle);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
    }
}

/* Footer Brand */
.footer-brand {
    max-width: 320px;
}

@media (min-width: 640px) {
    .footer-brand {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.footer-brand__logo-img {
    height: 50px;
    width: auto;
}

.footer-brand__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.footer-brand__logo-text span {
    font-weight: var(--font-normal);
    color: var(--text-muted);
}

.footer-brand__tagline {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--xdrip-blue-light);
    margin-bottom: var(--space-sm);
}

.footer-brand__description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

/* Footer Navigation */
.footer-nav__title {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav__list li {
    margin-bottom: var(--space-sm);
}

.footer-nav__link {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-nav__link:hover {
    color: var(--xdrip-blue);
}

.footer-nav__external {
    font-size: var(--text-xs);
    opacity: 0.5;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social__link:hover {
    background: var(--xdrip-blue);
    border-color: var(--xdrip-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-email {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--xdrip-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-email:hover {
    color: var(--xdrip-blue-light);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-bottom__copyright {
    font-size: var(--text-xs);
    color: var(--text-dim);
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .footer-bottom__links {
        justify-content: flex-end;
    }
}

.footer-bottom__link {
    font-size: var(--text-xs);
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom__link:hover {
    color: var(--xdrip-blue);
}

.footer-bottom__divider {
    color: var(--text-dim);
    opacity: 0.5;
}

/* ================================================
   PRODUCTS CAROUSEL
================================================ */
.products-carousel {
    position: relative;
    margin-top: var(--space-xl);
}

.products-carousel__track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-sm) 0;
}

.products-carousel__track::-webkit-scrollbar {
    display: none;
}

.products-carousel .product-card {
    flex: 0 0 320px;
    min-width: 320px;
}

@media (min-width: 768px) {
    .products-carousel .product-card {
        flex: 0 0 380px;
        min-width: 380px;
    }
}

/* ================================================
   ANIMATIONS
================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* Fallback: show after 1s if JS doesn't add is-visible */
    animation: fallbackShow 0.6s ease 1s forwards;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* Cancel fallback when JS works */
}

@keyframes fallbackShow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero elements should be visible immediately */
.hero [data-animate] {
    animation-delay: 0.1s;
}
.hero [data-animate]:nth-child(2) {
    animation-delay: 0.2s;
}
.hero [data-animate]:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ================================================
   CONTACT PAGE STYLES
================================================ */

/* Contact Page Full Screen Background - Applied to entire page */
.page-contact {
    background-image: url('https://media.xdripia.com/assets/graphics/nyxor-sports-car.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Contact page hero is styled inline in contact.php */

/* Contact form section overlay for readability */
.contact-form-section {
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 38, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

.contact-form-section .container {
    position: relative;
    z-index: 1;
}

/* Utility */
.hidden { display: none !important; }
.block { display: block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
