:root {
    --bg-dark: #07090f;
    --bg-light: #121826;
    --primary: #4f8aff;
    --secondary: #b366ff;
    --accent: #2addc3;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;

    background: rgba(7, 9, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.flowhi-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent) !important;
    text-decoration: none;
    border: 1px solid rgba(42, 221, 195, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(42, 221, 195, 0.07);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.flowhi-badge:hover {
    background: rgba(42, 221, 195, 0.15) !important;
    border-color: rgba(42, 221, 195, 0.5);
    transform: translateY(-1px);
}

.footer-flowhi {
    margin-bottom: 16px;
}

.flowhi-badge-lg {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.flowhi-badge-lg strong {
    color: var(--accent);
    font-weight: 700;
}

.flowhi-badge-lg:hover {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: rgba(79, 138, 255, 0.1);
    color: var(--primary) !important;
    border: 1px solid rgba(79, 138, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(79, 138, 255, 0.2);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
    margin-top: 25px;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(179, 102, 255, 0.3);
}

.btn-gradient:hover {
    box-shadow: 0 15px 35px rgba(179, 102, 255, 0.5);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main) !important;
    background: transparent;
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 60px;
    position: relative;
    overflow: hidden;
}

/* Background gradient blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.hero::before {
    top: 0%;
    left: 10%;
    background: var(--primary);
}

.hero::after {
    bottom: -10%;
    right: 10%;
    background: var(--secondary);
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    z-index: 2;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #a4c8ff, #e0c8ff, #2addc3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

/* AI Face Animation */
.hero-ai {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ai-face {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 50px var(--primary), 0 0 100px var(--secondary);
    animation: pulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    z-index: 10;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ring-1 {
    width: 150px;
    height: 150px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--accent);
    animation: rotate 8s linear infinite;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border-bottom: 2px solid var(--secondary);
    border-left: 2px solid var(--primary);
    animation: rotate 12s linear infinite reverse;
}

.ring-3 {
    width: 290px;
    height: 290px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    animation: rotate 20s linear infinite;
}

.ai-status {
    margin-top: 30px;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 3px;
    animation: blink 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 30px var(--primary);
    }

    100% {
        transform: scale(1.15);
        box-shadow: 0 0 80px #b366ff, 0 0 40px var(--accent);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Sections */
.section {
    padding: 120px 10%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 70px;
}

.dark-section {
    background: var(--bg-light);
    position: relative;
}

/* Interactive Glass Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: inherit;
}

#features .card {
    transform-style: preserve-3d;
}


.glass:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transform: translateZ(50px);
    display: inline-block;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
    transform: translateZ(30px);
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    transform: translateZ(20px);
}

/* How Grid */
.how-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.how-content {
    flex: 1;
}

.how-content h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.how-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.benefits li strong {
    color: var(--primary);
    margin-right: 8px;
    white-space: nowrap;
}

.how-image {
    flex: 1;
    position: relative;
}

.how-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(40px);
}

.chat-mockup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

.chat {
    padding: 18px 24px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.chat.user {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat.ai {
    background: linear-gradient(135deg, rgba(79, 138, 255, 0.15), rgba(163, 79, 255, 0.15));
    align-self: flex-start;
    border-top-left-radius: 4px;
    border: 1px solid rgba(179, 102, 255, 0.3);
    position: relative;
    color: #fff;
}

.chat.ai::after {
    content: 'BUD-i';
    position: absolute;
    top: -24px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 1px;
    font-weight: 600;
}

/* Pricing Grid */
.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 50px 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: rgba(179, 102, 255, 0.4);
    background: linear-gradient(to bottom, rgba(179, 102, 255, 0.05), rgba(0, 0, 0, 0));
    transform: scale(1.03);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 25px 50px rgba(179, 102, 255, 0.15);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(179, 102, 255, 0.4);
}

.pricing-card h3 {
    font-size: 1.8rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 25px 0;
    color: #fff;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card>p {
    font-size: 1.05rem;
    min-height: 50px;
}

.features-list {
    list-style: none;
    margin: 40px 0;
    flex-grow: 1;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: '✦';
    color: var(--secondary);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: var(--bg-dark);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-content p {
        margin: 0 auto 35px;
    }

    .how-grid {
        flex-direction: column;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 130px;
    }
}