/* FoundrsOS Landing Page Styles */

/* CSS Variables */
:root {
    --gradient-hero: linear-gradient(135deg, hsl(152 69% 40%) 0%, hsl(160 70% 35%) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(220 25% 8%) 0%, hsl(220 20% 12%) 100%);
    --shadow-soft: 0 4px 20px -4px hsl(220 20% 10% / 0.08);
    --shadow-card: 0 8px 40px -12px hsl(220 20% 10% / 0.12);
    --shadow-glow: 0 0 60px -10px hsl(152 69% 40% / 0.25);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: hsl(152 69% 40%);
    color: white;
}

::-moz-selection {
    background-color: hsl(152 69% 40%);
    color: white;
}

/* Utility Classes */
.text-gradient {
    background-image: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-hero {
    background-image: var(--gradient-hero);
}

.bg-gradient-dark {
    background-image: var(--gradient-dark);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.015;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: fadeIn 0.2s ease-out;
}

/* Button hover effects */
.btn-hero {
    background-image: var(--gradient-hero);
    box-shadow: 0 4px 14px 0 hsl(152 69% 40% / 0.4);
    transition: all 0.2s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 hsl(152 69% 40% / 0.5);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

/* Tool card styles */
.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    box-shadow: var(--shadow-card);
}

.tool-card.available:hover {
    border-color: hsl(152 69% 40% / 0.4);
}

/* Countdown timer */
.countdown-unit {
    font-variant-numeric: tabular-nums;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid hsl(152 69% 40%);
    outline-offset: 2px;
}

/* Responsive container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}
