/* ============================================================================
   Anseri.ai — Marketing Pages Stylesheet
   Standalone CSS for static HTML marketing pages.
   Mirrors the React app's index.css + custom styles.
   ============================================================================ */

/* ─── CSS Variables (same as React app) ──────────────────── */
:root {
    --background: 240 20% 4%;
    --foreground: 0 0% 95%;
    --card: 240 15% 8%;
    --card-foreground: 0 0% 95%;
    --primary: 239 84% 67%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 10% 12%;
    --secondary-foreground: 0 0% 95%;
    --muted: 240 10% 15%;
    --muted-foreground: 240 5% 55%;
    --accent: 187 94% 53%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 240 10% 15%;
    --input: 240 10% 15%;
    --ring: 239 84% 67%;
    --radius: 0.625rem;
}

/* ─── Base Styles ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html,
body {
    height: 100%;
    height: 100dvh;
    overscroll-behavior: none;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0a0a0f;
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ─── Glass Card ─────────────────────────────────────────── */
.glass-card {
    background-color: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* ─── Text Gradient ──────────────────────────────────────── */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
}

/* ─── Glow Border ────────────────────────────────────────── */
.glow-border {
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.glow-border:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: white;
    transition: all 0.3s;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    min-height: 44px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

@media (hover: none) {
    .btn-primary:hover {
        transform: none;
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    min-height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Touch Target ───────────────────────────────────────── */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ─── Mobile-friendly selects ────────────────────────────── */
select {
    font-size: 16px;
    min-height: 44px;
}

@media (min-width: 640px) {
    select {
        font-size: 14px;
    }
}

/* ─── Background Orbs ────────────────────────────────────── */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .bg-orb {
        filter: blur(64px);
        opacity: 0.5 !important;
    }
}

.bg-orb-indigo {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.bg-orb-cyan {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
}

/* ─── Grid Overlay ───────────────────────────────────────── */
.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@media (max-width: 768px) {
    .bg-grid {
        background-size: 40px 40px;
    }
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #1a1a24;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 3px;
    }
}

/* ─── Fade-Up Animation (replaces Framer Motion) ─────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* ─── Header Animation ──────────────────────────────────── */
@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-animate {
    animation: headerSlideDown 0.5s ease-out forwards;
}

/* ─── Glow Pulse ─────────────────────────────────────────── */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
    }
}

.animate-glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ─── Float Animation ────────────────────────────────────── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

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

/* ─── Spin Animation ─────────────────────────────────────── */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ─── Dropdown Styles ────────────────────────────────────── */
.nav-dropdown-panel {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown-chevron {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

/* ─── Mobile Menu ────────────────────────────────────────── */
.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.mobile-menu.open {
    max-height: calc(100dvh - 4rem);
    opacity: 1;
}

.mobile-accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.mobile-accordion-content.open {
    max-height: 2000px;
    opacity: 1;
}

/* ─── FAQ Accordion ──────────────────────────────────────── */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-answer.open {
    max-height: 500px;
    opacity: 1;
}

/* ─── Scroll Hint ────────────────────────────────────────── */
.scroll-hint {
    position: relative;
}

.scroll-hint::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(10, 15, 28, 0.8));
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 768px) {
    .scroll-hint::after {
        display: none;
    }
}

/* ─── Line Clamp ─────────────────────────────────────────── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}