/* ===================================
   BASE STYLES
   Variables, Reset, Base & Utility Classes
   (Originally styles.css lines 1-188)
   =================================== */

/* --- CSS Variables --- */
:root {
    --color-orange-50: #fff7ed;
    --color-orange-100: #ffedd5;
    --color-orange-200: #fed7aa;
    --color-orange-500: #f97316;
    --color-orange-600: #ea580c;
    --color-orange-700: #c2410c;
    --color-orange-900: #7c2d12;

    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;

    --color-emerald-500: #10b981;
    --color-white: #ffffff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-primary,
    .btn-secondary,
    .nav-link,
    .footer-link,
    .mobile-nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    /* Disable hover effects on touch */
    .feature-card:hover {
        transform: none;
    }

    .comparison-row:hover {
        transform: none;
    }

    .stat-item:hover .stat-value {
        transform: none;
    }

    /* Active states for touch feedback */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-hero:active,
    .btn-cta-primary:active,
    .btn-cta-secondary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .feature-card:active {
        transform: scale(0.99);
    }

    .comparison-row:active {
        transform: scale(0.99);
    }
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-slate-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;

    /* Grid Background */
    background-image:
        linear-gradient(to right, rgba(249, 115, 22, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(249, 115, 22, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    z-index: 100;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Selection */
::selection {
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--color-orange-600);
}

/* Remove underline from all button-links */
a.btn-primary,
a.btn-hero,
a.btn-secondary,
a.btn-cta-main,
a.btn-cta-primary,
a.btn-cta-secondary,
a.btn-mobile-cta,
a.btn-header {
    text-decoration: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: var(--color-orange-500);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-orange-600);
}

/* --- Utility Classes --- */
.mono {
    font-family: var(--font-mono);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-orange {
    color: var(--color-orange-600);
}

.text-muted {
    color: var(--color-slate-300);
}

.text-emerald {
    color: var(--color-emerald-500);
}
