/* ================================
   Syntomic Landing Page - Premium Styles
   2025-2026 Design Trends Applied
   ================================ */

/* ================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================ */
:root {
    /* Electric Bioluminescence Color Palette */
    --color-primary: #8B5CF6;
    /* Vivid Purple */
    --color-primary-light: #A78BFA;
    /* Lighter Purple */
    --color-primary-dark: #6D28D9;
    /* Deeper Purple */
    --color-secondary: #06B6D4;
    /* Cyan */
    --color-secondary-light: #22D3EE;
    /* Light Cyan */
    --color-accent: #10B981;
    /* Emerald accent */
    --color-accent-warm: #F59E0B;
    /* Amber glow */

    /* Premium Dark Palette */
    --bg-deepest: #030712;
    /* Near black */
    --bg-dark: #0F0F1A;
    /* Rich dark blue-black */
    --bg-surface: #1A1A2E;
    /* Card surfaces */
    --bg-elevated: #252540;
    /* Elevated elements */

    /* Text Colors */
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Glow Effects */
    --glow-primary: rgba(139, 92, 246, 0.5);
    --glow-secondary: rgba(6, 182, 212, 0.5);
    --glow-accent: rgba(16, 185, 129, 0.4);

    /* Animation Timings */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
}

/* ================================
   BASE STYLES
   ================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Space Grotesk", system-ui, sans-serif;
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ================================
   COSMIC BACKGROUND - Enhanced
   ================================ */
.cosmic-bg {
    background: var(--bg-deepest);
    background-image:
        /* Primary glow orb */
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        /* Secondary glow orb */
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        /* Accent glow */
        radial-gradient(ellipse 50% 30% at 60% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        /* Subtle noise texture simulation */
        radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-deepest) 100%);
    position: relative;
}

.cosmic-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ================================
   GLASSMORPHISM PANELS - Enhanced
   ================================ */
.glass-panel {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* border-radius via utility classes */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.glass-panel:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-panel-highlight {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(6, 182, 212, 0.08) 50%,
            rgba(139, 92, 246, 0.06) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    /* border-radius via utility classes */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.5) 50%,
            transparent 100%);
}

/* ================================
   HERO LOGO CONTAINER - Premium
   ================================ */
.logo-glass-container {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 100px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(6, 182, 212, 0.2),
        inset 0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.logo-glass-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(139, 92, 246, 0.1) 60deg,
            transparent 120deg,
            rgba(6, 182, 212, 0.1) 180deg,
            transparent 240deg,
            rgba(139, 92, 246, 0.1) 300deg,
            transparent 360deg);
    animation: rotate-glow 15s linear infinite;
}

.logo-glass-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: radial-gradient(ellipse at 30% 30%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    border-radius: 48px;
    pointer-events: none;
}

/* ================================
   PREMIUM ANIMATIONS
   ================================ */
@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
        filter: blur(0);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: blur(2px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(139, 92, 246, 0.4),
            0 0 40px rgba(139, 92, 246, 0.2),
            0 0 60px rgba(139, 92, 246, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(139, 92, 246, 0.6),
            0 0 60px rgba(139, 92, 246, 0.3),
            0 0 80px rgba(139, 92, 246, 0.15);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ================================
   PREMIUM BUTTON STYLES
   ================================ */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-out-expo);
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary), var(--color-primary));
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    opacity: 1;
}



/* Secondary Button */
.btn-secondary {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(6, 182, 212, 0.2);
}

/* ================================
   GRADIENT TEXT
   ================================ */
.gradient-text {
    background: linear-gradient(135deg,
            var(--color-primary-light) 0%,
            var(--color-secondary) 50%,
            var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

.gradient-text-static {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================================
   FEATURE CARDS - Premium Hover
   ================================ */
.feature-card {
    position: relative;
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0) 0%,
            rgba(139, 92, 246, 0.3) 50%,
            rgba(6, 182, 212, 0) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Feature Card Icon Glow */
.feature-icon {
    position: relative;
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

/* ================================
   FAQ ACCORDION - Enhanced
   ================================ */
.faq-item {
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.faq-item:hover {
    transform: translateX(4px);
}

.faq-item details summary {
    transition: all var(--transition-normal);
}

.faq-item details[open] summary {
    color: var(--color-primary-light);
}

.faq-item details summary::-webkit-details-marker {
    display: none;
}

.expand-icon {
    transition: transform var(--transition-normal) var(--ease-out-expo);
}

details[open] .expand-icon {
    transform: rotate(180deg);
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

/* ================================
   FLOATING PARTICLES (Decorative)
   ================================ */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-secondary);
    animation: float 6s ease-in-out infinite;
}

.floating-particle:nth-child(2) {
    animation-delay: -2s;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.floating-particle:nth-child(3) {
    animation-delay: -4s;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

/* ================================
   ACCORDION ANIMATION
   ================================ */
/* Content wrapper - JS will set height dynamically */
details .accordion-content {
    overflow: hidden;
    transition: height 0.35s var(--ease-out-expo), opacity 0.25s var(--ease-out-expo);
}

/* Icon rotation */
details .accordion-icon {
    transition: transform 0.35s var(--ease-out-expo);
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

/* Remove default marker */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* List-none for Tailwind compatibility */
details summary {
    list-style: none;
}

/* ================================
   PRICING/CTA SECTION - Enhanced
   ================================ */
.cta-section {
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center,
            rgba(139, 92, 246, 0.15) 0%,
            transparent 60%);
    pointer-events: none;
}

/* ================================
   BADGE STYLES
   ================================ */
.badge-glow {
    position: relative;
    background: linear-gradient(135deg,
            rgba(6, 182, 212, 0.2) 0%,
            rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    animation: glow-pulse 3s ease-in-out infinite;
}

.badge-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(6, 182, 212, 0.4) 50%,
            transparent 100%);
    border-radius: 9999px;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

/* ================================
   PULSE DOT ANIMATION
   ================================ */
.pulse-dot {
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ================================
   HEADER - Enhanced
   ================================ */
.header-blur {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================================
   MOBILE MENU OVERLAY
   ================================ */
#mobile-menu {
    background: rgba(3, 7, 18, 0.92) !important;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal) var(--ease-out-expo);
}

#mobile-menu a {
    position: relative;
    overflow: hidden;
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

#mobile-menu a:hover::after {
    opacity: 1;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {

    .glass-panel,
    .glass-panel-highlight {
        border-radius: 16px;
    }

    .logo-glass-container {
        border-radius: 30px;
    }
}

/* ================================
   REDUCED MOTION PREFERENCE
   ================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   REVIEWS SECTION - Marquee
   ================================ */
.marquee-container {
    mask-image: linear-gradient(to right,
            transparent,
            black 20%,
            black 80%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 20%,
            black 80%,
            transparent);
}

@media (max-width: 768px) {
    .marquee-container {
        /* Wrapper just provides the mask */
        overflow: visible;
    }
}

.marquee-content {
    animation: scroll-x 40s linear infinite;
    width: max-content;
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .marquee-content {
        animation: none !important;
        width: 100%;
        display: flex !important;
        overflow-x: scroll !important;
        /* Force scroll visibility for touch */
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .marquee-content::before,
    .marquee-content::after {
        content: '';
        flex-shrink: 0;
        width: calc(7.5vw - 1rem);
        /* 7.5vw is (100vw - 85vw)/2. Subtract half the gap. */
    }

    .marquee-content::-webkit-scrollbar {
        display: none;
    }

    .duplicate-card {
        display: none;
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ================================
   METHODOLOGY OVERHAUL - App-Inspired UI
   ================================ */

/* Atomic Composition Visualization */
.mini-periodic-table {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.mini-atom {
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.atom-hook {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.atom-gap {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.atom-pivot {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.atom-ask {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.atom-annex {
    background: linear-gradient(135deg, #6B7280 0%, #374151 100%);
}

/* ================================
   LIQUID GLASS & BENTO GRID SYSTEM
   ================================ */

/* ================================
   ADVANCED REFRACTIVE GLASS SHADERS
   ================================ */

.refracted-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.refracted-glass:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
}

.bento-item-lg {
    grid-column: span 8;
}

.bento-item-sm {
    grid-column: span 4;
}

.bento-item-full {
    grid-column: span 12;
}

@media (max-width: 1024px) {

    .bento-item-lg,
    .bento-item-sm {
        grid-column: span 12;
    }
}

/* Methodology Feature Icons */
.feature-icon-glow {
    position: relative;
    z-index: 10;
}

.feature-icon-glow::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--glow-color, var(--glow-primary)) 0%, transparent 70%);
    opacity: 0.4;
    z-index: -1;
    filter: blur(10px);
}

/* SVG Monitor Animations */
.monitor-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-monitor 5s linear infinite;
}

@keyframes draw-monitor {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Atomic Bonding */
.bonding-lattice {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

.warp-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: warp 3s linear infinite;
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}