/* ============================================
   IPPBOT — Design System (main.css)
   Rockstar VI-inspired — Green + Gold
   ============================================ */

:root {
    /* ── Couleurs principales (inspirees du logo P vert/or) ── */
    --green:               #22C55E;
    --green-dark:          #16A34A;
    --green-light:         #4ADE80;
    --green-glow:          rgba(34, 197, 94, 0.15);
    --green-glow-strong:   rgba(34, 197, 94, 0.35);

    --gold:                #FFB800;
    --gold-dark:           #E5A400;
    --gold-light:          #FFD54F;
    --gold-glow:           rgba(255, 184, 0, 0.15);

    --gradient-main:       linear-gradient(135deg, #22C55E 0%, #FFB800 100%);
    --gradient-text:       linear-gradient(135deg, #4ADE80 0%, #FFD54F 100%);
    --gradient-hero:       linear-gradient(135deg, #22C55E 0%, #3ECF8E 30%, #FFB800 100%);
    --gradient-premium:    linear-gradient(135deg, #22C55E 0%, #FFB800 50%, #FF9500 100%);

    --blue:                #3B82F6;
    --purple:              #8B5CF6;
    --red:                 #EF4444;
    --orange:              #FF9500;

    /* ── Surfaces ── */
    --bg:                  #000000;
    --bg-secondary:        #050508;
    --bg-card:             #0a0a10;
    --bg-card-hover:       #101018;
    --bg-elevated:         #141420;
    --bg-overlay:          rgba(0, 0, 0, 0.95);

    /* ── Texte ── */
    --text:                #ffffff;
    --text-secondary:      #9ca3af;
    --text-muted:          #6b7280;

    /* ── Bordures ── */
    --border:              rgba(255, 255, 255, 0.06);
    --border-hover:        rgba(255, 255, 255, 0.12);
    --border-glow:         rgba(34, 197, 94, 0.2);

    /* ── Dimensions ── */
    --topbar-height:       60px;
    --max-width:           1200px;
    --radius:              12px;
    --radius-sm:           8px;
    --radius-lg:           16px;
    --radius-xl:           24px;
    --radius-pill:         50px;

    /* ── Typographie ── */
    --font:                'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:           'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* ── Legacy compat ── */
    --accent:              var(--green);
    --accent-glow:         var(--green-glow);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* smooth scroll uniquement pour les clics ancre, pas pour GSAP ScrollTrigger */
@media (hover: hover) {
    html {
        scroll-behavior: smooth;
    }
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--green);
}

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

ul, ol {
    list-style: none;
}

code {
    background: rgba(34, 197, 94, 0.08);
    color: var(--green);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: var(--font-mono);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    color: inherit;
}

::selection {
    background: var(--green-glow);
    color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ============================================
   Typography
   ============================================ */

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

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

/* ============================================
   Layout
   ============================================ */

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

/* ============================================
   Button — Hero Primary
   ============================================ */

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    background: var(--gradient-main);
    color: #000;
    box-shadow: 0 4px 24px var(--green-glow);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-hero:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--green-glow-strong);
}

.btn-hero:hover::before {
    opacity: 1;
}

/* Hero Outline Button */
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-hero-outline:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

/* Pricing Button */
.btn-pricing {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-pricing:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.btn-pricing-pro {
    background: var(--gradient-main);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px var(--green-glow);
}

.btn-pricing-pro:hover {
    color: #000;
    box-shadow: 0 8px 32px var(--green-glow-strong);
    transform: translateY(-2px);
}

/* ============================================
   Utility Classes
   ============================================ */

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Responsive Base
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}
