/* ============================================================
   OPERATOR — Premium Design System 2026
   ============================================================ */

:root {
    /* Color Palette */
    --bg-main: #f7f7f3;
    --bg-secondary: #efefe8;
    --bg-card: #ffffff;
    --bg-dark: #0f1517;
    --bg-dark-2: #161d1f;

    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.18);
    --border-light: rgba(15, 21, 23, 0.12);

    --text-primary: #111817;
    --text-secondary: #516261;
    --text-muted: #7a8786;
    --text-inverse: #ffffff;

    /* Brand Accents */
    --accent: #ff3b3b;
    --accent-primary: #ff3b3b;
    --accent-mid: #ff6b57;
    --accent-light: #ff9b8f;
    --accent-pale: #fff0ee;
    --accent-hover: #df2d2d;

    --accent-gradient: linear-gradient(135deg, #ff3b3b, #ff6b57);
    --hero-gradient: linear-gradient(145deg, #ff3b3b 0%, #ff6b57 52%, #ffb36b 100%);

    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;

    /* Shadows — layered depth */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-xl: 0 40px 80px rgba(0,0,0,0.12), 0 20px 40px rgba(0,0,0,0.08);
    --shadow-accent: 0 8px 32px rgba(255,59,59,0.25);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

body.menu-open {
    overflow: hidden;
}

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

::selection {
    background: rgba(255, 59, 59, 0.16);
    color: var(--text-primary);
}

/* ---- Subtle dot grid background ---- */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 800;
    max-width: 860px;
    margin-inline: auto;
    margin-bottom: var(--space-md);
}

.gradient-text {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 580px;
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.bg-secondary { background-color: var(--bg-secondary); }
.text-center { text-align: center; }
.text-success { color: var(--success); }

/* ============================================================
   BUTTONS
   ============================================================ */

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 0.95rem 2.2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.2) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
    transform: translateX(130%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,59,59,0.32);
    filter: brightness(1.08);
}

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

.btn-outline {
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: white;
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.6rem 1rem;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(14, 165, 164, 0.25);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    color: white;
    border-radius: 999px;
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 1.5rem));
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-fast);
    z-index: 1200;
    box-shadow: var(--shadow-md);
}

.skip-link:focus-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 500;
    transition: var(--transition-smooth);
}

/* Floating pill nav (before scroll) */
.main-header .header-inner {
    margin: 16px auto;
    max-width: 1160px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    border-color: var(--border-medium);
}

/* Logo */
.logo {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: -0.055em;
    color: var(--text-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: inline-block;
    margin-bottom: 1px;
}

/* Main nav */
.nav-main {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-main { display: flex; }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.85rem;
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    border: none;
    background: none;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link .chevron {
    width: 14px; height: 14px;
    opacity: 0.6;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-item.open .nav-link .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 240px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 600;
    pointer-events: none;
}

.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Dropdown — wide variant */
.nav-dropdown.wide {
    min-width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 1rem;
}

.dropdown-section-label {
    grid-column: 1 / -1;
    padding: 0.25rem 0.5rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dropdown-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.di-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.dropdown-item:hover .di-icon {
    background: var(--accent-pale);
    border-color: rgba(255,59,59,0.2);
}

.di-text { flex: 1; min-width: 0; }
.di-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.di-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-actions .btn-secondary {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}

.header-actions .btn-primary {
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(255,59,59,0.3);
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: none;
    border: 1px solid var(--border-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.mobile-menu-btn:hover { background: var(--bg-secondary); }

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile drawer */
.mobile-nav {
    position: fixed;
    top: 90px; left: 1rem; right: 1rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    z-index: 490;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: var(--transition-smooth);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: normal;
}
.mobile-nav a:hover { color: var(--text-primary); background: var(--bg-secondary); }

.mobile-nav-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

.mobile-nav-section {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.5rem 1rem 0.25rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    padding-top: calc(90px + var(--space-xl));
    padding-bottom: var(--space-xl);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(255,59,59,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.6rem;
    background: white;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0;
}

.hero-badge-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-badge-dot svg { width: 10px; height: 10px; color: white; }

.hero-subhead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero trust bar */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-item.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg,
.logo-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.trust-item svg {
    width: 15px; height: 15px;
    color: var(--success);
}

.trust-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--accent-pale);
    border: 1px solid rgba(255,59,59,0.2);
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ============================================================
   BENTO GRID — Rules Engine Section
   ============================================================ */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-box {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.bento-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.bento-box:hover {
    border-color: rgba(255,59,59,0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bento-box:hover::before { opacity: 1; }

.bento-box.featured {
    background: linear-gradient(135deg, #0f1517 0%, #301414 100%);
    border-color: rgba(255,59,59,0.3);
}

.bento-box.featured .bento-content h3,
.bento-box.featured .bento-content p { color: white; }
.bento-box.featured .bento-content p { color: rgba(255,255,255,0.6); }
.bento-box.featured::before { opacity: 1; }

.bento-content {
    padding: 2.25rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-pale);
    border: 1px solid rgba(255,59,59,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: auto;
    align-self: flex-start;
}

.bento-box.featured .bento-icon {
    background: rgba(255,59,59,0.25);
    border-color: rgba(255,59,59,0.4);
    color: var(--accent-light);
}

.bento-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.bento-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ============================================================
   AUTOMATION / STEPS SECTION
   ============================================================ */

.automation-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: var(--space-lg);
    position: relative;
}

@media (min-width: 768px) {
    .automation-steps {
        flex-direction: row;
        align-items: stretch;
    }
}

.step-card {
    flex: 1;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,59,59,0.15);
}

.step-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.step-icon {
    width: 60px; height: 60px;
    background: var(--accent-pale);
    border: 1px solid rgba(255,59,59,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
    transition: var(--transition-smooth);
}

.step-card:hover .step-icon {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

.step-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.step-connector {
    display: none;
    flex: 0 0 2px;
    align-self: center;
    height: 2px;
    width: 40px;
    background: linear-gradient(to right, var(--accent-pale), rgba(255,59,59,0.1));
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -5px; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-light);
}

@media (min-width: 768px) {
    .step-connector { display: block; }
}

/* ============================================================
   AI CONTACT CENTER
   ============================================================ */

.cc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: var(--space-lg);
}

@media (min-width: 640px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cc-grid { grid-template-columns: repeat(3, 1fr); } }

.cc-feature {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.cc-feature:hover {
    border-color: rgba(255,59,59,0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cc-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-pale);
    border: 1px solid rgba(255,59,59,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.1rem;
    transition: var(--transition-fast);
}

.cc-feature:hover .cc-icon { background: var(--accent); color: white; border-color: var(--accent); }

.cc-feature h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.cc-feature p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }

/* Chat mock */
.cc-showcase {
    margin-top: var(--space-lg);
    display: flex;
    justify-content: center;
}

.chat-mock {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, #0f1517, #301414);
}

.chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-name { font-weight: 600; font-size: 0.88rem; color: white; }
.chat-status { font-size: 0.75rem; color: #34d399; margin-top: 2px; }
.chat-channel-badge {
    margin-left: auto;
    padding: 0.28rem 0.75rem;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(52,211,153,0.25);
}

.chat-messages { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }

.chat-bubble {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 85%;
}
.chat-bubble.agent {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.chat-bubble.user {
    background: var(--accent-gradient);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
.chat-handover {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #92400e;
    font-weight: 500;
    align-self: stretch;
}
.chat-handover svg { flex-shrink: 0; color: #d97706; }

/* ============================================================
   VISIBILITY SECTION
   ============================================================ */

.vis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: var(--space-lg);
}

@media (min-width: 768px) { .vis-grid { grid-template-columns: repeat(3, 1fr); } }

.vis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vis-card:hover {
    border-color: rgba(255,59,59,0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vis-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(255,59,59,0.3);
}

.vis-card h3 { font-size: 1.1rem; }
.vis-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; flex: 1; }

.vis-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.vis-tag {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    width: fit-content;
}

/* Stats row */
.vis-stat-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: var(--space-lg);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, #0f1517, #301414);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.vis-stat-row::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,59,59,0.2) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .vis-stat-row { flex-direction: row; align-items: center; gap: 0; }
}

.vis-stat { flex: 1; text-align: center; padding: 0 1.5rem; position: relative; z-index: 1; }
.vis-stat-num {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.vis-stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.vis-stat-divider {
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.06);
}
@media (min-width: 768px) {
    .vis-stat-divider { width: 1px; height: 80px; flex-shrink: 0; }
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 992px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }

.benefit-list { list-style: none; margin-top: 2rem; }
.benefit-list li {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--accent-pale);
    border: 1px solid rgba(255,59,59,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-list strong { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.benefit-list span { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

.benefit-visual {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f1517 0%, #301414 100%);
    border: 1px solid rgba(255,59,59,0.2);
    position: relative;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.benefit-visual::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,59,59,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Dashboard Mock */
.dashboard-mock {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: rgba(255,255,255,0.04);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.mock-badge {
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.07);
}

.mock-badge.success {
    background: rgba(5,150,105,0.15);
    color: #34d399;
    border-color: rgba(52,211,153,0.25);
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
}

.progress-bar {
    width: 48%;
    height: 5px;
    background: rgba(255,255,255,0.07);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mock-button {
    margin-top: 0.5rem;
    padding: 0.8rem;
    text-align: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    letter-spacing: -0.01em;
}

.text-success.mock-badge { color: #34d399; }

/* ============================================================
   MODAL
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(9,9,11,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease forwards;
}

.modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 440px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 1rem; right: 1.5rem;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}
.close-modal:hover { color: var(--text-primary); }

.modal-content h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.modal-content p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.main-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 2.5rem;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand { max-width: 280px; }

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

.footer-brand p {
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    background: rgba(255,59,59,0.12);
    border: 1px solid rgba(255,59,59,0.25);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
}

.footer-links {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 1.25rem;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.link-group a {
    display: block;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.link-group a:hover { color: white; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.25);
    font-size: 0.82rem;
    transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .section { padding: 4rem 0; }
    .hero { padding-top: calc(74px + env(safe-area-inset-top, 0px) + 2.5rem); padding-bottom: 3rem; }
    .hero-title br { display: none; }
    .hero-trust { gap: 1rem; }
    .trust-dot { display: none; }
    .main-header .header-inner {
        margin: calc(8px + env(safe-area-inset-top, 0px)) auto 0;
        padding: 0 0.85rem;
        height: 50px;
        border-radius: 18px;
    }
    .logo {
        font-size: 1.15rem;
        gap: 0.45rem;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
    body.has-mobile-nav .header-actions .btn {
        display: none;
    }
    .mobile-nav {
        top: calc(64px + env(safe-area-inset-top, 0px));
        left: 0.75rem;
        right: 0.75rem;
        padding: 1rem;
        border-radius: 20px;
        max-height: calc(100dvh - 76px - env(safe-area-inset-top, 0px));
    }
    .hero-subhead {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 2rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .bento-grid > .bento-box {
        grid-column: auto !important;
    }
    .vis-stat-row {
        padding: 2rem 1.25rem;
    }
    .vis-stat {
        padding: 0;
    }
    .benefit-visual,
    .dashboard-mock,
    .modal-content {
        padding: 1.5rem;
    }
    .mock-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .progress-bar {
        width: 100%;
    }
    .footer-links {
        gap: 2rem;
    }
    .footer-bottom,
    .footer-bottom-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
    :root { --space-xl: 4.5rem; }
}

@media (max-width: 480px) {
    .hero-badge,
    .section-label,
    .footer-tagline {
        max-width: 100%;
        white-space: normal;
    }
}

/* Subpage-specific helpers (used in all pages) */
.page-hero {
    padding-top: calc(90px + 4rem);
    padding-bottom: 4rem;
    background: linear-gradient(to bottom, #f4f4f7, var(--bg-main));
    border-bottom: 1px solid var(--border-subtle);
}

.cta-banner {
    background: linear-gradient(135deg, #0f1517 0%, #301414 60%, #421818 100%);
    border-radius: 32px;
    padding: 5rem 3rem;
    text-align: center;
    border: 1px solid rgba(255,59,59,0.2);
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.cta-banner-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255,59,59,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.glass-panel {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.surface-hover {
    position: relative;
    isolation: isolate;
}

.surface-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(255,107,87,0.12), transparent 48%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
    z-index: -1;
}

.surface-hover:hover::after,
.surface-hover:focus-within::after {
    opacity: 1;
}

.form-feedback {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.6;
}

.form-feedback.is-visible {
    display: block;
}

.form-feedback.success {
    background: var(--success-bg);
    border: 1px solid rgba(5,150,105,0.2);
    color: var(--success);
}

.form-feedback.info {
    background: #ecfeff;
    border: 1px solid rgba(255,107,87,0.2);
    color: #0f766e;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-up,
    .fade-in-up.visible {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .btn::after,
    .surface-hover::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }

    .cta-banner-glow {
        width: 440px;
        height: 320px;
    }
}

/* Section divider */
.section-divider {
    width: 48px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

/* Highlight box */
.highlight-box {
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--accent-pale);
    border: 1px solid rgba(255,59,59,0.15);
}

/* Input base */
input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,59,59,0.12);
}
