/* ============================================================
   INDYO.COM — Main CSS: Variables, Reset, Typography, Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Colors */
    --color-bg-primary:      #09090f;
    --color-bg-secondary:    #0d0d1a;
    --color-bg-tertiary:     #111120;
    --color-bg-card:         rgba(255, 255, 255, 0.04);
    --color-bg-card-hover:   rgba(255, 255, 255, 0.07);
    --color-border:          rgba(255, 255, 255, 0.08);
    --color-border-hover:    rgba(124, 58, 237, 0.35);

    --color-accent-purple:   #7c3aed;
    --color-accent-blue:     #2563eb;
    --color-accent-indigo:   #4f46e5;
    --color-accent-glow:     rgba(124, 58, 237, 0.25);

    --color-text-primary:    #f1f5f9;
    --color-text-secondary:  #94a3b8;
    --color-text-muted:      #475569;

    --color-success:         #10b981;
    --color-error:           #ef4444;
    --color-warning:         #f59e0b;

    /* Gradients */
    --gradient-primary:      linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --gradient-primary-rev:  linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-glow:         radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 70%);
    --gradient-section:      linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);

    /* Typography */
    --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   1.5rem;
    --space-xl:   2rem;
    --space-2xl:  3rem;
    --space-3xl:  5rem;
    --space-4xl:  8rem;

    /* Border radius */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
    --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
    --glow-purple:  0 0 20px rgba(124,58,237,0.4), 0 0 60px rgba(124,58,237,0.1);
    --glow-button:  0 0 20px rgba(124,58,237,0.5), 0 4px 15px rgba(124,58,237,0.3);
    --glow-card:    0 0 30px rgba(124,58,237,0.12);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max:    1200px;
    --container-wide:   1400px;
    --nav-height:       72px;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ---- Typography ---- */
h1 { font-size: clamp(2.25rem, 5vw, 4rem);   font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem);  font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem;     font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p { color: var(--color-text-secondary); }

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-accent-purple); }
.text-gradient  {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Utilities ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-purple);
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-header h2 { margin-bottom: var(--space-md); }
.section-header p  { max-width: 560px; margin: 0 auto; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.hidden { display: none !important; }

/* ---- Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--glow-button); }
    50%       { box-shadow: 0 0 35px rgba(124,58,237,0.7), 0 4px 20px rgba(124,58,237,0.4); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

/* Intersection observer reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Dividers ---- */
.divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-xl) 0;
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.badge-purple { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }
.badge-blue   { background: rgba(37,99,235,0.15);  color: #60a5fa; border: 1px solid rgba(37,99,235,0.25); }
.badge-green  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-yellow { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-red    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* ---- Stars ---- */
.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.875rem;
}

/* ---- Toast Notifications (Toastify override) ---- */
.toastify {
    font-family: var(--font-sans) !important;
    font-size: 0.875rem !important;
    border-radius: var(--radius-md) !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.7); }

/* ---- Selection ---- */
::selection { background: rgba(124,58,237,0.3); color: #fff; }

/* ---- Focus ---- */
:focus-visible {
    outline: 2px solid var(--color-accent-purple);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .container, .container-wide {
        padding: 0 var(--space-lg);
    }
    .section { padding: var(--space-3xl) 0; }
    .section-sm { padding: var(--space-2xl) 0; }
}

@media (max-width: 480px) {
    .container, .container-wide {
        padding: 0 var(--space-md);
    }
}
