/* AlloFlow Website — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --indigo: #4f46e5;
    --purple: #9333ea;
    --teal: #0d9488;
    --coral: #f97316;
    --slate-900: #0f172a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: blobDrift 18s ease-in-out infinite alternate;
}

.blob:nth-child(2) {
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes blobDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }

    100% {
        transform: translate(15px, -10px) scale(1.02);
    }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit';
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--slate-900);
}

.nav-logo svg {
    color: var(--indigo);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

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

.nav-links .cta-btn {
    background: var(--slate-900);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
}

.nav-links .cta-btn:hover {
    background: #334155;
    transform: scale(1.04);
}

.nav-links .sponsor-btn {
    color: #db2777;
    background: #fdf2f8;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #fbcfe8;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #475569;
}

/* Section Containers */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.card i[data-lucide] {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover i[data-lucide] {
    transform: scale(1.15);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Buttons */
.btn-primary {
    background: var(--indigo);
    color: #fff;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: #4338ca;
    transform: scale(1.03);
}

.btn-secondary {
    background: #fff;
    color: #475569;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.02);
    }

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

@keyframes shadowScale {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0.05;
    }
}

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

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Card Cascade */
.reveal.visible .card,
.reveal.visible [style*="display:flex;gap:12px"] {
    opacity: 0;
    transform: translateY(16px);
    animation: cardCascade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.visible .card:nth-child(1),
.reveal.visible [style*="display:flex;gap:12px"]:nth-child(1) {
    animation-delay: 0.05s;
}

.reveal.visible .card:nth-child(2),
.reveal.visible [style*="display:flex;gap:12px"]:nth-child(2) {
    animation-delay: 0.1s;
}

.reveal.visible .card:nth-child(3),
.reveal.visible [style*="display:flex;gap:12px"]:nth-child(3) {
    animation-delay: 0.15s;
}

.reveal.visible .card:nth-child(4),
.reveal.visible [style*="display:flex;gap:12px"]:nth-child(4) {
    animation-delay: 0.2s;
}

.reveal.visible .card:nth-child(5),
.reveal.visible [style*="display:flex;gap:12px"]:nth-child(5) {
    animation-delay: 0.25s;
}

.reveal.visible .card:nth-child(6),
.reveal.visible [style*="display:flex;gap:12px"]:nth-child(6) {
    animation-delay: 0.3s;
}

.reveal.visible .card:nth-child(7) {
    animation-delay: 0.35s;
}

.reveal.visible .card:nth-child(8) {
    animation-delay: 0.4s;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--indigo);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 99;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* Features Jump Nav */
.jump-nav {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jump-nav-inner {
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.jump-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.jump-pill:hover {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 48px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit';
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 16px;
}

.footer-links a:hover {
    color: var(--indigo);
}

.footer p {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 16px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
}

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #475569;
}

/* Stat Counter */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit';
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--indigo);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Testimonial */
.testimonial-card {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    padding: 32px;
    position: relative;
}

.testimonial-card blockquote {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--indigo);
    font-size: 0.9rem;
}

.testimonial-card .role {
    font-size: 0.8rem;
    color: #64748b;
}

/* Kbd */
kbd {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 2px 0 #cbd5e1;
    color: #334155;
    display: inline-block;
    font-family: monospace;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 6px;
}

/* Allobot SVG Animations */
.allobot-svg {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    animation: allobotFloat 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes allobotFloat {

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

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

.allobot-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.allobot-glow {
    animation: allobotGlow 3s ease-in-out infinite;
}

@keyframes allobotGlow {

    0%,
    100% {
        fill-opacity: 0.15;
        r: 42;
    }

    50% {
        fill-opacity: 0.25;
        r: 46;
    }
}

.allobot-flame {
    transform-origin: top;
    animation: flameFlicker 0.1s infinite alternate;
}

@keyframes flameFlicker {
    from {
        transform: scaleY(1);
        opacity: 0.9;
    }

    to {
        transform: scaleY(1.1);
        opacity: 1;
    }
}

.allobot-wind {
    animation-name: windStreak;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes windStreak {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-40px);
        opacity: 0;
    }
}

.allobot-antenna-tip {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.allobot-wave {
    animation: signalWave 2s linear infinite;
    transform-origin: center;
}

@keyframes signalWave {
    0% {
        r: 5;
        opacity: 1;
        stroke-width: 2;
    }

    100% {
        r: 25;
        opacity: 0;
        stroke-width: 0;
    }
}

.allobot-hover-sync {
    animation: allobotHoverSync 4s ease-in-out infinite;
}

@keyframes allobotHoverSync {

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

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

.allobot-float-left {
    animation: allobotFloatArms 3s ease-in-out infinite;
}

.allobot-float-right {
    animation: allobotFloatArms 3.5s ease-in-out infinite;
}

@keyframes allobotFloatArms {

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

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

.allobot-blink {
    animation: allobotBlink 4s infinite;
    transform-origin: center;
}

@keyframes allobotBlink {

    0%,
    96%,
    98%,
    100% {
        transform: scaleY(1);
    }

    97%,
    99% {
        transform: scaleY(0.1);
    }
}