@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --bg: #ffffff;
    --surface: #fafafa;
    --surface-hover: #f4f4f5;
    --text: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --border-light: #f4f4f5;
    --dark: #09090b;
    --dark-hover: #27272a;
    --dark-surface: #18181b;
    --dark-border: #27272a;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    position: relative;
}

/* ----------------------- */
/* BACKGROUND ELEMENTS     */
/* ----------------------- */
.mesh-bg {
    position: absolute; top: 0; left: 0; right: 0; height: 120vh;
    overflow: hidden; z-index: -2; pointer-events: none;
    background: var(--bg);
}
.mesh-orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.6;
    animation: orbMove 20s infinite alternate ease-in-out;
}
.mesh-orb-1 { width: 600px; height: 600px; background: rgba(228, 228, 231, 0.8); top: -200px; left: -100px; }
.mesh-orb-2 { width: 500px; height: 500px; background: rgba(244, 244, 245, 0.9); top: 100px; right: -50px; animation-delay: -5s; }
.mesh-orb-3 { width: 700px; height: 700px; background: rgba(244, 244, 245, 0.7); bottom: -300px; left: 20%; animation-delay: -10s; }

.grid-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px), linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px; opacity: 0.8;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    pointer-events: none;
}

@keyframes orbMove {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* ----------------------- */
/* FLOATING HEADER (PILL)  */
/* ----------------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 24px 28px; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.scrolled { padding: 16px 20px; pointer-events: none; }
.nav.scrolled .nav-inner {
    pointer-events: auto; max-width: 1000px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(228, 228, 231, 0.7);
    border-radius: 20px; padding: 12px 32px;
    box-shadow: var(--shadow-md);
}

.nav-logo { height: 38px; transition: height 0.3s; }
.nav.scrolled .nav-logo { height: 32px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ----------------------- */
/* BUTTONS                 */
/* ----------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: 12px; 
    cursor: pointer; text-decoration: none; border: none; transition: all 0.2s ease;
}
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-dark { background: var(--text); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: var(--dark-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--surface); color: var(--text); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid var(--dark-border); }
.btn-outline-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 14px; border-radius: 14px; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(255,255,255,0.2); }

/* ----------------------- */
/* HERO SECTION            */
/* ----------------------- */
.hero { padding: 160px 28px 80px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; position: relative; overflow: hidden; }
.hero-content { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 100px; 
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    background: rgba(255,255,255,0.6); border: 1px solid var(--border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    margin-bottom: 24px; box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-badge-dot {
    width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.hero-title {
    font-size: clamp(38px, 4.5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 20px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-subtitle {
    font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 0 32px 0; line-height: 1.6;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

.hero-ratings {
    margin-top: 32px; display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-stars { color: #18181b; font-size: 16px; letter-spacing: 2px; }

.hero-stats {
    display: flex; gap: 40px; margin-top: 48px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-stat-item { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.hero-stat-desc { font-size: 13px; color: var(--text-muted); font-weight: 500; max-width: 110px; line-height: 1.4; }

/* ----------------------- */
/* GLASS MOCKUP PREVIEW    */
/* ----------------------- */
.preview-wrap {
    width: 100%; margin: 0; position: relative;
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.preview-card {
    background: var(--dark); border-radius: 20px; border: 1px solid var(--dark-border); overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--dark-border); background: #09090b; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.preview-url { margin-left: 14px; padding: 6px 16px; border-radius: 8px; background: #18181b; font-size: 11px; color: #a1a1aa; flex: 1; text-align: center; font-family: monospace; }
.preview-body { background: var(--dark); padding: 32px; min-height: 420px; position: relative; }

/* ----------------------- */
/* SECTION COMMON          */
/* ----------------------- */
.section { padding: 140px 28px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-label {
    display: inline-block; padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); margin-bottom: 20px;
}
.section-title { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 20px; }
.section-desc { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ----------------------- */
/* BENTO GRID (FEATURES)   */
/* ----------------------- */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(280px, auto)); gap: 24px; }
.bento-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
    display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); background: #fff; border-color: #d4d4d8; }
.bento-card.large { grid-column: span 2; grid-row: span 2; }
.bento-card.wide { grid-column: span 2; grid-row: span 1; }
.bento-card.small { grid-column: span 1; grid-row: span 1; }
.bento-icon {
    width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 20px; box-shadow: var(--shadow-sm);
}
.bento-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.03em; }
.bento-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ----------------------- */
/* INTEGRATIONS MARQUEE    */
/* ----------------------- */
.integrations-wrapper {
    position: relative; overflow: hidden; padding: 60px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee { display: flex; width: max-content; animation: scroll 30s linear infinite; gap: 32px; padding: 0 16px; }
.marquee-item {
    background: transparent; border: 1px solid var(--border); border-radius: 100px;
    padding: 10px 24px; display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600; color: var(--text-secondary);
    letter-spacing: -0.01em; transition: background 0.3s;
}
.marquee-item:hover { background: var(--surface-hover); }
.marquee-item .orb { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 16px)); } }

/* ----------------------- */
/* SECURITY & TECH (DARK)  */
/* ----------------------- */
.dark-section {
    background: var(--dark); color: #fff; padding: 120px 60px;
    margin: 80px auto; max-width: 1100px; border-radius: 40px; border: 1px solid var(--dark-border);
    position: relative; overflow: hidden;
}
.dark-section::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(39, 39, 42, 0.4) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
}
.dark-inner { margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dark-label {
    display: inline-block; padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    background: var(--dark-surface); border: 1px solid var(--dark-border); color: #a1a1aa; margin-bottom: 24px;
}
.dark-title { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; color: #fff; }
.dark-desc { font-size: 16px; color: #a1a1aa; margin-bottom: 40px; line-height: 1.7; }
.dark-features { display: flex; flex-direction: column; gap: 24px; }
.dark-feature { display: flex; align-items: flex-start; gap: 16px; }
.dark-icon {
    width: 40px; height: 40px; border-radius: 12px; background: var(--dark-surface); border: 1px solid var(--dark-border);
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.dark-feat-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.dark-feat-desc { font-size: 13px; color: #a1a1aa; line-height: 1.6; }

/* ----------------------- */
/* CTA SECTION             */
/* ----------------------- */
.cta-section { padding: 20px 28px 80px; text-align: center; max-width: 1100px; margin: 0 auto; }
.cta-card { padding: 80px 60px; background: var(--dark); border-radius: 40px; border: 1px solid var(--dark-border); position: relative; overflow: hidden; text-align: left; }
.cta-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%); pointer-events: none;
}
.cta-inner-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cta-title { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 24px; color: #fff; line-height: 1.1; }
.cta-desc { font-size: 16px; color: #a1a1aa; max-width: 440px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ----------------------- */
/* FOOTER                  */
/* ----------------------- */
.footer { padding: 60px 28px 40px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-copy { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ----------------------- */
/* ANIMATIONS              */
/* ----------------------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }


/* ----------------------- */
/* MOBILE MENU             */
/* ----------------------- */
.mobile-menu-toggle { display: none; }
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000; display: flex; flex-direction: column;
    padding: 24px; transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.mobile-nav-links a { font-size: 24px; font-weight: 700; color: var(--text); text-decoration: none; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; }

/* ----------------------- */
/* HOW IT WORKS            */
/* ----------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px;
    position: relative; transition: all 0.3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: #fff; }
.step-num {
    position: absolute; top: 24px; right: 24px; font-size: 64px; font-weight: 900;
    color: var(--border); opacity: 0.5; line-height: 1; pointer-events: none;
}
.step-icon {
    width: 56px; height: 56px; border-radius: 16px; background: var(--dark); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ----------------------- */
/* TESTIMONIALS            */
/* ----------------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.stars { display: flex; gap: 4px; margin-bottom: 20px; color: #f59e0b; }
.star-icon { width: 16px; height: 16px; fill: currentColor; }
.test-text { font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--text-secondary); margin-bottom: 32px; font-style: italic; }
.test-user { display: flex; align-items: center; gap: 12px; }
.test-user img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border); }
.test-name { font-weight: 700; font-size: 15px; }
.test-role { font-size: 13px; color: var(--text-muted); }

/* ----------------------- */
/* RESPONSIVE              */
/* ----------------------- */

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.large { grid-column: span 2; grid-row: span 1; }
    .bento-card.wide { grid-column: span 2; }
    .dark-inner { grid-template-columns: 1fr; gap: 60px; }
    .dark-section { border-radius: 32px; padding: 80px 40px; margin: 60px 20px; max-width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav.scrolled .nav-inner { max-width: 90%; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-toggle { display: flex !important; align-items: center; justify-content: center; padding: 8px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.wide, .bento-card.small { grid-column: span 1; }
    .hero { grid-template-columns: 1fr; padding: 120px 20px 60px; text-align: center; gap: 0; overflow: hidden; }
    .hero-content { align-items: center; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
    .hero-title { font-size: 36px; }
    .preview-wrap { display: none; }
    .ai-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .cta-actions { justify-content: center !important; }
    .cta-card { padding: 60px 24px; border-radius: 24px; text-align: center; }
    .cta-card .cta-desc { margin: 0 auto 40px auto !important; }
    .dark-section { margin: 40px 16px; border-radius: 24px; padding: 60px 20px; }
    .section-title { font-size: 32px; }
    .steps-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
