/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero section */
.hero-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 40%),
        #0c0a09;
}

.hero-overlay {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Benefit cards */
.benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.1);
}

/* Origin section background */
.origin-bg {
    background:
        radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fef3c7;
}

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

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

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh; /* Use small viewport height for mobile */
        padding-top: env(safe-area-inset-top);
    }

    .benefit-card {
        padding: 1.25rem;
    }

    .benefit-card:hover {
        transform: none; /* Disable hover transform on touch devices */
    }

    .benefit-card:active {
        transform: scale(0.98);
        border-color: rgba(251, 191, 36, 0.3);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-section {
        min-height: 90svh;
    }

    .text-gradient {
        font-size: 2.25rem;
    }
}

/* Ensure touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .benefit-card {
        -webkit-tap-highlight-color: transparent;
    }

    .benefit-card:hover::before {
        opacity: 0;
    }

    .benefit-card:active::before {
        opacity: 1;
    }
}

/* Safe area padding for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1c1917;
}

::-webkit-scrollbar-thumb {
    background: #44403c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #57534e;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    body {
        background: white;
        color: black;
    }

    .text-gradient {
        -webkit-text-fill-color: #d97706;
    }
}