/* Draftr - Landing Page Styles */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --bg-primary: #050505;
    --bg-secondary: #111111;
    --bg-dark: #000000;
    --bg-card: #111111;
    --border-color: #1C1C1E;
    --border-light: #27272a;
    --primary-purple: #610094;
    --primary-light: #9B30FF;
    --accent: #CCFF4E;
    --accent-light: #ACFF50;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 100px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-reveal-delay-1 {
    transition-delay: 0.1s;
}

.scroll-reveal-delay-2 {
    transition-delay: 0.2s;
}

.scroll-reveal-delay-3 {
    transition-delay: 0.3s;
}

.scroll-reveal-delay-4 {
    transition-delay: 0.4s;
}

.scroll-reveal-delay-5 {
    transition-delay: 0.5s;
}

.scroll-reveal-delay-6 {
    transition-delay: 0.6s;
}

/* ============================================
   HERO ENTRY ANIMATIONS (CSS only, no JS)
   ============================================ */
.anim-fade-in {
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-d0 {
    animation-delay: 0s;
}

.anim-d1 {
    animation-delay: 0.12s;
}

.anim-d2 {
    animation-delay: 0.24s;
}

.anim-d3 {
    animation-delay: 0.36s;
}

.anim-d4 {
    animation-delay: 0.48s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.8);
    }
}

@keyframes float {

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

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition),
        backdrop-filter var(--transition),
        box-shadow var(--transition),
        padding var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-color);
    padding: 12px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.nav-btn):hover {
    color: var(--text-primary);
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--text-primary);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-links a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--primary-purple);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-btn.is-disabled,
.nav-btn.is-disabled:hover {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
    transform: none;
    box-shadow: none;
    background: var(--primary-purple);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary-purple);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 13px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: -20vh;
    width: 30vw;
    height: 150vh;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    filter: blur(60px);
    mix-blend-mode: screen;
}

.hero::before {
    left: 5vw;
    background: linear-gradient(180deg, var(--primary-purple) 0%, transparent 100%);
    transform-origin: top center;
    animation: sweepLeft 7s ease-in-out infinite alternate;
}

.hero::after {
    right: 5vw;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
    transform-origin: top center;
    animation: sweepRight 9s ease-in-out infinite alternate;
    animation-delay: -3s;
}

.hero .container {
    position: relative;
    z-index: 1;
}

@keyframes sweepLeft {
    0% {
        transform: rotate(-35deg);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: rotate(45deg);
        opacity: 0;
    }
}

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

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: rotate(-45deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: clamp(15px, 1.5vw, 17px);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   FEATURES GRID & WORLD MAP
   ============================================ */
.features {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Base World Map Wrapper */
.world-map-wrapper {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    max-width: 1600px;
    aspect-ratio: 198 / 100;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.world-map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* SVG Overlay for Arcs and Dots */
.world-map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-arcs path {
    fill: none;
    stroke: url(#line-gradient);
    stroke-width: 0.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawArc 6s ease-in-out infinite;
}

.map-arcs path.traveling-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.8px;
    stroke-linecap: round;
    /* A dash of 12 units (represents the traveling light segment) with a massive 500 unit gap so only one shows at a time */
    stroke-dasharray: 12 500;
    /* Animating to push the dash forward continuously */
    animation: travelArc 18s linear infinite;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
}

@keyframes travelArc {
    0% {
        stroke-dashoffset: 512;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes drawArc {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    40% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    60% {
        opacity: 0;
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.node-group circle {
    fill: var(--primary-light);
    filter: url(#glow);
    opacity: 1;
}

.node-group text {
    fill: var(--text-primary);
    font-size: 2px;
    font-weight: 500;
    text-anchor: middle;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.center-node circle {
    fill: var(--primary-purple);
    r: 1.5px;
    opacity: 1;
    animation: pulseCenter 2s infinite alternate;
}

.center-node text {
    opacity: 1;
    fill: var(--text-primary);
    font-size: 3px;
    font-weight: 700;
    animation: none;
}

@keyframes pulseNode {
    0% {
        opacity: 0;
        transform: scale(0.5);
        transform-origin: center;
    }

    15% {
        opacity: 1;
        transform: scale(1.2);
        transform-origin: center;
    }

    40% {
        opacity: 0.8;
        transform: scale(1);
        transform-origin: center;
    }

    60% {
        opacity: 0;
        transform: scale(0.5);
        transform-origin: center;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulseCenter {
    0% {
        filter: drop-shadow(0 0 1px var(--primary-purple));
    }

    100% {
        filter: drop-shadow(0 0 3px var(--primary-purple));
    }
}

.features .container {
    position: relative;
    z-index: 2;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

/* Base Light Glow (inner aura) */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--x, 50%) var(--y, 50%),
            rgba(97, 0, 148, 0.15),
            transparent 40%);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Border Glow using mask composite */
.feature-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(250px circle at var(--x, 50%) var(--y, 50%),
            var(--primary-light),
            transparent 40%);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Ensure content stays above the zero-indexed glows */
.feature-card>* {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.feature-card:hover .feature-icon svg {
    color: #ffffff;
    stroke: #ffffff;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    transition: all var(--transition);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   WORKFLOW / HOW IT WORKS
   ============================================ */
.workflow {
    padding: 60px 0 120px 0;
    min-height: 80vh;
    /* Ensure enough height for the interactive map */
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.workflow .section-header {
    margin-bottom: 300px;
    /* Force huge gap between the header and the map focus */
    position: relative;
    z-index: 5;
}

.workflow-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.workflow-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    cursor: default;
}

.workflow-step:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-tertiary);
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: all var(--transition);
}

.workflow-step:hover .step-num {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.workflow-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.workflow-image:hover {
    transform: scale(1.02);
}

.workflow-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   PLATFORMS
   ============================================ */
.platforms {
    padding: 80px 0;
    background: var(--bg-primary);
}

.platforms-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.platforms-text {
    text-align: center;
}

.platforms-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.platforms-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    color: var(--text-primary);
}

.platform-icon:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.platform-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   INTEGRATIONS
   ============================================ */
.integrations {
    padding: 80px 0 120px;
    background: var(--bg-primary);
    overflow: hidden;
}

.integrations-marquee {
    margin-bottom: 80px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track-reverse {
    animation: marqueeReverse 35s linear infinite;
}

.provider-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: -1.5px;
    opacity: 0.5;
    transition: opacity var(--transition), color var(--transition);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo:hover {
    opacity: 1;
    color: var(--text-primary);
}

.category-pill {
    padding: 14px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: default;
}

.category-pill:hover {
    background: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.quote-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-box blockquote {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-style: italic;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.quote-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.quote-author strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.quote-author span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   BENTO FEATURES
   ============================================ */
.bento-features {
    padding: 120px 0;
    background: var(--bg-primary);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px 32px 32px;
    transition: all var(--transition);
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.bento-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}

.bento-icon-main {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    position: absolute;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.bento-visual-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.15;
}

.bento-visual-dual {
    gap: 24px;
}

.bento-icon-left,
.bento-icon-right {
    max-width: 120px;
    max-height: 140px;
    object-fit: contain;
}

.bento-icon-left {
    animation: float 3.5s ease-in-out infinite;
}

.bento-icon-right {
    animation: float 3.5s ease-in-out infinite 0.5s;
}

.bento-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.bento-small {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
}

.bento-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.bento-small-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.bento-small:hover .bento-small-icon {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.bento-small:hover .bento-small-icon svg {
    stroke: white;
}

.bento-small-icon svg {
    width: 18px;
    height: 18px;
    transition: all var(--transition);
}

.bento-small h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.bento-small p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.testimonials-grid .testimonial-card:nth-child(4) {
    grid-column: 1 / 2;
}

.testimonials-grid .testimonial-card:nth-child(5) {
    grid-column: 2 / 4;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    color: #f59e0b;
}

.testimonial-card>p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: 120px 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.pricing-popular {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.pricing-popular:hover {
    border-color: var(--accent-light);
}

.pricing-popular .pricing-header p,
.pricing-popular .pricing-features li {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-popular .pricing-features svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.pricing-popular .btn-primary {
    background: white;
    color: var(--text-primary);
}

.pricing-popular .btn-primary:hover {
    background: var(--bg-secondary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--text-primary);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.pricing-header {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-popular .pricing-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.pricing-popular .pricing-price span {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--text-tertiary);
}

/* ============================================
   CTA BOTTOM
   ============================================ */
.cta-bottom {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.cta-bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-bottom-left h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-bottom-left p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cta-tag {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.cta-tag:hover,
.cta-tag.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.cta-bottom-right {
    display: flex;
    justify-content: center;
}

.cta-bottom-right img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.cta-bottom-right img:hover {
    transform: scale(1.03) rotate(1deg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand .logo-icon {
    color: white;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding: 140px 0 100px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.legal-header {
    margin-bottom: 64px;
}

.legal-header h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-header .last-updated {
    font-size: 14px;
    color: var(--text-tertiary);
}

.legal-content {
    max-width: 720px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.legal-content a:hover {
    color: var(--text-secondary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

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

    .workflow-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .workflow-image {
        order: -1;
    }

    .bento-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .testimonials-grid .testimonial-card:nth-child(4),
    .testimonials-grid .testimonial-card:nth-child(5) {
        grid-column: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-bottom-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .cta-tags {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .workflow {
        padding: 44px 0 52px;
        min-height: 460px;
    }

    .workflow .section-header {
        margin-bottom: 156px;
    }

    .world-map-wrapper {
        top: 61%;
        width: 175%;
        opacity: 0.72;
    }

    .integrations {
        padding-top: 40px !important;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: auto;
        bottom: auto;
        width: min(260px, calc(100vw - 48px));
        padding: 14px;
        background: linear-gradient(180deg, rgba(8, 8, 10, 0.98), rgba(17, 17, 17, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        z-index: 999;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top right;
        transition: opacity var(--transition),
            transform var(--transition),
            visibility var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 16px;
        padding: 10px 12px;
        border-radius: var(--radius-md);
        color: var(--text-primary);
    }

    .nav-links a:not(.nav-btn) {
        background: transparent;
    }

    .nav-links a:not(.nav-btn):hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-links .nav-btn {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: var(--radius-md);
        text-align: left;
        background: rgba(255, 255, 255, 0.04);
        font-size: 16px;
        font-weight: 500;
        box-shadow: none;
    }

    .nav-links .nav-btn.is-disabled,
    .nav-links .nav-btn.is-disabled:hover {
        opacity: 1;
        color: var(--text-tertiary) !important;
        background: rgba(255, 255, 255, 0.04);
        transform: none;
        box-shadow: none;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .features,
    .bento-features,
    .testimonials,
    .pricing,
    .cta-bottom {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-row {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-bottom-right img {
        max-width: 240px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .workflow {
        padding: 36px 0 44px;
        min-height: 410px;
    }

    .workflow .section-header {
        margin-bottom: 132px;
    }

    .world-map-wrapper {
        top: 60%;
        width: 190%;
    }

    .platforms,
    .quote-section {
        padding: 60px 0;
    }
}
