/* ============================================
   BESELLO.COM - STYLES
   The Agentic Sales Platform
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --navy-deep: #0a1628;
    --electric-blue: #0284c7;
    --sky-blue: #0ea5e9;
    --cyan-accent: #06b6d4;
    --emerald: #10b981;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --slate-dark: #1e293b;
    --slate-border: #334155;
    --red: #ef4444;
    --nav-height: 64px;
    --nav-height-scrolled: 56px;
}

/* ---- Base ---- */
* {
    font-variant-ligatures: contextual;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-deep);
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Glass Morphism ---- */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-strong {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ---- Gradients ---- */
.gradient-blue {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-mesh {
    background:
        conic-gradient(from 45deg at 30% 40%, rgba(6, 182, 212, 0.12) 0%, transparent 25%),
        conic-gradient(from 200deg at 70% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 25%),
        radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 50%);
}

/* SVG noise overlay */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
    z-index: 0;
}

/* ---- Hover Effects ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(6, 182, 212, 0.2);
}

.border-gradient-hover {
    position: relative;
    overflow: hidden;
}

.border-gradient-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--cyan-accent), var(--purple), var(--cyan-accent));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease, background-position 0.8s ease;
}

.border-gradient-hover:hover::after {
    opacity: 1;
    background-position: 100% 100%;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid rgba(6, 182, 212, 0.5);
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
}

/* ---- Navigation ---- */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: height 0.3s ease, background 0.3s ease;
}

.nav-main.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(10, 22, 40, 0.95) !important;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
}

.nav-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--cyan-accent);
}

/* Mega Menu */
.mega-trigger {
    cursor: pointer;
    position: relative;
}

.mega-trigger .chevron {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 0.7em;
    margin-left: 4px;
}

.mega-menu {
    position: absolute;
    top: calc(var(--nav-height) - 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 680px;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    z-index: 110;
}

.mega-trigger:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s;
    text-decoration: none;
    color: #fff;
}

.mega-item:hover {
    background: rgba(6, 182, 212, 0.1);
}

.mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.mega-item-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.mega-item-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Mobile nav toggle */
.nav-mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--cyan-accent);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.1) 0%, transparent 40%);
}

.hex-grid-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='rgba(6, 182, 212, 0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.6);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.particle:nth-child(2) { animation-delay: 2s; }
.particle:nth-child(3) { animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Typewriter */
.typewriter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 1.4em;
}

.typewriter-text {
    color: var(--cyan-accent);
    font-weight: 800;
    border-right: 3px solid var(--cyan-accent);
    animation: blink-cursor 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes blink-cursor {
    0%, 100% { border-color: var(--cyan-accent); }
    50% { border-color: transparent; }
}

/* Hero Dashboard Mock */
.hero-dashboard {
    position: relative;
    perspective: 1200px;
    margin-top: 3rem;
}

.dashboard-frame {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transform: rotateX(4deg) rotateY(-2deg);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.dashboard-frame:hover {
    transform: rotateX(1deg) rotateY(0deg);
}

.dashboard-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.titlebar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    min-height: 220px;
}

.dash-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    padding: 14px;
}

.dash-card-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.dash-card-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.dash-mini-chart {
    margin-top: 8px;
    height: 30px;
}

/* Badge row */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan-accent);
}

/* ---- Stack Replacement Bar ---- */
.stack-bar {
    padding: 3rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(15, 23, 42, 0.3);
    overflow: hidden;
}

.stack-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stack-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
    position: relative;
    transition: opacity 0.3s;
}

.stack-logo-item:hover {
    opacity: 0.6;
}

.stack-logo-item .strike {
    position: absolute;
    top: 50%;
    left: -4px;
    right: -4px;
    height: 2px;
    background: var(--red);
    transform: rotate(-8deg);
    opacity: 0.7;
}

.stack-logo-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.stack-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #94a3b8;
}

/* ---- Section Shared ---- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 700px;
}

/* ---- AI Agents Tabs (Stripe-style) ---- */
.agents-section {
    padding: 6rem 0;
    position: relative;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    color: #cbd5e1;
}

.tab-btn.active {
    color: var(--cyan-accent);
    border-bottom-color: var(--cyan-accent);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.agent-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.agent-capabilities {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.agent-capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.agent-capabilities li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

/* ---- Omnichannel Hub ---- */
.hub-section {
    padding: 6rem 0;
    position: relative;
}

.hub-container {
    position: relative;
    max-width: 700px;
    margin: 3rem auto;
    aspect-ratio: 1;
}

.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
    z-index: 2;
    animation: hub-pulse 3s ease-in-out infinite;
}

@keyframes hub-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }
}

.hub-spoke {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    text-decoration: none;
    color: #fff;
}

.hub-spoke:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan-accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.hub-spoke.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan-accent);
}

.hub-spoke-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.hub-spoke-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
}

.hub-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.1));
    transform-origin: left center;
    z-index: 1;
}

.hub-detail-card {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    animation: fadeIn 0.3s ease;
}

.hub-detail-card.active {
    display: block;
}

/* Channel sequential light-up */
@keyframes channel-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; border-color: var(--cyan-accent); box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }
}

/* ---- Deep Research / Intelligence ---- */
.intel-section {
    padding: 6rem 0;
}

.intel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dossier-mock {
    position: relative;
    perspective: 800px;
}

.dossier-page {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.dossier-page + .dossier-page {
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
    opacity: 0.6;
}

.dossier-page + .dossier-page + .dossier-page {
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    z-index: -2;
    opacity: 0.3;
}

.dossier-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.15);
    margin-bottom: 10px;
}

.dossier-line.short { width: 60%; }
.dossier-line.med { width: 80%; }
.dossier-line.long { width: 95%; }

.callout-card {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-top: 1rem;
}

/* ---- CRM & Pipeline ---- */
.crm-section {
    padding: 6rem 0;
}

/* Demo containers */
.demo-container {
    position: relative;
    min-height: 350px;
    background: rgba(10, 22, 40, 0.5);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    overflow: hidden;
}

.crm-column {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 16px;
    min-height: 260px;
}

.deal-card {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

@keyframes slideToNextColumn {
    0% { transform: translateX(0); opacity: 1; }
    45% { transform: translateX(120%); opacity: 0.7; }
    55% { transform: translateX(-120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.deal-card-slide {
    animation: slideToNextColumn 3s ease-in-out;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.bento-item {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.bento-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(30, 41, 59, 0.7);
}

.bento-item.span-2 {
    grid-column: span 2;
}

.bento-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.bento-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.bento-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ---- Campaign / Automation ---- */
.campaign-section {
    padding: 6rem 0;
}

.workflow-mock {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.wf-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    text-align: center;
}

.wf-node-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid;
}

.wf-node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.wf-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-accent), rgba(6, 182, 212, 0.3));
    flex-shrink: 0;
    position: relative;
}

.wf-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 6px solid var(--cyan-accent);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* ---- Chrome Extension ---- */
.extension-section {
    padding: 6rem 0;
}

.browser-mock {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    overflow: hidden;
    max-width: 700px;
    margin: 2rem auto;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-url-bar {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #64748b;
}

.browser-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 300px;
}

.browser-page {
    padding: 20px;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.extension-panel {
    padding: 16px;
    background: rgba(10, 22, 40, 0.6);
}

.ext-profile-card {
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 12px;
}

.ext-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ext-field {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.ext-field-label { color: #64748b; }
.ext-field-value { color: var(--cyan-accent); font-weight: 600; }

/* ---- Analytics Dashboards ---- */
.analytics-section {
    padding: 6rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.mini-dashboard {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.mini-dashboard:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.mini-dash-title {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.chart-area {
    height: 80px;
    position: relative;
}

/* SVG chart drawing animation */
.chart-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease;
}

.chart-line.drawn {
    stroke-dashoffset: 0;
}

.chart-bar {
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chart-bar.drawn {
    transform: scaleY(1);
}

/* ---- Integrations ---- */
.integrations-section {
    padding: 6rem 0;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.integration-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.integration-tile:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.integration-icon {
    font-size: 1.5rem;
}

.integration-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.api-card {
    grid-column: span 2;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.code-snippet {
    background: rgba(10, 22, 40, 0.8);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    overflow-x: auto;
    margin-top: 8px;
}

.code-snippet .keyword { color: var(--purple); }
.code-snippet .string { color: var(--emerald); }
.code-snippet .comment { color: #4a5568; }

/* ---- Enterprise Strip ---- */
.enterprise-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.enterprise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.enterprise-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
}

.enterprise-item svg {
    color: var(--emerald);
}

/* ---- How It Works (Apple Cards) ---- */
.hiw-section {
    padding: 6rem 0;
}

.apple-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.apple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
}

.apple-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.apple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(148, 163, 184, 0.2);
    border-color: rgba(6, 182, 212, 0.3);
}

.apple-card:nth-child(1) { transition-delay: 0.1s; }
.apple-card:nth-child(2) { transition-delay: 0.2s; }
.apple-card:nth-child(3) { transition-delay: 0.3s; }

.step-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyan-accent);
}

.stat-card {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    transform: scale(1.05);
}

/* ---- Savings Calculator ---- */
.calculator-section {
    padding: 6rem 0;
    background: rgba(15, 23, 42, 0.3);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.calc-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.2);
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cyan-accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cyan-accent);
    cursor: pointer;
    border: none;
}

.calc-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cyan-accent);
    margin-top: 4px;
}

.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.calc-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--cyan-accent);
}

.calc-result {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.calc-savings-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

.calc-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    height: 200px;
    margin: 2rem 0;
}

.calc-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.calc-bar-fill {
    width: 80px;
    border-radius: 8px 8px 0 0;
    transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
}

.calc-bar-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ---- Comparison Table ---- */
.comparison-section {
    padding: 6rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: center;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.comparison-table th {
    font-weight: 700;
    background: rgba(15, 23, 42, 0.5);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-highlight {
    background: rgba(6, 182, 212, 0.08);
    border-left: 2px solid rgba(6, 182, 212, 0.3);
    border-right: 2px solid rgba(6, 182, 212, 0.3);
}

.comparison-table thead .comparison-highlight {
    border-top: 2px solid rgba(6, 182, 212, 0.3);
}

.comparison-table tbody tr:last-child .comparison-highlight {
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

/* ---- Pricing ---- */
.pricing-section {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: rgba(6, 182, 212, 0.5);
}

.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan-accent);
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.pricing-replaces {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
    font-size: 0.8rem;
    color: var(--emerald);
    font-weight: 600;
}

/* ---- FAQ ---- */
.faq-section {
    padding: 6rem 0;
}

.faq-item {
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.4);
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    background: rgba(15, 23, 42, 0.6);
}

.faq-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
}

/* ---- Final CTA ---- */
.final-cta {
    padding: 6rem 0;
    text-align: center;
}

/* ---- Footer ---- */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--slate-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.5rem 0 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #64748b;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--cyan-accent);
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--cyan-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-border);
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* ---- Sticky Mobile CTA ---- */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 12px 16px;
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
}

/* ---- Modal ---- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--cyan-accent);
    background: rgba(15, 23, 42, 0.8);
}

.form-input::placeholder {
    color: #64748b;
}

/* ---- Scroll Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 600ms; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 700ms; }

/* ---- Pipeline Funnel ---- */
.workflow-step {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.workflow-step.active {
    opacity: 1;
}

.workflow-arrow {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s ease;
}

.workflow-arrow.animate {
    stroke-dashoffset: 0;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.workflow-step.active .step-icon {
    animation: pulse-icon 2s ease-in-out infinite;
}

.step-detail {
    transition: opacity 0.8s ease;
}

.workflow-step.active .step-detail {
    opacity: 1 !important;
}

@keyframes flow-particle {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    25% { transform: translateY(70px) translateX(calc(var(--funnel-offset) * -0.2)) scale(0.95); }
    50% { transform: translateY(154px) translateX(calc(var(--funnel-offset) * -0.5)) scale(0.85); }
    75% { transform: translateY(238px) translateX(calc(var(--funnel-offset) * -0.75)) scale(0.75); opacity: 1; }
    100% { transform: translateY(301px) translateX(calc(var(--funnel-offset) * -0.9)) scale(0.6); opacity: 0; }
}

.flow-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--cyan-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.9);
    animation: flow-particle 5s ease-in infinite;
    pointer-events: none;
}

.flow-particle.stage-1 { background: #06b6d4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.9); }
.flow-particle.stage-2 { background: #0284c7; box-shadow: 0 0 10px rgba(2, 132, 199, 0.9); }
.flow-particle.stage-3 { background: #0369a1; box-shadow: 0 0 10px rgba(3, 105, 161, 0.9); }
.flow-particle.stage-4 { background: #075985; box-shadow: 0 0 10px rgba(7, 89, 133, 0.9); }
.flow-particle.stage-5 { background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 1); }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.6); }
}

.savings-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ---- Testimonials ---- */
.testimonials-section {
    padding: 6rem 0;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 20px;
}

.testimonial-stars {
    color: var(--amber);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.95rem;
}

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

.testimonial-result {
    margin-top: 1rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.8rem;
    color: var(--emerald);
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .nav-mobile-toggle {
        display: none;
    }
    .sticky-mobile-cta {
        display: none;
    }
}

@media (max-width: 1024px) {
    .agent-layout {
        grid-template-columns: 1fr;
    }
    .intel-layout {
        grid-template-columns: 1fr;
    }
    .calc-layout {
        grid-template-columns: 1fr;
    }
    .browser-body {
        grid-template-columns: 1fr;
    }
    .extension-panel {
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .apple-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .hero-dashboard {
        display: none;
    }
    .hub-container {
        max-width: 320px;
    }
    .hub-center {
        width: 80px;
        height: 80px;
        font-size: 0.65rem;
    }
    .hub-spoke {
        width: 56px;
        height: 56px;
    }
    .hub-spoke-icon { font-size: 1rem; }
    .hub-spoke-label { font-size: 0.55rem; }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item.span-2 {
        grid-column: span 1;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .integration-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .api-card {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .stack-logos {
        gap: 1.5rem;
    }
    .particle {
        display: none;
    }
    .glass-card {
        backdrop-filter: blur(10px);
    }
    .glass-strong {
        backdrop-filter: blur(12px);
    }
    .mega-menu {
        width: 95vw;
        grid-template-columns: 1fr;
    }
    .workflow-mock {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .calc-bar-chart {
        gap: 1rem;
    }
    .calc-bar-fill {
        width: 60px;
    }
    .section-heading {
        font-size: 1.75rem;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .flow-particle {
        display: none !important;
    }
    .particle {
        display: none !important;
    }
    .dashboard-frame {
        transform: none !important;
    }
}
