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

/* ============================================
   BASE.CSS — Global Reset, Variables, Typography
   Dark green premium theme (Supabase-inspired)
   ============================================ */

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

:root {
    /* ── Dark Green Palette ── */
    --color-950: #060D08;
    --color-900: #0B1610;
    --color-850: #101E16;
    --color-800: #1E3028;
    --color-700: #2A3D31;
    --color-600: #3A5444;
    --color-500: #4A6B57;
    --color-400: #5A8269;
    --color-300: #6E9A7D;

    /* ── Accent Green (vibrant) ── */
    --accent: #3ECF8E;
    --accent-light: #4AE5A0;
    --accent-dark: #2A9D6E;
    --accent-muted: rgba(62, 207, 142, 0.15);
    --accent-glow: rgba(62, 207, 142, 0.4);

    /* ── Surfaces ── */
    --bg-primary: #090F0B;
    --bg-secondary: #101E16;
    --bg-card: #1A2B22;
    --bg-card-hover: #213529;
    --bg-elevated: #2A3D31;

    /* ── Typography ── */
    --text-primary: #F1F5F2;
    --text-secondary: #94A3A0;
    --text-muted: #5E716A;
    --text-accent: var(--accent);

    /* ── Borders ── */
    --border: rgba(62, 207, 142, 0.1);
    --border-strong: rgba(62, 207, 142, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* ── Semantic ── */
    --success: #3ECF8E;
    --warning: #F5A623;
    --danger: #EF4444;

    /* ── Font ── */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ── Spacing ── */
    --section-padding: 120px;
    --container-width: 1200px;
    --nav-height: 72px;

    /* ── Transitions ── */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ── Shadows ── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(62, 207, 142, 0.15);
    --shadow-glow-strong: 0 0 80px rgba(62, 207, 142, 0.25);

    /* ── Radii ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-light);
}

/* ── Container ── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 20px; }

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

/* ── Buttons ── */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-primary);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(62, 207, 142, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(62, 207, 142, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(62, 207, 142, 0.3);
}

.btn-large {
    width: 100%;
    padding: 16px 36px;
    font-size: 17px;
}

.btn-normal {
    padding: 14px 32px;
    font-size: 16px;
}

/* ── Section Shared ── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Hero Badge ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-muted);
    border: 1px solid rgba(62, 207, 142, 0.2);
    border-radius: 100px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Hero Section (shared page heroes) ── */
.hero-section {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(62, 207, 142, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Text link ── */
.text-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.text-link:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* ── Grid Background Pattern ── */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(62, 207, 142, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 207, 142, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

/* ── Glow Orb (decorative) ── */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}

.glow-orb.green {
    background: rgba(62, 207, 142, 0.15);
}

.glow-orb.teal {
    background: rgba(45, 212, 191, 0.1);
}

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

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

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

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

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

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

/* ── CTA Section (shared) ── */
.cta {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(62, 207, 142, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-note {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin-top: 16px !important;
}

/* ── Responsive Base ── */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }

    .hero-section {
        padding: 140px 0 60px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 120px 0 48px;
    }

    .hero-section .hero-title {
        font-size: 28px;
    }

    .hero-section .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}
