/* ============================================
   BITPANDA DESIGN SYSTEM
   Dark green primary, clean modern aesthetic
   ============================================ */

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

/* CSS Custom Properties / Design Tokens */
:root {
    /* Primary Colors */
    --color-primary: #103e36;
    --color-primary-hover: #28514a;
    --color-primary-dark: #0a2b25;
    --color-primary-light: #1a5c52;

    /* Accent Colors */
    --color-green-bright: #5fff96;
    --color-green-lime: #b8ff5a;
    --color-teal: #00c9a7;
    --color-gold: #f5a623;
    --color-red: #e74c3c;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-off-white: #f9fafb;
    --color-light-grey: #f5f5f5;
    --color-grey: #e5e7eb;
    --color-mid-grey: #9ca3af;
    --color-dark-grey: #6b7280;
    --color-charcoal: #374151;
    --color-near-black: #1f2937;
    --color-black: #111827;
    --color-true-black: #0a0a0a;

    /* Text Colors */
    --text-primary: #292a2e;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    --text-link: #103e36;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #103e36;
    --bg-darker: #0a2b25;
    --bg-card: #ffffff;
    --bg-card-dark: #1a1a2e;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 9px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    --font-size-5xl: 4.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 24px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

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

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

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

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
}

.section--darker {
    background-color: var(--bg-darker);
    color: var(--text-inverse);
}

.section--grey {
    background-color: var(--bg-secondary);
}

.section--black {
    background-color: var(--color-true-black);
    color: var(--text-inverse);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.heading-xl {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-md {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.heading-sm {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1.2;
}

.heading-xs {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.3;
}

.text-lg {
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.text-md {
    font-size: var(--font-size-md);
    line-height: 1.6;
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-inverse { color: var(--text-inverse); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn--sm {
    font-size: var(--font-size-sm);
    padding: 4px 16px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.btn--md {
    font-size: var(--font-size-sm);
    padding: 8px 16px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.btn--lg {
    font-size: var(--font-size-md);
    padding: 13px 40px;
    height: 48px;
    border-radius: var(--radius-md);
}

.btn--xl {
    font-size: var(--font-size-lg);
    padding: 16px 48px;
    height: 56px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--text-inverse);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn--secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--tertiary {
    background-color: var(--color-white);
    color: var(--text-primary);
}

.btn--tertiary:hover {
    background-color: var(--color-light-grey);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
}

.btn--white:hover {
    background-color: var(--color-off-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--green {
    background-color: var(--color-green-bright);
    color: var(--color-primary);
    font-weight: 600;
}

.btn--green:hover {
    background-color: #4dee85;
    transform: translateY(-1px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card--dark {
    background: var(--color-near-black);
    color: var(--text-inverse);
}

.card--bordered {
    border: 1px solid var(--color-grey);
}

.card__body {
    padding: var(--space-xl);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ============================================
   GRID
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }

    .heading-xl { font-size: var(--font-size-3xl); }
    .heading-lg { font-size: var(--font-size-2xl); }
    .heading-md { font-size: var(--font-size-xl); }

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

    :root {
        --container-padding: 16px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

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

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

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

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(95, 255, 150, 0.2); }
    50% { box-shadow: 0 0 40px rgba(95, 255, 150, 0.4); }
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Intersection Observer Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
