/* ============================================
   CSS VARIABLES — THE FOUNDATION
   ============================================ */
:root {
    /* Color System — Light Mode (Swiss Clean) */
    --bg-primary: #FAFAFA;
    --bg-secondary: #F0F0F0;
    --bg-tertiary: #E8E8E8;
    --bg-elevated: #FFFFFF;
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --text-subtle: #B0B0B0;
    
    --accent: #B8860B;
    --accent-dark: #8B6508;
    --accent-muted: rgba(184, 134, 11, 0.12);
    --accent-glow: rgba(184, 134, 11, 0.06);
    
    --grid-line: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;
    --space-3xl: 12rem;
    
    /* Timing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0D0D0D;
    --bg-secondary: #141414;
    --bg-tertiary: #1A1A1A;
    --bg-elevated: #222222;
    
    --text-primary: #F5F5F0;
    --text-secondary: #A8A8A0;
    --text-muted: #5C5C58;
    --text-subtle: #3A3A38;
    
    --accent: #C9A227;
    --accent-dark: #C9A227;
    --accent-muted: rgba(201, 162, 39, 0.15);
    --accent-glow: rgba(201, 162, 39, 0.08);
    
    --grid-line: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

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

::selection {
    background: var(--accent);
    color: #FFFFFF;
}

/* ============================================
   GRID BACKGROUND — THE BLUEPRINT AESTHETIC
   ============================================ */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

@media (min-width: 768px) {
    .grid-bg {
        opacity: 0.5;
    }
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

@media (min-width: 768px) {
    .grid-bg::before {
        background-size: 60px 60px;
    }
}

.grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}

/* ============================================
   LAYOUT CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

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

/* ============================================
   NAVIGATION — MINIMAL & PRECISE
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: all 0.4s var(--ease-out);
}

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

.nav.scrolled {
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
}

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

[data-theme="dark"] .nav.scrolled {
    background: rgba(13, 13, 13, 0.9);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-decoration: none;
}

.nav-logo:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .nav-logo {
        font-size: 0.9rem;
    }
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }
    
    .nav.scrolled .nav-links {
        background: var(--bg-elevated);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: var(--space-sm) 0;
        display: block;
    }
    
    .nav-right {
        gap: var(--space-md);
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
    font-size: 0.95rem;
    padding: 0;
}

@media (min-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.3s var(--ease-out);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

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

@media (min-width: 768px) {
    .nav-right {
        gap: var(--space-lg);
    }
}

/* Language Selector - Minimal Dropdown */
.lang-selector {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

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

.lang-current .lang-code {
    min-width: 20px;
}

.lang-current .lang-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease-out);
    opacity: 0.5;
}

.lang-current .lang-arrow svg {
    width: 10px;
    height: 6px;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 4px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s var(--ease-out);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 200;
}

[data-theme="dark"] .lang-dropdown {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    text-align: left;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent);
}

.lang-option .lang-code {
    text-transform: uppercase;
    font-weight: 600;
    min-width: 24px;
}

.lang-option .lang-name {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.lang-option.active .lang-name {
    color: var(--accent);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .lang-selector {
        display: none;
    }
    
    .lang-selector.mobile-visible {
        display: block;
        position: absolute;
        top: calc(100% + 180px);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: var(--space-md) var(--space-lg);
    }
    
    .lang-selector.mobile-visible .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .lang-selector.mobile-visible .lang-current {
        display: none;
    }
    
    .lang-selector.mobile-visible .lang-option {
        padding: var(--space-sm) var(--space-md);
        border: 1px solid var(--border);
    }
    
    .lang-selector.mobile-visible .lang-option.active {
        border-color: var(--accent);
        background: var(--accent-muted);
    }
}

/* ============================================
   HERO SECTION — IMPACTFUL & CLEAN
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh; /* Use small viewport height for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--space-xl) + 50px) 0 var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Mobile: Background image effect */
.hero-bg-mobile {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.25;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

[data-theme="dark"] .hero-bg-mobile img {
    opacity: 0.2;
}

@media (min-width: 480px) {
    .hero {
        padding: calc(var(--space-2xl) + 60px) 0 var(--space-lg);
    }
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
}

/* Hide mobile background on larger screens */
@media (min-width: 1024px) {
    .hero-bg-mobile {
        display: none;
    }
}

/* Hero grid layout for image integration */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        gap: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: var(--space-xl);
    }
}

@media (min-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-2xl);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero image container with elegant styling */
.hero-image-wrapper {
    position: relative;
    display: none; /* Hidden on mobile - shown as background instead */
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        display: block;
        order: 0;
        margin-top: 0;
    }
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

@media (min-width: 400px) {
    .hero-image-container {
        max-width: 220px;
    }
}

@media (min-width: 480px) {
    .hero-image-container {
        max-width: 260px;
    }
}

@media (min-width: 768px) {
    .hero-image-container {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .hero-image-container {
        max-width: 520px;
        margin-left: auto;
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    .hero-image-container {
        max-width: 580px;
    }
}

/* Geometric accent frame behind image */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    opacity: 0.4;
    z-index: 0;
    transition: all 0.5s var(--ease-out);
}

@media (min-width: 768px) {
    .hero-image-container::before {
        top: -15px;
        right: -15px;
        border-width: 2px;
        opacity: 0.5;
    }
}

@media (min-width: 1024px) {
    .hero-image-container::before {
        top: -25px;
        right: -25px;
        border-width: 2px;
        opacity: 0.6;
    }
}

.hero-image-container:hover::before {
    top: -30px;
    right: -30px;
    opacity: 0.8;
}

/* Secondary geometric accent - larger corner decoration */
.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -8px;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--accent-muted) 0%, transparent 50%);
    z-index: 0;
    transition: all 0.5s var(--ease-out);
}

@media (min-width: 768px) {
    .hero-image-container::after {
        bottom: -12px;
        left: -12px;
        width: 70%;
        height: 70%;
    }
}

@media (min-width: 1024px) {
    .hero-image-container::after {
        bottom: -20px;
        left: -20px;
        width: 75%;
        height: 75%;
    }
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(10%) contrast(1.03);
    transition: all 0.5s var(--ease-out);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hero-image {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 12px 24px -8px rgba(0, 0, 0, 0.3),
        0 0 80px -20px var(--accent-muted);
}

.hero-image-container:hover .hero-image {
    filter: grayscale(0%) contrast(1.05);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.2),
        0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero-image-container:hover .hero-image {
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.6),
        0 15px 30px -10px rgba(0, 0, 0, 0.4),
        0 0 100px -15px var(--accent-muted);
}

/* Image overlay gradient for depth */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 80%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Decorative accent line - top right corner */
.hero-image-accent {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 80px;
    height: 80px;
    border-right: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    opacity: 0.4;
    z-index: 0;
    display: none;
}

@media (min-width: 1024px) {
    .hero-image-accent {
        display: block;
    }
}

/* Decorative dot pattern */
.hero-image-dots {
    position: absolute;
    bottom: -50px;
    left: 20px;
    display: grid;
    grid-template-columns: repeat(5, 6px);
    gap: 8px;
    z-index: 0;
    opacity: 0.4;
}

.hero-image-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent);
}

@media (max-width: 1023px) {
    .hero-image-dots {
        display: none;
    }
}

/* Technical markers around image */
.hero-image-marker {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-subtle);
    text-transform: uppercase;
    z-index: 3;
    display: none;
}

@media (min-width: 768px) {
    .hero-image-marker {
        display: block;
    }
}

.hero-image-marker.top-left {
    top: -30px;
    left: 0;
}

.hero-image-marker.bottom-right {
    bottom: -30px;
    right: 0;
    color: var(--accent);
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .hero-label {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
        margin-bottom: var(--space-lg);
        gap: var(--space-md);
    }
}

.hero-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

@media (min-width: 768px) {
    .hero-label::before {
        width: 40px;
    }
}

.hero-title {
    font-size: clamp(1.6rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: var(--space-md);
}

@media (min-width: 480px) {
    .hero-title {
        font-size: clamp(1.9rem, 5vw, 3.8rem);
        margin-bottom: var(--space-lg);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.8rem);
        line-height: 1.1;
        letter-spacing: -0.03em;
        max-width: 16ch;
        margin-bottom: var(--space-lg);
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: clamp(2.5rem, 4.5vw, 4rem);
    }
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.45rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 48ch;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

@media (min-width: 480px) {
    .hero-subtitle {
        font-size: clamp(1.05rem, 2.2vw, 1.45rem);
        line-height: 1.6;
        margin-bottom: var(--space-xl);
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: clamp(1.15rem, 2.2vw, 1.45rem);
        line-height: 1.7;
        margin-bottom: var(--space-xl);
    }
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-md);
    }
    
    .hero-cta .btn {
    border-radius: 0;
        width: 100%;
        text-align: center;
        display: block;
    }
}

@media (min-width: 768px) {
    .hero-cta {
        gap: var(--space-md);
    }
}

.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: var(--space-lg);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

@media (min-width: 768px) {
    .hero-availability {
        font-size: 0.75rem;
        margin-top: var(--space-lg);
    }
    
    .availability-dot {
        width: 10px;
        height: 10px;
    }
}

.btn {
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem var(--space-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    min-height: 44px;
}

@media (min-width: 400px) {
    .btn {
    border-radius: 0;
        font-size: 0.8rem;
        padding: 0.875rem var(--space-md);
        letter-spacing: 0.08em;
    }
}

@media (min-width: 768px) {
    .btn {
    border-radius: 0;
        font-size: 0.875rem;
        padding: var(--space-md) var(--space-lg);
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

/* Disable slide effect on mobile - causes visual glitches */
@media (max-width: 768px) {
    .btn::before {
        display: none;
    }
    
    .btn:active {
        background: var(--accent);
        color: #FFFFFF;
        border-color: var(--accent);
    }
}

@media (min-width: 769px) {
    .btn:hover {
        color: #FFFFFF;
        border-color: var(--accent);
    }

    .btn:hover::before {
        transform: translateX(0);
    }
}

.btn-primary {
    border-color: var(--accent);
    color: var(--text-primary);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .hero-scroll {
        display: flex;
    }
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTION STYLING
   ============================================ */
section {
    padding: var(--space-2xl) 0;
    position: relative;
}

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

.section-header {
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: var(--space-2xl);
    }
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-subtle);
    margin-bottom: var(--space-md);
    display: block;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 20ch;
}

/* ============================================
   INTRO SECTION — VALUE STATEMENT
   ============================================ */
.intro {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: var(--space-2xl) 0;
}

.intro-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

@media (min-width: 768px) {
    .intro-title {
        margin-bottom: var(--space-2xl);
    }
}

/* Pain points grid - minimal visual design */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

@media (min-width: 768px) {
    .pain-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
        gap: var(--space-xl);
    }
}

.pain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.pain-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.pain-item:hover .pain-icon {
    border-color: var(--accent);
    color: var(--accent);
}

.pain-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .pain-text {
        font-size: 0.75rem;
    }
}

/* Quote - centered and prominent */
.intro-quote {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 500px;
    margin: 0 auto;
}

.intro-quote span {
    display: block;
}

.intro-quote span:last-child {
    color: var(--accent);
}

/* ============================================
   SERVICES SECTION — THE PILLARS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

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

.service-card {
    background: var(--bg-primary);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    min-height: 350px;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .service-card {
        padding: var(--space-xl);
        min-height: 400px;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.service-card:hover {
    background: var(--bg-secondary);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: var(--space-xl);
}

.service-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.service-outcome {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.service-outcome strong {
    color: var(--accent);
    font-weight: 500;
}

.service-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s var(--ease-out);
    position: relative;
    z-index: 1;
}

.service-link::after {
    content: '→';
    transition: transform 0.3s var(--ease-out);
}

.service-link:hover {
    color: var(--accent);
}

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

/* ============================================
   WHY ME SECTION
   ============================================ */
.why-me {
    background: var(--bg-primary);
}

/* Two-column grid for About section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* About image styling */
.why-image-wrapper {
    position: relative;
    order: -1;
}

@media (min-width: 1024px) {
    .why-image-wrapper {
        order: 0;
    }
}

.why-image-container {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .why-image-container {
        max-width: 520px;
        margin: 0;
    }
}

/* Accent border frame */
.why-image-container::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    opacity: 0.5;
    z-index: 0;
    transition: all 0.5s var(--ease-out);
}

.why-image-container:hover::before {
    bottom: -25px;
    left: -25px;
    opacity: 0.7;
}

/* Corner accent */
.why-image-container::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60%;
    height: 60%;
    background: linear-gradient(-45deg, var(--accent-muted) 0%, transparent 50%);
    z-index: 0;
}

.why-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(10%);
    transition: all 0.5s var(--ease-out);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.15),
        0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .why-image {
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.why-image-container:hover .why-image {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

/* Technical marker for about image */
.why-image-marker {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    z-index: 3;
    bottom: -35px;
    right: 0;
}

@media (max-width: 767px) {
    .why-image-marker {
        display: none;
    }
}

.why-content {
    max-width: 100%;
}

@media (min-width: 1024px) {
    .why-content {
        max-width: 520px;
    }
}

.why-lead {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: var(--space-xl);
}

.why-lead strong {
    color: var(--accent);
    font-weight: 500;
}

.why-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.why-approach {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   TRUST SIGNALS
   ============================================ */
.trust {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
}

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

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

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
}

.trust-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .trust-item:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--accent);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .trust-icon {
        width: 56px;
        height: 56px;
    }
}

.trust-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .trust-title {
        font-size: 1.1rem;
    }
}

.trust-description {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .trust-description {
        font-size: 0.8rem;
    }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
    text-align: center;
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .final-cta {
        padding: var(--space-3xl) 0;
    }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-text {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.cta-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--accent);
    transition: all 0.3s var(--ease-out);
}

.cta-link:hover {
    gap: var(--space-lg);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

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

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

@media (min-width: 768px) {
    .footer-inner {
        gap: var(--space-lg);
    }
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-text {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-links {
        gap: var(--space-lg);
    }
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
    padding: var(--space-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-links a {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        padding: 0;
    }
}

.footer-links a:hover {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS — REVEAL ON SCROLL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   COORDINATE MARKERS — TECHNICAL AESTHETIC
   ============================================ */
.coord {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-subtle);
    position: absolute;
}

.coord-left {
    left: var(--space-lg);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.coord-right {
    right: var(--space-lg);
    writing-mode: vertical-rl;
}

@media (max-width: 768px) {
    .coord {
        display: none;
    }
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .noise {
    opacity: 0.03;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

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

@media (min-width: 768px) {
    .contact-grid {
        gap: var(--space-2xl);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-text {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* Process steps - visual timeline */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.process-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.process-step:hover .process-icon {
    border-color: var(--accent);
    color: var(--accent);
}

.process-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.process-arrow {
    color: var(--text-subtle);
    font-size: 1rem;
    margin: 0 var(--space-xs);
}

@media (min-width: 768px) {
    .process-steps {
        gap: var(--space-md);
    }
    
    .process-icon {
        width: 52px;
        height: 52px;
    }
    
    .process-label {
        font-size: 0.7rem;
    }
    
    .process-arrow {
        margin: 0 var(--space-sm);
    }
}

.contact-alt {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.contact-alt-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-md);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link svg {
    flex-shrink: 0;
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s var(--ease-out);
}

.contact-email:hover {
    opacity: 0.8;
}

.contact-form {
    background: var(--bg-elevated);
    padding: var(--space-lg);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .contact-form {
        padding: var(--space-xl);
    }
}

.form-group {
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .form-group {
        margin-bottom: var(--space-lg);
    }
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem var(--space-md);
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
    min-height: 44px;
}

@media (min-width: 768px) {
    .form-group input,
    .form-group textarea {
        padding: var(--space-md);
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
}

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

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    margin-top: var(--space-md);
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   BLOG SECTION STYLES
   ============================================ */
.blog {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.blog-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
}

.blog-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s var(--ease-out);
}

.blog-link:hover {
    gap: 0.75rem;
}

.blog-link::after {
    content: '→';
}

.blog-cta {
    margin-top: var(--space-xl);
    text-align: center;
}

.blog-cta a {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-muted);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
}

.blog-cta a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   BLOG ARTICLE STYLES — PROFESSIONAL EDITORIAL
   ============================================ */

/* Article Container */
.article {
    background: var(--bg-primary);
    padding-top: 80px;
}

@media (min-width: 768px) {
    .article {
        padding-top: 100px;
    }
}

/* Article Header — Focused & Elegant */
.article-header {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .article-header {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
}

/* Article Meta — Category, Date, Reading Time */
.article-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .article-meta {
        font-size: 0.85rem;
        margin-bottom: var(--space-xl);
    }
}

.article-category {
    color: var(--accent);
    font-weight: 500;
}

.article-divider {
    color: var(--text-subtle);
}

.article-reading-time {
    color: var(--text-muted);
}

/* Article Title */
.article-title {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .article-title {
        margin-bottom: var(--space-xl);
        line-height: 1.1;
    }
}

/* Article Intro — Larger first paragraph */
.article-intro {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
}

@media (min-width: 768px) {
    .article-intro {
        font-size: 1.35rem;
        line-height: 1.6;
    }
}

/* Article Cover — Contained & Elegant */
.article-cover {
    width: 100%;
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    overflow: hidden;
    position: relative;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .article-cover {
        margin: 0 auto var(--space-2xl);
        padding: 0;
    }
}

.article-cover img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .article-cover img {
        max-height: 420px;
    }
}

/* Article Content — Optimized for Reading */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .article-content {
        padding-bottom: var(--space-2xl);
    }
}

/* Lead Paragraph — Opening emphasis */
.article-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.75em;
    font-weight: 400;
}

@media (min-width: 768px) {
    .article-lead {
        font-size: 1.25rem;
        line-height: 1.75;
    }
}

/* Headings — Clear Hierarchy */
.article-content h2 {
    font-size: clamp(1.65rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.article-content h2:first-of-type {
    margin-top: 1.5em;
}

.article-content h3 {
    font-size: clamp(1.25rem, 2.8vw, 1.5rem);
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.65em;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Body Text — Professional & Readable */
.article-content p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 1.5em;
    font-weight: 400;
}

@media (min-width: 768px) {
    .article-content p {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Lists — Clean & Structured */
.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

@media (min-width: 768px) {
    .article-content ul,
    .article-content ol {
        padding-left: 1.75em;
    }
}

.article-content li {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 0.75em;
    padding-left: 0.25em;
}

@media (min-width: 768px) {
    .article-content li {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

.article-content li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content ul li::marker {
    color: var(--accent);
}

.article-content ol li::marker {
    color: var(--accent);
    font-weight: 600;
}

/* Blockquotes — Elegant Emphasis */
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--space-md) 0 var(--space-md) var(--space-lg);
    margin: 2em 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .article-content blockquote {
        font-size: 1.15rem;
        padding: var(--space-lg) var(--space-xl);
        margin: 2.5em 0;
    }
}

.article-content blockquote p {
    margin-bottom: 0;
    font-size: inherit;
    color: inherit;
    font-style: inherit;
}

/* Article Divider Line */
.article-divider-line {
    border: none;
    height: 1px;
    background: var(--border);
    margin: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .article-divider-line {
        margin: var(--space-3xl) 0;
    }
}

/* Article Highlight Box */
.article-highlight {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    margin: 2em 0;
}

@media (min-width: 768px) {
    .article-highlight {
        padding: var(--space-xl);
        margin: 2.5em 0;
    }
}

.article-highlight p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .article-highlight p {
        font-size: 1.1rem;
    }
}

/* Code Blocks — Technical Clarity */
.article-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-secondary);
    padding: 0.2em 0.45em;
    color: var(--accent-dark);
    border-radius: 2px;
}

.article-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: 2em 0;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .article-content pre {
        padding: var(--space-xl);
    }
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* Article CTA — Prominent & Professional */
.article-cta {
    max-width: 720px;
    margin: var(--space-2xl) auto;
    background: linear-gradient(135deg, var(--accent-muted) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--accent);
    padding: var(--space-xl);
    position: relative;
}

@media (min-width: 768px) {
    .article-cta {
        margin: var(--space-3xl) auto;
        padding: var(--space-2xl);
    }
}

.article-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.article-cta-content h3 {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.3;
}

.article-cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .article-cta-content p {
        font-size: 1.15rem;
    }
}

.article-cta-note {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin-bottom: var(--space-lg) !important;
}

.article-cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-out);
    border: none;
}

@media (min-width: 768px) {
    .article-cta-button {
        font-size: 1.05rem;
        padding: 1rem 2.25rem;
    }
}

.article-cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .article-cta-button:hover {
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
}

/* Simple CTA - Centered Button Only */
.article-cta-simple {
    max-width: 720px;
    margin: var(--space-xl) auto var(--space-lg);
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .article-cta-simple {
        margin: var(--space-xl) auto var(--space-xl);
        padding: var(--space-xl) 0;
    }
}

.article-cta-simple .article-cta-button {
    padding: 1rem 2.5rem;
}

@media (min-width: 768px) {
    .article-cta-simple .article-cta-button {
        padding: 1.125rem 3rem;
        font-size: 1.1rem;
    }
}

/* Article Related Links */
.article-related {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    padding-top: var(--space-lg);
}

@media (min-width: 768px) {
    .article-related {
        margin-bottom: var(--space-xl);
        padding-top: var(--space-lg);
    }
}

.article-related h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

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

@media (min-width: 600px) {
    .article-related-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-related-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.article-related-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.article-related-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.article-related-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .article-related-title {
        font-size: 1.1rem;
    }
}

/* Article Author Bio */
.article-author {
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .article-author {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-xl);
    }
}

@media (min-width: 768px) {
    .article-author {
        margin-bottom: var(--space-3xl);
        padding: var(--space-xl) var(--space-2xl);
    }
}

.article-author-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    filter: grayscale(20%);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .article-author-image {
        width: 100px;
        height: 100px;
    }
}

.article-author-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.article-author-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.article-author-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .article-author-name {
        font-size: 1.25rem;
    }
}

.article-author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

@media (min-width: 768px) {
    .article-author-bio {
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* Legacy CTA styles for compatibility */
.cta {
    background: var(--accent-muted);
    border-left: 4px solid var(--accent);
    padding: var(--space-2xl) var(--space-xl);
    margin: calc(var(--space-3xl) + var(--space-xl)) auto;
    max-width: 720px;
}

@media (min-width: 768px) {
    .cta {
        padding: var(--space-2xl) var(--space-2xl);
    }
}

.cta h3 {
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.3;
}

.cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .cta p {
        font-size: 1.2rem;
    }
}

.cta a {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-out);
    border: none;
}

@media (min-width: 768px) {
    .cta a {
        font-size: 1.05rem;
        padding: 1.125rem 2.5rem;
    }
}

.cta a:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .cta a:hover {
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
}
