/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-base: #010204;         /* Near-true-black for liquid glass contrast */
    --color-bg-elevated: #07090f;     /* Darker elevated surfaces */
    --color-bg-card: rgba(8, 12, 20, 0.55); /* Darker translucent glass base */
    
    --color-primary: #5ef0ff;         /* Accessible vibrant cyan */
    --color-primary-rgb: 94, 240, 255;
    --color-secondary: #8a7eff;       /* Premium Indigo/Violet */
    --color-secondary-rgb: 138, 126, 255;
    --color-warm: #ffb464;            /* Premium Warm Amber/Gold */
    --color-warm-rgb: 255, 180, 100;
    
    --color-text-primary: #f8fafc;    /* Near-white for high legibility */
    --color-text-secondary: #cbd5e1;  /* Soft grey/teal-grey for body (contrast 7.5:1+) */
    --color-text-muted: #94a3b8;      /* Label/Metadata contrast (passes 4.5:1) */
    --color-text-dark: #010204;       /* Dark text on bright backgrounds */

    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(94, 240, 255, 0.25);
    --color-border-active: rgba(138, 126, 255, 0.4);

    --color-error: #ff7b72;
    --color-success: #50e3c2;
    --color-warning: #ffb86c;

    /* Typography Fonts */
    --font-sans: 'Product Sans', 'Google Sans', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Layout Constants */
    --container-width: 1280px;
    --header-height: 60px;
    --header-top-offset: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

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

li {
    list-style: none;
}

/* ==========================================================================
   ACCESSIBILITY UTILITIES
   ========================================================================== */
/* Keyboard Skip Link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--color-primary);
    color: var(--color-text-dark);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 20px;
    outline: 3px solid var(--color-secondary);
}

/* Focused elements helper */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

/* Screen readers helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Font Sizes */
.hero-headline {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
    letter-spacing: -0.02em;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Monospace text */
.tech-badge,
.project-tag,
.badge-text,
.line-cmd,
.line-log,
.method-label {
    font-family: 'Ubuntu Mono', monospace;
}

/* ==========================================================================
   DYNAMIC GLASSMOPHISM & BACKGROUNDS
   ========================================================================== */
/* Mesh background */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--color-bg-base);
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.24;
    mix-blend-mode: screen;
    animation: float-around 25s infinite alternate ease-in-out;
    will-change: transform;
}

.orb-1 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, 
        rgba(94, 240, 255, 0.4) 0%, 
        rgba(94, 240, 255, 0.05) 25%, 
        rgba(138, 126, 255, 0.35) 45%, 
        rgba(138, 126, 255, 0.03) 60%, 
        rgba(255, 180, 100, 0.25) 75%, 
        transparent 90%);
    top: -20%;
    left: -20%;
}

.orb-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(138, 126, 255, 0.4) 0%, transparent 80%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 180, 100, 0.25) 0%, transparent 80%);
    top: 30%;
    left: 25%;
    animation-duration: 35s;
    animation-delay: -12s;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 4%) scale(1.08);
    }
    100% {
        transform: translate(-3%, -2%) scale(0.95);
    }
}

/* Custom Properties for Conic Gradient Border Travel */
@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 135deg;
}

@property --border-x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 25%;
}

@property --border-y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 15%;
}

/* Liquid Glass Cards */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    will-change: transform, box-shadow;
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle) at var(--border-x) var(--border-y),
        rgba(255, 255, 255, 0.45) 0%,              /* hotspot */
        rgba(255, 180, 100, 0.22) 12%,             /* warm amber */
        rgba(94, 240, 255, 0.25) 45%,              /* cool cyan */
        rgba(138, 126, 255, 0.12) 70%,             /* purple split */
        rgba(255, 255, 255, 0.02) 85%,             /* dark zone */
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    transition: 
        --border-angle var(--transition-medium),
        --border-x var(--transition-medium),
        --border-y var(--transition-medium);
}

/* Glass Depth Tiers */
.glass-surface {
    background: rgba(6, 8, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        -4px -4px 20px rgba(255, 180, 100, 0.02),
        4px 4px 20px rgba(94, 240, 255, 0.02),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-surface::after {
    /* Subtle standard card border */
    padding: 1px;
}

.glass-elevated {
    background: rgba(8, 12, 22, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        inset 0 1.5px 2px rgba(255, 255, 255, 0.12),
        -6px -6px 25px rgba(255, 180, 100, 0.04),
        6px 6px 25px rgba(94, 240, 255, 0.04),
        0 20px 45px rgba(0, 0, 0, 0.6);
}

.glass-elevated::after {
    padding: 1.25px;
    background: conic-gradient(
        from var(--border-angle) at var(--border-x) var(--border-y),
        rgba(255, 255, 255, 0.6) 0%,               /* brighter hotspot */
        rgba(255, 180, 100, 0.3) 15%,
        rgba(94, 240, 255, 0.35) 45%,
        rgba(138, 126, 255, 0.18) 70%,
        rgba(255, 255, 255, 0.03) 85%,
        rgba(255, 255, 255, 0.6) 100%
    );
}

.glass-elevated:hover {
    box-shadow: 
        inset 0 1.5px 3px rgba(255, 255, 255, 0.22),
        -10px -10px 35px rgba(255, 180, 100, 0.08),
        10px 10px 35px rgba(94, 240, 255, 0.12),
        0 25px 55px rgba(0, 0, 0, 0.7) !important;
}

.glass-floating {
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        -8px -8px 30px rgba(255, 180, 100, 0.06),
        8px 8px 30px rgba(138, 126, 255, 0.06),
        0 25px 60px rgba(0, 0, 0, 0.75);
}

.glass-floating::after {
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle) at var(--border-x) var(--border-y),
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 180, 100, 0.25) 15%,
        rgba(94, 240, 255, 0.25) 45%,
        rgba(138, 126, 255, 0.15) 70%,
        rgba(255, 255, 255, 0.02) 85%,
        rgba(255, 255, 255, 0.5) 100%
    );
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.18),
        -8px -8px 25px rgba(255, 180, 100, 0.06),
        8px 8px 25px rgba(94, 240, 255, 0.08),
        0 20px 45px rgba(0, 0, 0, 0.6);
}

.glass-card:hover::after {
    --border-angle: 185deg;
    --border-x: 75%;
    --border-y: 20%;
}

/* Specular reflection line */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Refraction layer (SVG displaced) */
.card-glass-refraction {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    filter: url(#liquid-glass-refraction);
    opacity: 0.4;
    background: inherit;
}

.glass-card > .card-content, 
.glass-card > .card-content-split {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.section-header {
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-top: var(--spacing-xs);
}

.highlight {
    color: var(--color-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    text-align: center;
    border: 1.5px solid transparent; /* Thickened (Issue 4) */
}

.btn-primary {
    background: linear-gradient(135deg, rgba(94, 240, 255, 0.22) 0%, rgba(138, 126, 255, 0.22) 100%);
    border-color: rgba(94, 240, 255, 0.65);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(94, 240, 255, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(94, 240, 255, 0.35) 0%, rgba(138, 126, 255, 0.35) 100%);
    border-color: rgba(94, 240, 255, 0.85);
    color: #ffffff;
    box-shadow: 0 0 35px rgba(94, 240, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.02);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   NAVIGATION — Floating Capsule Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: var(--header-top-offset);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    height: var(--header-height);
    border-radius: 100px;
    z-index: 100;

    /* Liquid glass treatment */
    background: rgba(4, 6, 10, 0.5);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: none;
    overflow: visible;

    /* Depth shadows */
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);

    transition:
        height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Conic gradient border ring (matching card system) */
.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from 135deg at 25% 50%,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 180, 100, 0.3) 12%,
        rgba(94, 240, 255, 0.35) 45%,
        rgba(138, 126, 255, 0.12) 70%,
        rgba(255, 255, 255, 0.02) 85%,
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Specular highlight */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Condensed state on scroll */
.site-header.scrolled {
    top: 10px;
    width: calc(100% - 64px);
    max-width: 960px;
    height: 52px;
    background: rgba(2, 3, 6, 0.82);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(94, 240, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.brand-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .brand-logo {
    height: 32px;
    width: 32px;
}

.brand-text {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .brand-text {
    font-size: 1.1rem;
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 6px;
}

/* Pill-style nav links with active state */
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(94, 240, 255, 0.06);
}

/* Active scroll-spy state */
.nav-link.active {
    color: var(--color-primary);
    background: rgba(94, 240, 255, 0.08);
    border-color: rgba(94, 240, 255, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* CTA button with glow pulse */
.nav-actions .btn {
    display: none;
}

.nav-actions .btn-primary {
    position: relative;
    background: linear-gradient(135deg, rgba(94, 240, 255, 0.28) 0%, rgba(138, 126, 255, 0.28) 100%);
    border-color: rgba(94, 240, 255, 0.7);
    padding: 7px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        0 0 20px rgba(94, 240, 255, 0.12),
        0 0 40px rgba(94, 240, 255, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    animation: cta-pulse 3s ease-in-out infinite;
}

.nav-actions .btn-primary:hover {
    animation: none;
    box-shadow:
        0 0 30px rgba(94, 240, 255, 0.3),
        0 0 60px rgba(94, 240, 255, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(94, 240, 255, 0.12), 0 0 40px rgba(94, 240, 255, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 0 25px rgba(94, 240, 255, 0.22), 0 0 50px rgba(94, 240, 255, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.15); }
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-toggle:hover {
    background: rgba(94, 240, 255, 0.08);
    border-color: rgba(94, 240, 255, 0.2);
}

.mobile-menu-toggle .icon-close {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* Animated Mobile Dropdown Nav */
.mobile-nav {
    display: block;
    position: absolute;
    top: calc(var(--header-height) + 10px);
    left: 50%;
    width: calc(100% - 16px);
    border-radius: 24px;

    /* Glass treatment */
    background: rgba(4, 6, 10, 0.92);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);

    /* Hidden by default with animation */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px) scale(0.97);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 99;
    padding: 24px;
}

/* Visible state */
.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: block;
    padding: 10px 16px;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link:hover {
    color: var(--color-primary);
    background: rgba(94, 240, 255, 0.06);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + var(--header-top-offset) + 5.5rem);
    padding-bottom: var(--spacing-xxl);
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero Centerpiece YL Logo (Issue 2) */
.hero-visual-center {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-float 6s ease-in-out infinite;
}

.hero-logo-large {
    width: 135px;
    height: 135px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 25px rgba(94, 240, 255, 0.25));
}

.hero-logo-glow {
    position: absolute;
    width: 185px;
    height: 185px;
    background: radial-gradient(circle, rgba(94, 240, 255, 0.22) 0%, rgba(138, 126, 255, 0.12) 45%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(15px);
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* Concentric Glow Rings (Principle 3) */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-ring-1 {
    width: 170px;
    height: 170px;
    top: 0;
    left: 0;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        rgba(255, 180, 100, 0.5) 0%,
        rgba(255, 180, 100, 0.05) 50%,
        rgba(255, 180, 100, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-rotate-clockwise 15s linear infinite;
}

.hero-ring-2 {
    width: 240px;
    height: 240px;
    top: -35px;
    left: -35px;
    padding: 1.5px;
    background: conic-gradient(
        from 120deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.4) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-rotate-counter 22s linear infinite;
}

.hero-ring-3 {
    width: 310px;
    height: 310px;
    top: -70px;
    left: -70px;
    padding: 2px;
    background: conic-gradient(
        from 240deg,
        rgba(94, 240, 255, 0.35) 0%,
        rgba(138, 126, 255, 0.15) 35%,
        rgba(94, 240, 255, 0.02) 70%,
        rgba(94, 240, 255, 0.35) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-rotate-clockwise 30s linear infinite;
}

@keyframes ring-rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ring-rotate-counter {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0% { transform: scale(0.92); opacity: 0.85; }
    100% { transform: scale(1.08); opacity: 1; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(94, 240, 255, 0.08);
    border: 1px solid rgba(94, 240, 255, 0.25);
    margin-bottom: 1.25rem; /* Tightened (Issue 3) */
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-subhead {
    max-width: 680px;
    color: var(--color-text-secondary);
    font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
    margin-top: 1.25rem; /* Tightened (Issue 3) */
    margin-bottom: 2rem; /* Tightened (Issue 3) */
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 400px;
}

/* ==========================================================================
   PORTFOLIO BENTO GRID SECTION
   ========================================================================== */
.projects-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    position: relative;
}

/* Gradient section divider */
.projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(94, 240, 255, 0.3) 20%,
        rgba(255, 180, 100, 0.4) 50%,
        rgba(138, 126, 255, 0.3) 80%,
        transparent 100%
    );
}

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

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bento-card .card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.project-status {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-shipped {
    background: rgba(80, 227, 194, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(80, 227, 194, 0.25);
}

.badge-beta {
    background: rgba(255, 184, 108, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(255, 184, 108, 0.25);
}

.badge-internal {
    background: rgba(138, 126, 255, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(138, 126, 255, 0.25);
}

.project-meta {
    display: flex;
    gap: var(--spacing-xs);
}

.project-tag {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.project-identity {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.project-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: var(--color-bg-base);
}

.project-icon-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138, 126, 255, 0.2) 0%, rgba(94, 240, 255, 0.2) 100%);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.project-one-liner {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.project-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tech-badge {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 3px 10px;
    border-radius: 100px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: #ffffff;
}

.arrow-icon {
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.project-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* Card Visuals (Onephrase Custom Section) */
.card-visual {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-onephrase {
    background: radial-gradient(circle at center, rgba(138, 126, 255, 0.08) 0%, rgba(2, 3, 6, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-automation {
    background: radial-gradient(circle at center, rgba(94, 240, 255, 0.06) 0%, rgba(2, 3, 6, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    height: auto;
    min-height: 240px; /* custom minimum height for mobile to fit terminal nicely */
}

.split-visual.visual-onephrase {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .visual-automation {
        height: auto;
    }
    
    .split-visual.visual-onephrase {
        height: auto;
        border: none;
        border-radius: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
}


/* Onephrase clean showcase (Issue 5) */
.onephrase-showcase-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.onephrase-glass-plate {
    background: rgba(8, 12, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 28px;
    padding: 16px;
    position: relative;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        -4px -4px 15px rgba(255, 180, 100, 0.04),
        4px 4px 15px rgba(138, 126, 255, 0.04),
        0 12px 36px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: transform var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onephrase-glass-plate::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from 135deg at 30% 20%,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 180, 100, 0.25) 15%,
        rgba(94, 240, 255, 0.25) 45%,
        rgba(138, 126, 255, 0.15) 75%,
        transparent 90%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.onephrase-showcase-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.onephrase-ambient-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(138, 126, 255, 0.25) 0%, transparent 70%);
    z-index: 1;
    filter: blur(15px);
}

.bento-card:hover .onephrase-glass-plate {
    transform: scale(1.06) rotate(2deg);
}

.visual-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover .visual-shine {
    animation: shimmer-slide 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer-slide {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Mouse Hover Shine Effect Helper (controlled by script.js) */
.shine-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(94, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen;
}

/* Split content layout for wide card */
.card-content-split {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    height: 100%;
}

.split-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.split-visual {
    width: 100%;
    display: flex;
    align-items: center;
}

/* Fake Code Terminal Styling */
.code-terminal {
    background: rgba(15, 18, 25, 0.9);
    border: 1.5px solid rgba(94, 240, 255, 0.25);
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.8), 
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(94, 240, 255, 0.05);
}

.terminal-header {
    background: rgba(20, 26, 40, 0.4);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-dot.red { background-color: var(--color-error); }
.terminal-dot.yellow { background-color: var(--color-warning); }
.terminal-dot.green { background-color: var(--color-success); }

.terminal-title {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: var(--spacing-xs);
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: var(--spacing-md);
    font-size: 0.8rem;
    line-height: 1.5;
}

.line-cmd {
    color: #e2e8f0;
    margin-bottom: var(--spacing-xs);
}

.prompt {
    color: var(--color-primary);
    font-weight: bold;
}

.line-log {
    color: #cbd5e1;
    margin-bottom: 4px;
}

.line-log.success {
    color: var(--color-success);
}

.line-log.highlight {
    color: var(--color-primary);
}

.blink {
    animation: cursor-blink 1s infinite steps(1);
    color: var(--color-primary);
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    position: relative;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(138, 126, 255, 0.3) 20%,
        rgba(94, 240, 255, 0.4) 50%,
        rgba(255, 180, 100, 0.3) 80%,
        transparent 100%
    );
}

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

.service-card {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.service-card .service-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
    position: relative;
    will-change: transform, box-shadow;
}

/* 3D half-sphere gradient background base */
.service-icon-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: all var(--transition-fast);
}

/* Floor shine pseudo-element */
.service-icon-wrapper::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 15%;
    width: 70%;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--icon-glow-color, rgba(94, 240, 255, 0.45)) 0%, transparent 80%);
    filter: blur(1.5px);
    pointer-events: none;
    z-index: -1;
    transition: all var(--transition-fast);
    opacity: 0.7;
}

/* Base icon symbol positioning to appear on top of gradient */
.service-icon-wrapper .material-symbols-outlined {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.service-icon-wrapper.icon-ios {
    --icon-glow-color: rgba(94, 240, 255, 0.45);
    color: var(--color-primary);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.6),
        0 4px 15px rgba(94, 240, 255, 0.08);
}

.service-icon-wrapper.icon-ios::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(94, 240, 255, 0.22) 0%,
        rgba(94, 240, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 1px solid rgba(94, 240, 255, 0.35);
}

.service-card:hover .service-icon-wrapper.icon-ios {
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.35),
        inset 0 -6px 12px rgba(0, 0, 0, 0.7),
        0 6px 20px rgba(94, 240, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
}

.service-card:hover .service-icon-wrapper.icon-ios::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(94, 240, 255, 0.35) 0%,
        rgba(94, 240, 255, 0.08) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    border-color: rgba(94, 240, 255, 0.65);
}

.service-card:hover .service-icon-wrapper.icon-ios::after {
    transform: scaleX(1.2);
    opacity: 1;
}

.service-icon-wrapper.icon-ai {
    --icon-glow-color: rgba(138, 126, 255, 0.45);
    color: var(--color-secondary);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.6),
        0 4px 15px rgba(138, 126, 255, 0.08);
}

.service-icon-wrapper.icon-ai::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(138, 126, 255, 0.22) 0%,
        rgba(138, 126, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 1px solid rgba(138, 126, 255, 0.35);
}

.service-card:hover .service-icon-wrapper.icon-ai {
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.35),
        inset 0 -6px 12px rgba(0, 0, 0, 0.7),
        0 6px 20px rgba(138, 126, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
}

.service-card:hover .service-icon-wrapper.icon-ai::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(138, 126, 255, 0.35) 0%,
        rgba(138, 126, 255, 0.08) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    border-color: rgba(138, 126, 255, 0.65);
}

.service-card:hover .service-icon-wrapper.icon-ai::after {
    transform: scaleX(1.2);
    opacity: 1;
}

.service-icon-wrapper.icon-automation {
    --icon-glow-color: rgba(80, 227, 194, 0.45);
    color: var(--color-success);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.6),
        0 4px 15px rgba(80, 227, 194, 0.08);
}

.service-icon-wrapper.icon-automation::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(80, 227, 194, 0.22) 0%,
        rgba(80, 227, 194, 0.05) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 1px solid rgba(80, 227, 194, 0.35);
}

.service-card:hover .service-icon-wrapper.icon-automation {
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.35),
        inset 0 -6px 12px rgba(0, 0, 0, 0.7),
        0 6px 20px rgba(80, 227, 194, 0.25);
    transform: translateY(-2px) scale(1.05);
}

.service-card:hover .service-icon-wrapper.icon-automation::before {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(80, 227, 194, 0.35) 0%,
        rgba(80, 227, 194, 0.08) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    border-color: rgba(80, 227, 194, 0.65);
}

.service-card:hover .service-icon-wrapper.icon-automation::after {
    transform: scaleX(1.2);
    opacity: 1;
}

.service-card .service-title {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xs);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.service-card:nth-child(2) .service-link {
    color: var(--color-secondary);
}

.service-card:nth-child(3) .service-link {
    color: var(--color-success);
}

.service-link:hover {
    color: #ffffff !important;
}

.service-arrow {
    font-size: 0.95rem;
    transition: transform var(--transition-fast);
}

.service-link:hover .service-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    border-top: none;
    border-bottom: none;
    background: radial-gradient(circle at 80% 50%, rgba(138, 126, 255, 0.04) 0%, transparent 60%);
    position: relative;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 180, 100, 0.3) 20%,
        rgba(138, 126, 255, 0.4) 50%,
        rgba(94, 240, 255, 0.3) 80%,
        transparent 100%
    );
}

.about-wrapper {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-info {
    flex: 1;
}

.about-title-main {
    font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
    margin-bottom: var(--spacing-md);
}

.about-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 650px;
}

.studio-values {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.value-item {
    display: flex;
    gap: var(--spacing-md);
}

.value-number {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.8;
    line-height: 1;
}

.value-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.value-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.about-stats-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    width: 100%;
}

.stat-card {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 140px;
}

.stat-num {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, #ffffff 0%, var(--color-warm) 40%, var(--color-primary) 70%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 8px rgba(94, 240, 255, 0.35))
        drop-shadow(0 0 20px rgba(138, 126, 255, 0.15));
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(94, 240, 255, 0.3) 20%,
        rgba(255, 180, 100, 0.4) 50%,
        rgba(138, 126, 255, 0.3) 80%,
        transparent 100%
    );
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.contact-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alternative-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-method .material-symbols-outlined {
    font-size: 28px;
    color: var(--color-primary);
    background: rgba(94, 240, 255, 0.08);
    border: 1px solid rgba(94, 240, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.method-link:hover {
    color: var(--color-primary);
}

.method-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-form-wrapper {
    padding: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.form-input {
    background: rgba(5, 7, 10, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(94, 240, 255, 0.15);
    outline: none;
}

/* Custom Select styling */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    cursor: pointer;
}

.custom-select-wrapper::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    pointer-events: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    margin-top: var(--spacing-sm);
    gap: var(--spacing-xs);
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.btn-submit:hover .btn-icon {
    transform: translate(2px, -2px);
}

.btn-submit {
    background: linear-gradient(135deg, rgba(94, 240, 255, 0.25) 0%, rgba(138, 126, 255, 0.25) 100%) !important;
    border-color: rgba(94, 240, 255, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(94, 240, 255, 0.15) !important;
    font-size: 1rem;
    padding: 0.95rem 2rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(94, 240, 255, 0.35) 0%, rgba(138, 126, 255, 0.35) 100%) !important;
    border-color: rgba(94, 240, 255, 0.9) !important;
    box-shadow: 0 6px 25px rgba(94, 240, 255, 0.25) !important;
}

/* Error States */
.form-input.invalid {
    border-color: var(--color-error);
}

.form-error-msg {
    color: var(--color-error);
    font-size: 0.8rem;
    display: none;
}

.form-input.invalid + .form-error-msg {
    display: block;
}

/* Success Alert */
.form-success-alert {
    background: rgba(80, 227, 194, 0.08);
    border: 1px solid rgba(80, 227, 194, 0.3);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    animation: slide-up var(--transition-medium);
}

.success-icon {
    color: var(--color-success);
    font-size: 28px;
}

.success-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.success-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    border-top: none;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    background: rgba(4, 6, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        0 -12px 40px rgba(0, 0, 0, 0.6);
}

/* Mirror the header's conic gradient border on footer top edge */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1.5px;
    background: conic-gradient(
        from 135deg at 75% 50%,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 180, 100, 0.3) 15%,
        rgba(94, 240, 255, 0.35) 45%,
        rgba(138, 126, 255, 0.15) 70%,
        transparent 85%,
        rgba(255, 255, 255, 0.45) 100%
    );
    pointer-events: none;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg) var(--spacing-xl);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.links-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: var(--spacing-md);
}

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

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link-small {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-link-small:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (min-width: 576px) {
    .hero-ctas {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
    
    .form-row {
        flex-direction: row;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

@media (min-width: 768px) {
    /* Layout values increment */
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .site-header {
        width: calc(100% - 48px);
    }

    .main-nav {
        display: block;
    }

    .nav-actions .btn {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .bento-card {
        grid-column: span 6;
    }

    .bento-card.card-featured {
        grid-column: span 12;
        flex-direction: row;
    }
    
    .bento-card.card-featured .card-content {
        width: 55%;
        flex-shrink: 0;
    }
    
    .bento-card.card-featured .card-visual {
        width: 45%;
        height: auto;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .bento-card.card-wide {
        grid-column: span 12;
    }

    .bento-card.card-wide .card-content-split {
        flex-direction: row;
    }
    
    .bento-card.card-wide .split-info {
        width: 50%;
    }
    
    .bento-card.card-wide .split-visual {
        width: 50%;
    }

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

    .about-wrapper {
        flex-direction: row;
        padding: var(--spacing-xl);
    }
    
    .about-info {
        width: 55%;
    }
    
    .about-stats-panel {
        width: 45%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        grid-template-columns: 5fr 7fr;
        align-items: start;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .bento-card {
        grid-column: span 4;
    }
    
    .bento-card.card-featured {
        grid-column: span 8;
    }
    
    .bento-card.card-medium {
        grid-column: span 5;
    }
    
    .bento-card.card-wide {
        grid-column: span 7;
    }
}

/* ==========================================================================
   USER ACCESSIBILITY OVERRIDES
   ========================================================================== */
/* Respect operating system requests to minimize animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    .mesh-orb,
    .hero-ring {
        animation: none !important;
        transform: none !important;
    }
    
    .glass-card:hover {
        transform: none !important;
    }
    
    .glass-card::after,
    .glass-card:hover::after {
        --border-angle: 135deg !important;
        --border-x: 25% !important;
        --border-y: 15% !important;
        transition: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Print Styling basics */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .mesh-background, 
    .btn-submit,
    .mobile-menu-toggle,
    .skip-to-content,
    .card-glass-refraction {
        display: none !important;
    }
    
    .glass-card {
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        color: #000000 !important;
        break-inside: avoid;
    }
}

/* ==========================================================================
   PRICING PAGE SPECIFIC STYLES
   ========================================================================== */

/* Billing Toggle Switch */
.billing-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 8px 24px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03);
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.toggle-label.active {
    color: #ffffff;
    font-weight: 600;
}

.toggle-button {
    position: relative;
    width: 54px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color var(--transition-fast);
}

.toggle-button[aria-pressed="true"] {
    background-color: rgba(94, 240, 255, 0.25);
    border-color: rgba(94, 240, 255, 0.5);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.toggle-button[aria-pressed="true"] .toggle-slider {
    transform: translateX(24px);
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.save-badge {
    background: linear-gradient(135deg, rgba(255, 180, 100, 0.15) 0%, rgba(94, 240, 255, 0.15) 100%);
    border: 1px solid rgba(255, 180, 100, 0.3);
    color: var(--color-warm);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Pricing Grid & Cards */
.pricing-cards-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xxl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    border-radius: 28px;
    height: 100%;
}

.pricing-card-header {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: var(--spacing-md);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    min-height: 48px;
    line-height: 1.4;
}

.plan-price-wrapper {
    display: flex;
    align-items: baseline;
    margin-top: var(--spacing-sm);
    gap: 2px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    align-self: flex-start;
    margin-top: 4px;
}

.price-value {
    font-size: clamp(2.5rem, 4vw + 0.5rem, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.billing-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Card recommended highlight */
.card-recommended {
    border-color: rgba(94, 240, 255, 0.35) !important;
    background: rgba(8, 12, 25, 0.78);
    box-shadow: 
        inset 0 1.5px 3px rgba(255, 255, 255, 0.18),
        -6px -6px 25px rgba(255, 180, 100, 0.05),
        6px 6px 25px rgba(94, 240, 255, 0.06),
        0 25px 50px rgba(0, 0, 0, 0.65);
}

.card-recommended::after {
    padding: 1.5px;
    background: conic-gradient(
        from var(--border-angle) at var(--border-x) var(--border-y),
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 180, 100, 0.35) 15%,
        rgba(94, 240, 255, 0.45) 45%,
        rgba(138, 126, 255, 0.22) 70%,
        rgba(255, 255, 255, 0.05) 85%,
        rgba(255, 255, 255, 0.7) 100%
    ) !important;
}

.popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(94, 240, 255, 0.15) 0%, rgba(138, 126, 255, 0.15) 100%);
    border: 1px solid rgba(94, 240, 255, 0.5);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 0 12px rgba(94, 240, 255, 0.15);
}

/* Pricing features list */
.pricing-card-body {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.features-list li.bold-feature {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
}

.check-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-icon {
    color: var(--color-warm);
    text-shadow: 0 0 8px rgba(255, 180, 100, 0.4);
}

/* Comparison Table Styling */
.comparison-matrix-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xxl);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 24px;
    padding: var(--spacing-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.comparison-table th, 
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.comparison-table th {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.05rem;
}

.feature-col {
    width: 40%;
}

.plan-col {
    width: 20%;
    text-align: center;
}

.recommended-col {
    color: var(--color-primary) !important;
}

.table-group-header td {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-name {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.feature-value {
    color: #ffffff;
    text-align: center;
}

.recommended-value {
    background: rgba(94, 240, 255, 0.02);
    border-left: 1px solid rgba(94, 240, 255, 0.08);
    border-right: 1px solid rgba(94, 240, 255, 0.08);
    font-weight: 600;
}

.yes-icon {
    color: var(--color-success);
    font-size: 1.3rem;
}

.no-icon {
    color: var(--color-text-muted);
    opacity: 0.3;
    font-size: 1.3rem;
}

/* FAQs Accordion Styling */
.faqs-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xxl);
}

.faqs-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    border-radius: 16px;
    transition: background var(--transition-medium);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.accordion-icon {
    color: var(--color-primary);
    transition: transform var(--transition-medium);
}

.faq-item[data-faq-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive updates for pricing grids */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.card-recommended {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-card.card-recommended {
        grid-column: span 1;
        transform: scale(1.03);
    }
    
    .pricing-card.card-recommended:hover {
        transform: translateY(-4px) scale(1.05);
    }
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Terms, Refund)
   ========================================================================== */
.legal-page-section {
    padding: calc(var(--header-height) + var(--header-top-offset) + var(--spacing-xxl)) 0 var(--spacing-xxl);
    min-height: 100vh;
}

.legal-container {
    max-width: 820px;
}

.legal-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.legal-header .section-label {
    display: inline-block;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: 6px;
    padding: 0.3em 0.8em;
    margin-bottom: var(--spacing-sm);
}

.legal-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.15;
    margin-bottom: var(--spacing-xs);
}

.legal-effective {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.legal-content {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-block {
    margin-bottom: var(--spacing-xl);
}

.legal-block h2 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.4em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-block h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--spacing-md);
    margin-bottom: 0.5em;
}

.legal-block p {
    margin-bottom: 0.85em;
}

.legal-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}

.legal-block ul li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.55em;
}

.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.6;
}

.legal-block a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.3);
}

.legal-block a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.legal-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin: var(--spacing-sm) 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.legal-info-card p {
    margin-bottom: 0;
    line-height: 1.7;
}

.legal-info-card a {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.3);
}

.legal-highlight-block {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-secondary-rgb), 0.04));
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    border-radius: 16px;
    padding: var(--spacing-lg);
}

.legal-highlight-block h2 {
    border-bottom: none;
    padding-bottom: 0;
    color: var(--color-primary);
}

/* Footer Entity Info */
.footer-entity {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Legal page responsive */
@media (max-width: 640px) {
    .legal-page-section {
        padding-top: calc(var(--header-height) + var(--header-top-offset) + var(--spacing-xl));
    }

    .legal-title {
        font-size: 1.75rem;
    }

    .legal-block h2 {
        font-size: 1.15rem;
    }

    .legal-info-card {
        padding: var(--spacing-sm);
    }

    .legal-highlight-block {
        padding: var(--spacing-md);
    }
}
