/* =====================================================
   XYPHLA PRODUCT PAGE — DESIGN SYSTEM
   Ultra-modern, premium, agency-grade
   ===================================================== */

/* --- VARIABLES --- */
:root {
    --bg-void: #020408;
    --bg-surface: rgba(10, 14, 26, 0.7);
    --bg-card: rgba(13, 18, 35, 0.65);
    --primary: #3b82f6;
    --primary-bright: #60a5fa;
    --cyan: #06b6d4;
    --violet: #7c3aed;
    --emerald: #10b981;
    --text-main: #f1f5f9;
    --text-dim: #64748b;
    --text-mid: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(59, 130, 246, 0.3);
    --neon-blue: 0 0 40px rgba(59, 130, 246, 0.25);
    --neon-cyan: 0 0 40px rgba(6, 182, 212, 0.2);
    --radius-card: 20px;
    --radius-btn: 50px;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- GLOBAL BACKGROUND ---- */
.super-awesome-product {
    position: relative;
    background: var(--bg-void);
    min-height: 100vh;
    isolation: isolate;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* Dot-grid pattern */
.super-awesome-product::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient light orbs */
.super-awesome-product::after {
    content: "";
    position: fixed;
    top: -20%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
    animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 40px); }
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.product-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 150px 6% 90px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

/* FIX: removed broken ::before that had no positioned parent */
/* The violet ambient already handles right-side glow via super-awesome-product::after */

/* FIX: add position:relative so pseudo/child elements anchor correctly */
.hero-split-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* FIX: was missing */
}

.hero-split-right {
    position: relative;
}

/* Vertical accent line — now anchored to hero-split-left which has position:relative */
.hero-split-left::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 15%;
    width: 2px;
    height: 55%;
    background: linear-gradient(180deg, transparent, var(--cyan) 40%, transparent);
    opacity: 0.35;
    pointer-events: none;
}

.product-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan);
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.premium-badge i {
    font-size: 0.9rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 20px 0;
    background: linear-gradient(140deg, #ffffff 0%, #94a3b8 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 500px;
    margin: 0 0 36px 0;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    box-shadow: var(--neon-cyan);
}
.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.4);
    color: #fff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-main);
}

/* FIX: Pricing buttons need rounded corners, not full pill */
.pricing-card .btn {
    border-radius: 12px !important;
    width: 100%;
    padding: 14px;
    margin-top: auto;
    font-size: 0.95rem;
}

/* ---- HERO STATS STRIP ---- */
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-bright), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


/* =====================================================
   SLIDER (Hero Right)
   ===================================================== */
.product-slider-section {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
}

.slider-frame {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--neon-blue), 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
    background: #000;
}

/* FIX: lower z-index so it doesn't block controls-pill (z-index:10) */
.slider-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.55) 100%);
    z-index: 1; /* FIX: was 2, blocked controls */
    pointer-events: none;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-item {
    min-width: 100%;
    flex-shrink: 0;
}

.slide-item img,
.slide-item video {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.slider-controls-pill {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 10; /* stays above the gradient overlay */
}

.slider-prev, .slider-next {
    background: transparent;
    color: #fff;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.15); }

.slider-dots { display: flex; gap: 6px; }

.slider-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.3);
}
.slider-dot.active { background: var(--cyan) !important; width: 18px; border-radius: 3px; }


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

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 14px;
    padding: 5px 14px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.14);
    border-radius: 30px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 14px 0;
    letter-spacing: -0.03em;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =====================================================
   FEATURES — BENTO GRID (original classes kept for compat)
   ===================================================== */
.features-section {
    padding: 90px 6%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

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

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    transition: transform 0.4s var(--transition), border-color 0.3s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.1), transparent 50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover::before, .bento-card:hover::after { opacity: 1; }
.bento-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--neon-blue);
}

.bento-large  { grid-column: span 2; }
.bento-tall   { grid-row: span 2; }
.bento-huge   { grid-column: span 2; grid-row: span 2; }

.bento-icon {
    font-size: 1.3rem;
    color: var(--primary-bright);
    margin-bottom: 24px;
    background: rgba(59, 130, 246, 0.1);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    position: relative; z-index: 1;
    border: 1px solid rgba(59, 130, 246, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover .bento-icon { transform: scale(1.1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }

.bento-content { position: relative; z-index: 1; flex-grow: 1; }
.bento-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}
.bento-content p { color: var(--text-mid); line-height: 1.65; font-size: 0.92rem; margin: 0; }


/* =====================================================
   HOW IT WORKS — Vertical stepped cards (REDESIGNED)
   ===================================================== */
.workflow-section {
    padding: 80px 6%;
    position: relative;
    /* FIX: removed border-top/bottom that created a big "boxed" blank zone */
    background: transparent;
}

.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px; /* FIX: was no explicit gap, sections blended */
}

/* FIX: use a subtle section divider instead of borders */
.workflow-section::before {
    content: '';
    display: block;
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
    margin: 0 auto 0;
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
}

/* --- Benefits --- */
.workflow-benefits h2,
.timeline-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    color: var(--text-main);
}
.timeline-header p {
    font-size: 1rem;
    color: var(--text-mid);
    margin: 0;
}
.timeline-header { margin-bottom: 48px; }

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

/* FIX: benefit items had no min-height — they collapsed */
.benefit-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px 22px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--transition);
    min-height: 100px; /* FIX: prevents collapse */
}
.benefit-item:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.benefit-icon {
    font-size: 1rem;
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: transform 0.3s ease;
}
.benefit-item:hover .benefit-icon { transform: scale(1.1) rotate(-5deg); }

.benefit-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}
.benefit-content p { font-size: 0.88rem; color: var(--text-mid); margin: 0; line-height: 1.6; }


/* =====================================================
   HOW IT WORKS — VERTICAL STEP CARDS (new design)
   ===================================================== */
.steps-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    position: relative;
}

/* Horizontal connector between step cards */
.steps-vertical::before {
    content: '';
    position: absolute;
    top: 44px; /* Centre of the step number circle */
    left: 80px;
    right: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(59,130,246,0.15) 100%);
    z-index: 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 30px 24px;
    position: relative;
    z-index: 1;
    transition: all 0.35s var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4), var(--neon-blue);
}

.step-number {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--bg-void);
    border: 2px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(12px);
    opacity: 0.25;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.step-card:hover .step-number {
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.4);
}
.step-card:hover .step-number::after { opacity: 0.5; }

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    font-family: 'Space Grotesk', sans-serif;
}
.step-content p {
    color: var(--text-mid);
    line-height: 1.65;
    font-size: 0.87rem;
    margin: 0;
}

/* Old timeline kept for compatibility if PHP uses it */
.workflow-timeline-wrapper { position: relative; }
.timeline-scroll-area {
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255,255,255,0.04);
    cursor: grab;
}
.timeline-scroll-area::-webkit-scrollbar { height: 3px; }
.timeline-scroll-area::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 2px; }
.timeline-scroll-area::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.timeline-track {
    display: inline-flex;
    gap: 0;
    min-width: max-content;
    position: relative;
    padding-bottom: 10px;
}
.timeline-track::before {
    content: '';
    position: absolute;
    top: 27px; left: 60px; right: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(59,130,246,0.1) 100%);
    z-index: 0;
}

.timeline-node {
    position: relative; z-index: 1;
    width: 260px;
    display: flex; flex-direction: column;
    align-items: flex-start;
    padding: 0 28px;
}

.node-point {
    width: 54px; height: 54px;
    background: var(--bg-void);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    position: relative;
}
.node-glow {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(16px); opacity: 0.3; z-index: -1;
}
.node-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: #fff;
}
.node-content h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0 0 10px 0; font-family: 'Space Grotesk', sans-serif; }
.node-content p { color: var(--text-mid); line-height: 1.6; font-size: 0.88rem; margin: 0; }


/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing-section {
    padding: 80px 6% 100px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 36px 0 28px;
}

.billing-toggle {
    display: inline-flex;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(10px);
    gap: 4px;
}

.billing-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 9px 26px;
    border-radius: 40px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.billing-toggle-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.billing-save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-currency-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}
.pricing-currency-switch-inner {
    display: inline-flex;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(10px);
    gap: 4px;
}
.pricing-cur-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.pricing-cur-btn.active { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 2;
    margin-top: 32px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    transition: transform 0.4s var(--transition), border-color 0.3s ease, box-shadow 0.4s ease;
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pricing-card:hover::before { opacity: 1; }

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}

.pricing-card.featured {
    background: rgba(17, 25, 48, 0.9);
    border: 1px solid var(--primary);
    transform: translateY(-16px);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2), 0 30px 60px rgba(0,0,0,0.4);
}
.pricing-card.featured:hover {
    transform: translateY(-24px);
    box-shadow: 0 0 70px rgba(59, 130, 246, 0.3), 0 35px 70px rgba(0,0,0,0.5);
}
.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.07) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
    border-radius: inherit;
}

.featured-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(59,130,246,0.5);
    white-space: nowrap;
    z-index: 1;
}

.tier-name {
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: var(--text-main);
    position: relative; z-index: 1;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0 0 8px 0;
    position: relative; z-index: 1;
}
.tier-price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.05em;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}
.tier-price-suffix { color: var(--text-dim); font-size: 1rem; font-weight: 500; margin-bottom: 4px; }

.tier-subtext {
    color: var(--text-mid);
    font-size: 0.88rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
    position: relative; z-index: 1;
}

.tier-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0 0 22px 0;
    position: relative; z-index: 1;
}

.tier-billing-fee {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 20px 0;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    position: relative; z-index: 1;
}
.tier-billing-fee-label {
    font-size: 0.72rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.tier-billing-fee-amount { font-size: 0.85rem; color: var(--text-main); font-weight: 600; }

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
    position: relative; z-index: 1;
}
.tier-features li {
    display: flex; align-items: flex-start;
    gap: 12px;
    color: var(--text-mid);
    margin-bottom: 13px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.tier-features i { color: var(--emerald); margin-top: 2px; font-size: 0.82rem; flex-shrink: 0; }


/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
    background: rgba(10, 14, 26, 0.96);
    border: 1px solid var(--glass-border);
    padding: 48px 40px;
    border-radius: 24px;
    max-width: 460px; width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s var(--transition);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(59,130,246,0.08);
    overflow: hidden;
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-title { font-family: 'Space Grotesk', sans-serif; }

.close-btn {
    position: absolute; top: 18px; right: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-mid);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center;
}
.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    transform: rotate(90deg);
}

.form-group {
    display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 18px; text-align: left;
}
.form-group label {
    font-size: 0.78rem; color: var(--text-dim);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem; outline: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(59,130,246,0.04);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}


/* =====================================================
   REVEAL ANIMATION
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .product-hero-split {
        grid-template-columns: 1fr;
        padding: 120px 5% 70px;
        gap: 50px;
    }
    .hero-split-left { align-items: center; text-align: center; }
    .hero-split-left::after { display: none; } /* hide line on mobile */
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 28px; }
    .hero-desc { max-width: 580px; margin-left: auto; margin-right: auto; }
    .product-hero-content { align-items: center; }
    .premium-badge { align-self: center; }

    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pricing-card.featured { transform: translateY(0); }
    .pricing-card.featured:hover { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-huge  { grid-column: span 2; grid-row: span 1; }
    .bento-tall  { grid-row: span 1; }
    .steps-vertical::before { display: none; }
}

@media (max-width: 768px) {
    .features-section, .workflow-section { padding: 60px 5%; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-tall, .bento-huge { grid-column: span 1; grid-row: span 1; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .modal-content { padding: 36px 24px; }
    .steps-vertical { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .steps-vertical { grid-template-columns: 1fr; }
    .hero-stats { justify-content: flex-start; }
    .pricing-card.featured { transform: none; }
}


/* =====================================================
   BENTO GRID V2 — Clean 3×2, no empty cells
   No spanning — visual hierarchy via styling only
   ===================================================== */

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

/* ---- BASE CARD ---- */
.bv2-card {
    position: relative;
    background: rgba(10, 14, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;               /* FIX: was missing */
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition:
        transform 0.4s var(--transition),
        border-color 0.35s ease,
        box-shadow 0.45s ease;
    cursor: default;
    min-height: 240px;
}

/* Left accent strip — slides in on hover */
.bv2-card::before {
    content: '';
    position: absolute;
    top: 18%; left: 0;
    width: 3px; height: 64%;
    background: var(--accent, #3b82f6);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center;
    transition: opacity 0.4s ease, transform 0.45s var(--transition);
}

/* Bottom ambient glow wash */
.bv2-card::after {
    content: '';
    position: absolute;
    bottom: -25%; left: 5%; right: 5%; height: 55%;
    background: radial-gradient(
        ellipse,
        rgba(var(--accent-rgb, 59,130,246), 0.11) 0%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.bv2-card:hover {
    transform: translateY(-7px);
    border-color: rgba(var(--accent-rgb, 59,130,246), 0.28);
    box-shadow:
        0 22px 44px rgba(0,0,0,0.45),
        0 0 0 1px rgba(var(--accent-rgb, 59,130,246), 0.07) inset;
}
.bv2-card:hover::before { opacity: 1; transform: scaleY(1); }
.bv2-card:hover::after  { opacity: 1; }


/* ---- HERO CARD (index 0) — gradient BG, richer type ---- */
.bv2-hero {
    background: linear-gradient(
        145deg,
        rgba(10, 14, 26, 0.92) 0%,
        rgba(var(--accent-rgb, 59,130,246), 0.09) 100%
    );
    border-color: rgba(var(--accent-rgb, 59,130,246), 0.18);
    min-height: 290px;
    justify-content: space-between;
}
.bv2-hero .bv2-body h3 {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.bv2-hero .bv2-body p {
    font-size: 0.96rem;
    color: #94a3b8;
    line-height: 1.75;
}
/* Hero glow in top-right corner instead of bottom-right */
.bv2-hero .bv2-glow {
    bottom: auto;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    opacity: 0.35;
}


/* ---- STANDARD CARD ---- */
.bv2-standard {
    justify-content: flex-start;
}


/* ---- HORIZONTAL CARD (index 4) — icon left, text right ---- */
.bv2-h-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 22px;
    min-height: 200px;
    background: linear-gradient(
        120deg,
        rgba(10, 14, 26, 0.82) 0%,
        rgba(var(--accent-rgb, 59,130,246), 0.06) 100%
    );
}
.bv2-h-card .bv2-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bv2-h-card .bv2-stat { align-self: flex-start; margin-top: 4px; }


/* ---- CORNER TAG ---- */
.bv2-tag {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.8;
    color: var(--accent, #3b82f6);
    background: rgba(var(--accent-rgb, 59,130,246), 0.1);
    border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.22);
    padding: 4px 12px;
    border-radius: 30px;
    z-index: 2;
}


/* ---- ICON ---- */
.bv2-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(var(--accent-rgb, 59,130,246), 0.1);
    border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--accent, #3b82f6);
    flex-shrink: 0;
    position: relative; z-index: 1;
    transition: transform 0.35s var(--transition), box-shadow 0.35s ease;
}
.bv2-card:hover .bv2-icon {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 0 24px rgba(var(--accent-rgb, 59,130,246), 0.38);
}


/* ---- BODY TEXT ---- */
.bv2-body { position: relative; z-index: 1; flex-grow: 1; }
.bv2-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.bv2-body p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}


/* ---- STAT BUBBLE ---- */
.bv2-stat {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 3px;
    background: rgba(var(--accent-rgb, 59,130,246), 0.07);
    border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.15);
    border-radius: 14px;
    padding: 14px 18px;
    align-self: flex-end;
    min-width: 110px;
    transition: background 0.3s ease;
}
.bv2-card:hover .bv2-stat { background: rgba(var(--accent-rgb, 59,130,246), 0.13); }

.bv2-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem; font-weight: 800;
    color: var(--accent, #3b82f6);
    line-height: 1; letter-spacing: -0.04em;
}
.bv2-stat-label {
    font-size: 0.68rem; color: #64748b;
    text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600;
}


/* ---- CORNER DECORATIVE GLOW ---- */
.bv2-glow {
    position: absolute;
    bottom: -35px; right: -35px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--accent-rgb, 59,130,246), 0.16) 0%,
        transparent 65%
    );
    pointer-events: none; z-index: 0;
    transition: opacity 0.4s ease;
    opacity: 0.45;
}
.bv2-card:hover .bv2-glow { opacity: 1; }


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .bento-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .bv2-h-card { flex-direction: column; align-items: flex-start; }
    .bv2-h-card .bv2-stat { align-self: flex-start; }
}
@media (max-width: 640px) {
    .bento-grid-v2 { grid-template-columns: 1fr; }
    .bv2-hero { min-height: auto; }
    .bv2-h-card { flex-direction: column; }
}
