/* ============================================
   Name: FlatlyPage CMS
   Author: WebOrbiton Team
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;600;700&display=swap');

/* ──────────────────────────────────────────
   DARK THEME (default) — monochrome palette
   ────────────────────────────────────────── */
:root {
    --background: #0a0a0a;
    --foreground: #ffffff;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.10);
    --muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.12);
    --success: #ffffff;
    --navbar-bg: rgba(12, 12, 12, 0.75);
    --neon-primary: #ffffff;
    --neon-secondary: #ffffff;
    --orb-color: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --grid-line: rgba(255, 255, 255, 0.06);
}

/* ──────────────────────────────────────────
   LIGHT THEME — monochrome palette
   ────────────────────────────────────────── */
:root[data-theme="light"] {
    --background: #f4f4f4;
    --foreground: #0a0a0a;
    --card: rgba(255, 255, 255, 0.7);
    --card-hover: rgba(255, 255, 255, 0.95);
    --muted: #6b6b6b;
    --border: rgba(0, 0, 0, 0.10);
    --success: #0a0a0a;
    --navbar-bg: rgba(244, 244, 244, 0.85);
    --neon-primary: #0a0a0a;
    --neon-secondary: #0a0a0a;
    --orb-color: rgba(0, 0, 0, 0.04);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --grid-line: rgba(0, 0, 0, 0.06);
}


/* ──────────────────────────────────────────
   GLOBAL
   ────────────────────────────────────────── */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--background);
    color: var(--foreground);
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
    overflow-x: hidden;
}

/* noise overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* ambient orbs — subtle grey radials */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, var(--orb-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(180, 180, 180, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

main {
    margin-top: 50px !important;
}


/* ──────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────── */
h1, h2, h3, .logo, .stat-item h3, .pricing-card .price {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em !important;
}


/* ──────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────── */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    right: 20px;
    left: 20px;
    border-radius: 0px 0px 30px 30px;
    background: color-mix(in srgb, var(--navbar-bg), transparent 20%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .navbar {
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 1100px;
        border-radius: 30px;
        box-shadow: var(--glass-shadow);
    }

    .navbar:hover {
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
    }
}

.logo {
    transition: none;
}

.logo:hover {
    transform: none;
}

/* nav links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--foreground);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


/* ──────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────── */
.btn {
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* primary — filled */
.btn-primary {
    background: var(--foreground) !important;
    color: var(--background) !important;
    border: 1px solid var(--foreground) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* outline — ghost */
.btn-outline {
    border: 1px solid var(--border) !important;
    background: var(--card) !important;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--foreground) !important;
    transform: translateY(-2px);
    background: var(--card-hover) !important;
}


/* ──────────────────────────────────────────
   CARDS
   ────────────────────────────────────────── */
.feature-card, .pricing-card, .testimonial-card, .product-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.feature-card:hover {
    background: var(--card-hover);
    border-color: var(--foreground);
}

.pricing-card:hover, .testimonial-card:hover, .product-card:hover {
    background: var(--card-hover);
}

/* icon bounce */
.feature-card .icon, .product-card .icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .icon, .product-card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}


/* ──────────────────────────────────────────
   HERO
   ────────────────────────────────────────── */
.hero {
    padding-top: 220px;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    background: linear-gradient(180deg, var(--foreground) 30%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    padding-left: 24px;
}

/* kept for potential use */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* hero grid — static layer */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* hero grid — animated scanning lines */
.hero-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image:
        radial-gradient(ellipse at center, black 20%, transparent 70%),
        repeating-linear-gradient(90deg,
            transparent 0,
            black 20px,
            black 80px,
            transparent 100px,
            transparent 180px
        );
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    animation: pulse-flow 6s linear infinite;
}

@keyframes pulse-flow {
    0% {
        mask-position: 0 0, -180px 0;
    }
    100% {
        mask-position: 0 0, 180px 0;
    }
}


/* ──────────────────────────────────────────
   STATS
   ────────────────────────────────────────── */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}


/* ──────────────────────────────────────────
   FEATURE / PRICING LISTS
   ────────────────────────────────────────── */
.product-features li, .pricing-features li {
    transition: transform 0.2s ease, padding-left 0.2s ease;
}

.product-features li:hover, .pricing-features li:hover {
    transform: translateX(8px);
}

.product-features li::before, .pricing-features li::before {
    font-size: 0.8rem;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.product-features li:hover::before, .pricing-features li:hover::before {
    transform: scale(1.3);
}


/* ──────────────────────────────────────────
   PRICING — featured card
   ────────────────────────────────────────── */
.pricing-card.featured {
    background: var(--card-hover) !important;
    border-color: var(--foreground) !important;
}

:root[data-theme="light"] .pricing-card.featured {
    background: #ffffff !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card .price {
    transition: color 0.3s ease;
}


/* ──────────────────────────────────────────
   TESTIMONIALS
   ────────────────────────────────────────── */
.testimonial-card img {
    transition: transform 0.3s ease;
}

.testimonial-card:hover img {
    transform: scale(1.1);
}


/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    background: var(--background);
    transition: border-color 0.3s ease;
}

/* social icons */
.social-links a {
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--foreground);
    color: var(--background);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}


/* ──────────────────────────────────────────
   SECTIONS (placeholder)
   ────────────────────────────────────────── */
section {

}


/* ──────────────────────────────────────────
   TOGGLE
   ────────────────────────────────────────── */
.toggle-switch {
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch:hover {
    transform: scale(1.05);
}


/* ──────────────────────────────────────────
   MOBILE — ≤ 768px
   ────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        border-radius: 0;
        transform: none !important;
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 30px;
        animation: none;
    }

    .navbar:hover {
        border-color: var(--border);
        box-shadow: var(--glass-shadow);
    }

    .hero {
        padding-top: 120px;
    }

    body::after {
        background:
            radial-gradient(circle at 20% 10%, var(--orb-color) 0%, transparent 40%),
            radial-gradient(circle at 80% 90%, rgba(180, 180, 180, 0.04) 0%, transparent 40%);
    }
}


/* ──────────────────────────────────────────
   ACCESSIBILITY — reduced motion
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ──────────────────────────────────────────
   SCROLLBAR
   ────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}


/* ──────────────────────────────────────────
   TEXT SELECTION
   ────────────────────────────────────────── */
::selection {
    background: var(--foreground);
    color: var(--background);
}

::-moz-selection {
    background: var(--foreground);
    color: var(--background);
}