/* === TXAM Design System === */
:root {
    /* Spacing Scale (8px baseline) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
    
    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    
    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    
    /* Colors */
    --txam-orange: #FF6B00; 
    --txam-dark: #1D1D1F; 
    --bg-color: #FBFBFD;  
    --border-light: #E5E5EA;
    --text-muted: #86868B;
}

body {
    background-color: var(--bg-color);
    color: var(--txam-dark);
    font-family: 'Geist', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: var(--leading-normal);
}

/* Typography System - Fluid Type Scale */
.text-display {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}
.text-h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.text-h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.text-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}
.text-body {
    font-size: 1rem;
    line-height: 1.6;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}
.text-caption {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}
.mono-num { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "DIN Alternate", monospace; }

/* Animation System */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Card Component */
.apple-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 32px;
    overflow: hidden;
}
.apple-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.3);
}

/* Button States */
.btn-primary {
    background: var(--txam-dark);
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
    background: var(--txam-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}
.btn-secondary {
    background: white;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover {
    background: #F5F5F7;
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(135deg, #1D1D1F 0%, #6E6E73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Zoom */
.img-zoom {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apple-card:hover .img-zoom {
    transform: scale(1.05);
}

/* Scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Mobile Menu */
#mobile-menu { transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.4s ease; }
.menu-open { transform: translateY(0%); opacity: 1; }
.menu-closed { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Service Process Connector */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: calc(-1 * var(--grid-gap, 2rem) / 2);
    width: var(--grid-gap, 2rem);
    height: 2px;
    background: #F5F5F7;
    z-index: 0;
}

/* Mobile: Hide horizontal connectors */
@media (max-width: 767px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
    .process-step:not(:last-child) {
        border-left: 2px solid #F5F5F7;
        padding-left: 2rem;
        margin-left: 0.75rem;
    }
}
