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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Premium design system */
:root {
    --bg-main: #F8F9FC;
    --bg-card: #FFFFFF;
    --brand-primary: #e64800;
    --brand-primary-hover: #cc4000;
    --brand-secondary: #f07c00;
    --accent-blue: #ffa600;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-muted-light: #64748b;
    --border-subtle: rgba(15, 23, 42, 0.06);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
    --ease-out-smooth: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Navigation hover: keep contrast with background (no same-colour hover) */
/* Orange header: white text, hover = full white + underline (logo excluded) */
header[class*="brand-primary"] a:not(:has(img)):hover {
    opacity: 1 !important;
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* White header: text links hover = brand orange (not logo, not filled buttons) */
header.bg-white a:not(:has(img)):not([class*="bg-"]):hover {
    opacity: 1 !important;
    color: var(--brand-primary) !important;
}
/* White header: filled button (e.g. Login) hover = slightly darker so it doesn’t blend */
header.bg-white a[class*="bg-"]:hover {
    opacity: 1 !important;
    filter: brightness(0.95);
}
/* Mobile menu (white dropdown): hover = brand colour + light tint */
.mobile-menu a:hover {
    color: var(--brand-primary) !important;
    background-color: rgba(242, 78, 0, 0.08) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.5s var(--ease-out-smooth);
}

/* Premium typography */
.font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

h1, h2, h3, .text-premium-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Premium cards: soft shadow, subtle border, generous radius */
.premium-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    transition: box-shadow 0.35s var(--ease-out-smooth), transform 0.35s var(--ease-out-smooth), border-color 0.3s ease;
}

.premium-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(230, 72, 0, 0.12);
}

/* Premium buttons: clear hierarchy, smooth hover */
.btn-premium {
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s var(--ease-out-smooth), box-shadow 0.25s var(--ease-out-smooth), background-color 0.2s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-premium:active {
    transform: translateY(0);
}

/* Premium section spacing and backgrounds */
.section-premium {
    background: var(--bg-main);
}

.section-premium-alt {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Hero premium: subtle depth */
.hero-premium {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #d63d00 100%);
    position: relative;
}

.hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* Page Transition Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@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 scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Form inputs — premium focus */
input, textarea, select {
    border-radius: var(--radius-sm);
    transition: box-shadow 0.25s var(--ease-out-smooth), border-color 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 72, 0, 0.12);
    border-color: var(--brand-primary);
}

/* Refined transitions (no global * — premium feel) */
button, a, input, textarea, .premium-card {
    transition-timing-function: var(--ease-out-smooth);
}

button,
a {
    position: relative;
    overflow: hidden;
}

/* Loading Skeleton Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Card elevation — premium lift */
.card {
    transition: transform 0.35s var(--ease-out-smooth), box-shadow 0.35s var(--ease-out-smooth);
}

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

/* Smooth Link Transitions */
a {
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--brand-primary);
}

/* FAQ Item Smooth Transitions */
.faq-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
    border-color: var(--brand-primary);
    background-color: rgba(242, 78, 0, 0.02);
}

/* Button Group Transitions */
.btn-group button {
    transition: all 0.3s ease;
}

.btn-group button:not(:last-child) {
    margin-right: 0.5rem;
}

/* Smooth Status Color Transitions */
.status-success {
    color: #10b981;
    animation: slideInUp 0.4s ease-out;
}

.status-error {
    color: #ef4444;
    animation: slideInUp 0.4s ease-out;
}

.status-warning {
    color: #f59e0b;
    animation: slideInUp 0.4s ease-out;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.4s ease-out, slideOutRight 0.4s ease-out 4.6s forwards;
    z-index: 9999;
    max-width: 400px;
    font-weight: 500;
}

.toast.success {
    background-color: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

.toast.error {
    background-color: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
}

.toast.warning {
    background-color: #f59e0b;
    color: white;
    border-left: 4px solid #d97706;
}

.toast.info {
    background-color: #3b82f6;
    color: white;
    border-left: 4px solid #2563eb;
}

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

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(242, 78, 0, 0.1);
    border-top: 3px solid var(--brand-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--brand-primary);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 500;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--brand-primary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Smooth Dropdown Animations */
.dropdown {
    animation: slideInDown 0.3s ease-out;
}

/* Input Group Styles */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

input::placeholder,
textarea::placeholder {
    transition: color 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: var(--brand-primary);
}

/* Section Animations */
section {
    animation: slideInUp 0.6s ease-out;
}

/* Header Animations */
header {
    animation: slideInDown 0.4s ease-out;
}

/* Feature card hover — subtle premium lift */
.flex.flex-col.items-start.premium-feature-card,
section .flex.flex-col.items-start {
    transition: transform 0.35s var(--ease-out-smooth), box-shadow 0.35s var(--ease-out-smooth), background-color 0.3s ease;
}

.flex.flex-col.items-start:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section — premium clip and depth */
.hero-clip {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    animation: slideInUp 0.8s var(--ease-out-smooth);
}

.hero-clip.hero-premium::before {
    border-radius: 0 0 0 0;
}

/* Price Box */
.price-box {
    background-color: var(--brand-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.price-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 124, 0, 0.3);
}

/* Logo */
.logo-b {
    clip-path: polygon(0% 25%, 100% 15%, 100% 100%, 0% 100%);
}

/* Logo Hover Effect */
img[alt*="Logo"] {
    transition: all 0.3s ease;
}

img[alt*="Logo"]:hover {
    filter: brightness(1.1);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    animation: slideInDown 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
    animation: slideInDown 0.3s ease-out;
}

/* Mobile Menu Item Animations */
.mobile-menu a {
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background-color: rgba(242, 78, 0, 0.1);
    padding-left: 1.2rem;
}

/* Pricing / plan buttons — premium */
.plan-button {
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.25s var(--ease-out-smooth), box-shadow 0.25s var(--ease-out-smooth), background-color 0.2s ease;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.plan-button:active {
    transform: translateY(0);
}

/* Premium pricing card */
.premium-pricing-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    transition: box-shadow 0.35s var(--ease-out-smooth), transform 0.35s var(--ease-out-smooth), border-color 0.3s ease;
}

.premium-pricing-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(15, 23, 42, 0.08);
}

/* Button Animations */
button, a[href*="Auth"], a[href*="Index"], .inline-block {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover: only primary-style buttons get lift (premium restraint) */
button.btn-premium:hover,
a.btn-premium:hover,
.inline-block.btn-premium:hover,
a[class*="bg-"]:not([class*="nav"]):hover {
    box-shadow: var(--shadow-lg);
}

/* Active/Click Effects */
button:active,
a:active {
    box-shadow: var(--shadow-sm);
}

/* Ripple Effect Animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* Floating launch countdown */
.countdown-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    min-width: 260px;
    max-width: 320px;
    animation: countdownFloatIn 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.countdown-float.hidden {
    display: none !important;
}

.countdown-float.minimized .countdown-grid {
    display: none;
}

.countdown-float.minimized .countdown-label {
    margin-bottom: 0;
}

@keyframes countdownFloatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.countdown-float-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.countdown-float-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-float-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.countdown-float-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.countdown-float-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.countdown-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.5rem 0.25rem;
}

.countdown-unit-value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
    color: #fff;
}

.countdown-unit-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.125rem;
}
