/* Global Styles — AI SEO Company (light, premium, modern) */

:root {
    /* Core palette */
    --color-bg: #FFFFFF;
    --color-bg-soft: #FAFAFA;
    --color-bg-muted: #F4F4F5;
    --color-surface: #FFFFFF;
    --color-border: #E5E5E5;
    --color-border-strong: #D4D4D8;

    /* Text */
    --color-text: #0A0A0C;
    --color-text-strong: #000000;
    --color-text-muted: #52525B;
    --color-text-subtle: #71717A;
    --color-text-faint: #A1A1AA;
    --color-text-invert: #FFFFFF;

    /* Accents — use freely per section */
    --color-accent: #0A0A0C;          /* default CTA/accent = bold black */
    --color-accent-contrast: #FFFFFF; /* text on accent */
    --color-blue: #2563EB;
    --color-blue-soft: #EFF6FF;
    --color-green: #10B981;
    --color-green-soft: #ECFDF5;
    --color-orange: #F97316;
    --color-orange-soft: #FFF7ED;
    --color-purple: #7C3AED;
    --color-purple-soft: #F5F3FF;
    --color-gold: #D4AF37;
    --color-gold-soft: #FDF8E6;
    --color-red: #DC2626;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --spacing-3xl: 8rem;

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-primary: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', 'Nunito Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* Shadows (light theme — subtle) */
    --shadow-xs: 0 1px 2px rgba(10, 10, 12, 0.04);
    --shadow-sm: 0 2px 6px rgba(10, 10, 12, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 10, 12, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 10, 12, 0.10);
    --shadow-xl: 0 30px 80px rgba(10, 10, 12, 0.14);
    --shadow-ring: 0 0 0 1px var(--color-border);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.5s ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Section rhythm */
    --section-padding-y: 3.25rem;
    --section-padding-x: 2rem;
    --container-max: 1240px;
    --container-narrow: 880px;
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 2.25rem;
        --section-padding-x: 1.25rem;
    }
}

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

section {
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    width: 100%;
}

/* Selection */
::selection {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Reveal on scroll — JS toggles .is-visible */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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