/* ========================================
   AutomatEn — Premium Futuristic Theme v2
   ======================================== */

:root {
    --bg-deep: #04080f;
    --bg-dark: #070d1a;
    --bg-card: rgba(10, 20, 45, 0.7);
    --glass-border: rgba(0, 180, 255, 0.12);
    --glass-bg: rgba(8, 20, 48, 0.55);

    --cyan: #00c8ff;
    --cyan-dim: rgba(0, 200, 255, 0.12);
    --cyan-glow: rgba(0, 200, 255, 0.35);

    --text-white: #f0f6ff;
    --text-mid: #8ba8c8;
    --text-muted: #4a6580;

    --font: 'Inter', sans-serif;
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    font-weight: 700;
}

p {
    line-height: 1.7;
    color: var(--text-mid);
}

.section {
    padding: 110px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    padding: 4px 14px;
    border-radius: 100px;
    background: var(--cyan-dim);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ---- GLASS ---- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
}

/* ---- REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(7, 13, 26, 0.97);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 20px 28px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 0.875rem;
    color: var(--text-mid);
    margin: 0;
}

.cookie-link {
    color: var(--cyan);
    text-decoration: none;
}

.cookie-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept,
.cookie-reject {
    padding: 9px 20px;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.cookie-accept {
    background: var(--cyan);
    color: var(--bg-deep);
    border-color: var(--cyan);
}

.cookie-accept:hover {
    background: #33d6ff;
}

.cookie-reject {
    background: transparent;
    color: var(--text-mid);
}

.cookie-reject:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(4, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 28px;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.logo-accent {
    color: var(--cyan);
}

.nav-cta {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg-deep);
    background: var(--cyan);
    padding: 10px 22px;
    border-radius: var(--r-sm);
    transition: all 0.2s ease;
    box-shadow: 0 0 16px var(--cyan-glow);
}

.nav-cta:hover {
    background: #33d6ff;
    box-shadow: 0 0 28px var(--cyan-glow);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cyan);
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 28px var(--cyan-glow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #33d6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 40px var(--cyan-glow);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: var(--r-sm);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: transparent;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.btn-ghost .arrow {
    transition: transform 0.2s;
}

.btn-ghost:hover .arrow {
    transform: translateX(4px);
}

.mt-btn {
    margin-top: 32px;
    display: inline-flex;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(0, 100, 200, 0.12) 0%, transparent 70%),
        linear-gradient(to bottom, transparent 60%, var(--bg-deep) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--glass-border);
    padding: 5px 16px;
    border-radius: 100px;
    background: var(--cyan-dim);
    margin-bottom: 28px;
    animation: fadeDown 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--text-white);
    margin-bottom: 24px;
    max-width: 820px;
    word-break: break-word;
    overflow-wrap: break-word;
    animation: fadeUp 0.9s 0.15s ease both;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-mid);
    max-width: 600px;
    margin-bottom: 44px;
    animation: fadeUp 0.9s 0.25s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.9s 0.35s ease both;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    animation: fadeUp 0.9s 0.45s ease both;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
}

.metric-sep {
    width: 1px;
    height: 44px;
    background: var(--glass-border);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease infinite;
}

.scroll-dot {
    width: 28px;
    height: 44px;
    border: 2px solid var(--glass-border);
    border-radius: 100px;
    position: relative;
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 100px;
    animation: scrollPulse 2s ease infinite;
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 32px 26px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.problem-card:hover {
    border-color: rgba(0, 200, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.problem-card:hover::after {
    opacity: 1;
}

.problem-icon {
    width: 52px;
    height: 52px;
    background: var(--cyan-dim);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--cyan);
    transition: all 0.3s;
}

.problem-icon svg {
    width: 22px;
    height: 22px;
}

.problem-card:hover .problem-icon {
    background: rgba(0, 200, 255, 0.22);
}

.problem-card h3 {
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 0.88rem;
}

/* ========================================
   SOLUTION SECTION
   ======================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.solution-block {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.solution-block:hover {
    border-color: rgba(0, 200, 255, 0.25);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.sol-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 200, 255, 0.15);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -2px;
}

.sol-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.sol-content p {
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.sol-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid var(--glass-border);
    padding: 3px 12px;
    border-radius: 100px;
}

/* ========================================
   HOW IT WORKS — FIXED TIMELINE
   ======================================== */
.hiw-section {
    background: var(--bg-dark);
}

.timeline-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Row 1: Nodes with connecting line */
.timeline-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    margin-bottom: 28px;
}

/* The horizontal connector line */
.tl-connector {
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan) 10%, var(--cyan) 90%, transparent 100%);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.tl-step {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.ts-node {
    width: 72px;
    height: 72px;
    background: var(--bg-dark);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px var(--cyan-glow);
    margin: 0 auto;
    position: relative;
}

.ts-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
}

.ts-card {
    padding: 28px 24px;
    flex-grow: 1;
}

.ts-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.ts-card p {
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.ts-duration {
    font-size: 0.72rem;
    color: var(--cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   INTEGRATIONS STRIP
   ======================================== */
.integrations-section {
    background: var(--bg-deep);
}

.integrations-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 36px 40px;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 36px;
    color: var(--text-mid);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: color 0.2s;
    flex: 1;
    min-width: 120px;
}

.integration-item:hover {
    color: var(--cyan);
}

.int-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.integration-item:hover .int-icon {
    color: var(--cyan);
}

.int-icon svg {
    width: 24px;
    height: 24px;
}

.int-divider {
    width: 1px;
    height: 60px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* ========================================
   DIFFERENTIATION
   ======================================== */
.diff-section {
    background: var(--bg-deep);
}

.diff-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.diff-inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.diff-title {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.diff-desc {
    font-size: 1.02rem;
}

.diff-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--glass-border);
}

.diff-item:last-child {
    border-bottom: none;
}

.diff-dot {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--cyan-glow);
}

.diff-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.diff-item p {
    font-size: 0.87rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 36px 32px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    border-color: rgba(0, 200, 255, 0.25);
    transform: translateY(-3px);
}

.quote-icon {
    font-size: 4rem;
    font-weight: 900;
    color: var(--cyan);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.quote-text {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 28px;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--cyan-dim);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    flex-shrink: 0;
}

.quote-author strong {
    display: block;
    color: var(--text-white);
    font-size: 0.9rem;
}

.quote-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    background: var(--bg-deep);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: var(--bg-card);
    color: var(--text-white);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.faq-q:hover {
    background: rgba(0, 200, 255, 0.05);
}

.faq-q[aria-expanded="true"] {
    color: var(--cyan);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--cyan);
    transition: transform 0.3s, background 0.2s;
}

.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--cyan-dim);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(4, 8, 15, 0.6);
}

.faq-a.open {
    max-height: 300px;
}

.faq-a p {
    padding: 0 28px 24px;
    font-size: 0.93rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.02rem;
    margin-bottom: 32px;
}

.cta-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-mid);
}

.trust-check {
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    background: var(--cyan-dim);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    padding: 44px 40px;
    position: relative;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.req {
    color: var(--cyan);
}

input,
select {
    background: rgba(4, 12, 30, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 13px 16px;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238ba8c8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

select option {
    background: #07111f;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--cyan);
    color: var(--bg-deep);
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 24px var(--cyan-glow);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #33d6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--cyan-glow);
}

.btn-submit .btn-arrow {
    transition: transform 0.2s;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

.form-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    gap: 12px;
}

.form-success.show {
    display: flex;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 200, 255, 0.1);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--cyan);
    box-shadow: 0 0 32px var(--cyan-glow);
    margin-bottom: 8px;
}

.form-success h3 {
    color: var(--text-white);
    font-size: 1.4rem;
}

.form-success p {
    max-width: 320px;
}

/* ========================================
   FOOTER — ENHANCED
   ======================================== */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 28px;
    align-items: start;
}

.footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 14px;
    display: block;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 340px;
    margin-bottom: 22px;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: var(--cyan);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-nav-col a {
    font-size: 0.85rem;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-col a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 22px;
}

.footer-legal a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--cyan);
}

/* ========================================
   MOBILE FLOATING CTA
   ======================================== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 14px 20px;
    background: rgba(4, 8, 15, 0.95);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.mobile-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
}

/* ========================================
   KEYFRAMES
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateX(-50%) translateY(14px);
        opacity: 0;
    }
}

@keyframes countNum {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: 1fr 1fr;
    }

    .diff-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 44px;
    }

    .cta-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .roi-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .hero-title {
        font-size: 1.75rem;
        word-break: break-word;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-block {
        flex-direction: column;
    }

    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tl-connector {
        display: none;
    }

    .ts-node {
        width: 56px;
        height: 56px;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 22px;
        align-items: flex-start;
    }

    .metric-sep {
        width: 50px;
        height: 1px;
    }

    .diff-inner {
        padding: 32px 24px;
    }

    .form-container {
        padding: 32px 20px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .mobile-cta {
        display: block;
    }

    .integrations-strip {
        padding: 28px 20px;
    }

    .int-divider {
        display: none;
    }

    .integration-item {
        min-width: 100px;
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.5rem;
        word-break: break-word;
    }

    body {
        padding-bottom: 80px;
    }
}

/* ========================================
   HERO — SOCIAL PROOF BAR
   ======================================== */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
    animation: fadeDown 0.8s 0.05s ease both;
}

.sp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 10px #00e676;
    animation: pulse-green 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 6px #00e676;
    }

    50% {
        box-shadow: 0 0 18px #00e676;
    }
}

.sp-sep {
    color: var(--text-muted);
}

/* HERO URGENCY LINE */
.hero-urgency {
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
    animation: fadeUp 0.9s 0.4s ease both;
}

.hero-urgency a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}

.hero-urgency a:hover {
    text-decoration: underline;
}

/* ========================================
   TESTIMONIALS — RESULT BADGE
   ======================================== */
.testimonial-result {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00e676;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

/* ========================================
   CTA / FORM — NEW ELEMENTS
   ======================================== */

/* Form header inside the glass card */
.form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ROI mini-block */
.cta-roi-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 28px 0 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.roi-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 6px;
    border-right: 1px solid var(--glass-border);
}

.roi-item:last-child {
    border-right: none;
}

.roi-num {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
}

.roi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.35;
}

/* Urgency / scarcity block */
.cta-urgency {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(255, 165, 0, 0.06);
    border: 1px solid rgba(255, 165, 0, 0.18);
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    color: var(--text-mid);
}

.cta-urgency strong {
    color: #ffa733;
}

.urgency-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffa733;
    box-shadow: 0 0 10px rgba(255, 167, 51, 0.6);
    flex-shrink: 0;
    animation: pulse-orange 2s ease infinite;
}

@keyframes pulse-orange {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(255, 167, 51, 0.5);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 167, 51, 0.9);
    }
}

/* hero-sub strong */
.hero-sub strong {
    color: var(--text-white);
    font-weight: 700;
}

/* ========================================
   RESPONSIVE — new elements
   ======================================== */
@media (max-width: 768px) {
    .cta-roi-block {
        grid-template-columns: 1fr;
    }

    .roi-item {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .roi-item:last-child {
        border-bottom: none;
    }

    .hero-social-proof {
        font-size: 0.76rem;
        gap: 8px;
    }

    .fit-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    .exit-modal {
        padding: 32px 24px;
        margin: 16px;
    }
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ========================================
   AUTHOR AVATAR IMG (testimonials)
   ======================================== */
.author-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cyan-dim);
}

.author-avatar-img svg {
    width: 44px;
    height: 44px;
}

/* ========================================
   TIMELINE CTA
   ======================================== */
.timeline-cta {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   BTN FULL WIDTH
   ======================================== */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   EXIT INTENT MODAL
   ======================================== */
.exit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 15, 0.82);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.exit-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.exit-modal {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 48px 44px;
    margin: 20px;
    text-align: center;
    animation: modalSlideUp 0.4s ease both;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exit-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.exit-modal-close:hover {
    color: var(--text-white);
    background: var(--cyan-dim);
}

.exit-modal-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid var(--glass-border);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.exit-modal-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 14px;
    line-height: 1.2;
}

.exit-modal-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 28px;
    line-height: 1.65;
}

.exit-modal-desc strong {
    color: var(--text-white);
    font-weight: 600;
}

.exit-modal form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.exit-form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 0;
}

.exit-form-success.show {
    display: flex;
}

/* ========================================
   FIT SECTION (Is this for you?)
   ======================================== */
.fit-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.fit-card {
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.fit-card:hover {
    transform: translateY(-3px);
}

.fit-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.fit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.fit-icon-yes {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: #00e676;
}

.fit-icon-no {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    color: #ff5050;
}

.fit-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.fit-highlight-yes {
    color: #00e676;
}

.fit-highlight-no {
    color: #ff5050;
}

.fit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fit-list li {
    font-size: 0.9rem;
    color: var(--text-mid);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.fit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00e676;
    font-weight: 700;
    font-size: 0.8rem;
}

.fit-list-no li::before {
    content: '✕';
    color: #ff5050;
}

.fit-cta {
    text-align: center;
}

.fit-cta p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 20px;
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-white);
    margin: 16px 0 12px;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.legal-body {
    max-width: 820px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 18px;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 28px 0 12px;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    transition: border-color 0.2s;
}

.legal-section a:hover {
    border-color: var(--cyan);
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-section ul li {
    font-size: 0.95rem;
    color: var(--text-mid);
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
}

/* Cookie / Privacy table */
.legal-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.legal-table thead {
    background: rgba(0, 200, 255, 0.07);
}

.legal-table th {
    text-align: left;
    padding: 14px 18px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.legal-table td {
    padding: 14px 18px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
    line-height: 1.6;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tbody tr:hover td {
    background: rgba(0, 200, 255, 0.03);
}

.legal-table code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--cyan);
    background: var(--cyan-dim);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Bottom nav links */
.legal-footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.legal-footer-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer-nav a:hover {
    color: var(--cyan);
}

.legal-footer-nav span {
    color: var(--text-muted);
}

/* nav-logo as link on legal pages */
.nav-logo {
    text-decoration: none;
}

/* ========================================
   ROI CALCULATOR — BURNING MONEY COUNTER
   ======================================== */
.roi-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.roi-title-accent {
    color: var(--cyan);
    position: relative;
}

.roi-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ---- Controls panel ---- */
.roi-controls {
    padding: 40px 36px;
}

.roi-controls-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.roi-slider-group {
    margin-bottom: 28px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
}

.slider-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyan);
    min-width: 60px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease;
}

.roi-slider {
    --fill: 8%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: linear-gradient(to right, var(--cyan) 0%, var(--cyan) var(--fill), rgba(0, 200, 255, 0.15) var(--fill), rgba(0, 200, 255, 0.15) 100%);
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan-glow);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 3px solid var(--bg-dark);
}

.roi-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan-glow);
    cursor: pointer;
    border: 3px solid var(--bg-dark);
}

.roi-slider.slider-active::-webkit-slider-thumb,
.roi-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 24px var(--cyan-glow);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 0 2px;
}

/* ---- Breakdown table ---- */
.roi-breakdown {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.roi-bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.roi-bd-label {
    font-size: 0.85rem;
    color: var(--text-mid);
}

.roi-bd-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.roi-bd-annual .roi-bd-label,
.roi-bd-annual .roi-bd-val {
    font-size: 1rem;
    color: #ff6b6b;
}

.roi-bd-save {
    background: rgba(0, 230, 118, 0.05);
    border-radius: var(--r-sm);
    padding: 14px 12px;
    margin-top: 8px;
    border: 1px solid rgba(0, 230, 118, 0.15) !important;
    border-bottom: 1px solid rgba(0, 230, 118, 0.15) !important;
}

.roi-bd-save .roi-bd-label {
    color: #00e676;
    font-weight: 600;
    font-size: 0.8rem;
}

.roi-bd-save .roi-bd-val {
    color: #00e676;
    font-size: 1.15rem;
}

/* ---- Counter card ---- */
.roi-counter-wrap {
    position: relative;
}

.roi-counter-card {
    padding: 40px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s ease;
}

.roi-counter-card.counter-active {
    border-color: rgba(255, 80, 80, 0.3);
    box-shadow: 0 0 60px rgba(255, 80, 80, 0.1), 0 0 0 1px rgba(255, 80, 80, 0.15);
}

.roi-counter-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 80, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.roi-counter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.roi-counter-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.roi-currency {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff6b6b;
    line-height: 1;
    padding-top: 8px;
}

.roi-counter-num {
    font-size: 4rem;
    font-weight: 900;
    color: #ff6b6b;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    text-shadow: 0 0 40px rgba(255, 80, 80, 0.4);
    transition: text-shadow 0.3s;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
        text-shadow: 0 0 60px rgba(255, 80, 80, 0.7);
    }

    100% {
        transform: scale(1);
    }
}

.counter-pulse {
    animation: counterPulse 0.4s ease;
}

.roi-counter-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ---- Rate grid ---- */
.roi-rates {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 80, 80, 0.05);
    border: 1px solid rgba(255, 80, 80, 0.12);
    border-radius: var(--r-md);
    padding: 16px 0;
    margin-bottom: 20px;
}

.roi-rate-item {
    flex: 1;
    text-align: center;
    padding: 0 12px;
}

.roi-rate-val {
    font-size: 1rem;
    font-weight: 700;
    color: #ff8888;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.roi-rate-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.roi-rate-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 80, 80, 0.15);
    flex-shrink: 0;
}

/* ---- Payback badge ---- */
.roi-payback-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-mid);
    background: rgba(0, 200, 255, 0.07);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    margin-bottom: 24px;
}

.roi-payback-badge strong {
    color: #00e676;
}

/* ---- CTA ---- */
.btn-roi {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
}

/* ---- Glow orb ---- */
.roi-glow-orb {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 80, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   AI CHAT WIDGET
   ======================================== */
.chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    /* Window is positioned absolutely above the button on desktop,
       fixed viewport-anchored on mobile via media query */
}

/* ---- Toggle button ---- */
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cyan);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px var(--cyan-glow), 0 0 0 0 rgba(0, 200, 255, 0.35);
    position: relative;
    transition: all 0.25s ease;
    animation: chatPulse 3s ease infinite;
}

@keyframes chatPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px var(--cyan-glow), 0 0 0 0 rgba(0, 200, 255, 0.35);
    }

    50% {
        box-shadow: 0 4px 32px var(--cyan-glow), 0 0 0 12px rgba(0, 200, 255, 0);
    }
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 36px var(--cyan-glow);
}

.chat-toggle-icon {
    width: 26px;
    height: 26px;
    color: var(--bg-deep);
    flex-shrink: 0;
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
    animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.badge-pulse {
    animation: badgePing 1.5s ease infinite;
}

@keyframes badgePing {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ---- Chat window ---- */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 360px;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glass-border);
    z-index: 8999;
}

.chat-window.chat-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ---- Header ---- */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 200, 255, 0.08);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.chat-hdr-avatar {
    flex-shrink: 0;
}

.chat-hdr-info {
    flex: 1;
}

.chat-hdr-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
}

.chat-hdr-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    background: #00e676;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.chat-close-btn:hover {
    color: var(--text-white);
    background: var(--cyan-dim);
}

/* ---- Messages ---- */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 100px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-msg-user {
    justify-content: flex-end;
}

.chat-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.15);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='11' r='4' fill='rgba(0,200,255,0.6)'/%3E%3Cpath d='M4 25c0-5.52 4.48-10 10-10s10 4.48 10 10' fill='rgba(0,200,255,0.4)'/%3E%3C/svg%3E");
    background-size: cover;
}

.chat-bubble {
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.5;
    max-width: 260px;
}

.chat-bubble strong {
    color: var(--text-white);
}

.chat-bubble a {
    color: var(--cyan);
}

.chat-bubble-user {
    background: var(--cyan);
    color: var(--bg-deep);
    border-color: var(--cyan);
    border-radius: 16px 16px 4px 16px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Typing indicator */
.typing-indicator .chat-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator .chat-bubble span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s ease infinite;
}

.typing-indicator .chat-bubble span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .chat-bubble span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---- Options / quick-replies ---- */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 36px;
}

.chat-option-btn {
    padding: 7px 13px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--text-mid);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.chat-option-btn:hover:not(:disabled) {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.chat-option-btn.chosen {
    background: var(--cyan);
    color: var(--bg-deep);
    border-color: var(--cyan);
    font-weight: 600;
}

.chat-option-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ---- Diagnosis block ---- */
.diag-block {
    font-size: 0.82rem;
}

.diag-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.diag-stat {
    color: var(--text-mid);
    margin-bottom: 6px;
    line-height: 1.5;
}

.diag-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diag-list li {
    color: var(--text-mid);
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 200, 255, 0.07);
}

.diag-list li:last-child {
    border-bottom: none;
}

/* ---- Email input ---- */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
    background: rgba(4, 8, 15, 0.6);
    align-items: center;
    flex-shrink: 0;
}

.chat-email-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-white);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
}

.chat-email-input:focus {
    border-color: var(--cyan);
}

.chat-email-input::placeholder {
    color: var(--text-muted);
}

.chat-email-input.shake {
    animation: inputShake 0.4s ease;
    border-color: #ff4757;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cyan);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    flex-shrink: 0;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: #33d6ff;
    transform: scale(1.08);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .roi-layout {
        grid-template-columns: 1fr;
    }

    .chart-window {
        width: calc(100vw - 48px);
    }

    .chat-widget {
        bottom: 80px;
        right: 16px;
    }

    /* Prevent chat window from overflowing the right edge of the viewport
       on tablet / intermediate screen widths (Fix 5) */
    .chat-window {
        width: min(360px, calc(100vw - 32px));
    }
}

/* On very small screens, pin the chat window to the viewport */
@media (max-width: 600px) {
    .chat-window {
        position: fixed;
        bottom: 80px;
        left: 12px;
        right: 12px;
        width: auto;
        /* Use dvh (dynamic viewport height) so the chat doesn't shift
           when the virtual keyboard appears on mobile */
        max-height: 75dvh;
        top: auto;
        transform: scale(0.95) translateY(16px);
        transform-origin: bottom center;
        overscroll-behavior: contain;
    }

    .chat-window.chat-open {
        transform: scale(1) translateY(0);
    }
}

/* =====================================================
   RESPONSIVE — TABLET (max-width: 900px)
   ===================================================== */
@media (max-width: 900px) {

    .section {
        padding: 72px 0;
    }

    /* ROI calculator */
    .roi-layout {
        grid-template-columns: 1fr;
    }

    .roi-counter-wrap {
        order: -1;
    }

    /* Problem grid */
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Diff grid */
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fit grid */
    .fit-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 24px;
    }
}

/* =====================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .section-desc {
        font-size: 0.95rem;
    }

    /* Navbar */
    .nav-inner {
        padding: 16px 20px;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .metric-val {
        font-size: 2rem;
    }

    /* Problem */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Solution */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sol-card {
        flex-direction: column;
        gap: 16px;
    }

    /* Timeline */
    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 6px;
    }

    .tl-item {
        padding-left: 28px;
        margin-bottom: 40px;
    }

    .tl-dot {
        left: -6px;
        width: 14px;
        height: 14px;
    }

    .tl-item::before {
        left: 0;
    }

    /* Integrations — keep 3-col grid on mobile */
    .integrations-strip {
        padding: 4px 0;
    }

    .integration-item {
        padding: 24px 16px;
        gap: 8px;
    }

    .int-icon {
        width: 36px;
        height: 36px;
    }

    .integration-item span {
        font-size: 0.78rem;
    }

    /* ROI Calculator */
    .roi-controls {
        padding: 28px 20px;
    }

    .roi-counter-card {
        padding: 28px 20px;
    }

    .roi-counter-num {
        font-size: 3rem;
    }

    .roi-currency {
        font-size: 1.8rem;
    }

    .roi-rates {
        gap: 0;
    }

    .roi-rate-val {
        font-size: 0.9rem;
    }

    /* Differentiation */
    .diff-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Fit section */
    .fit-grid {
        grid-template-columns: 1fr;
    }

    .fit-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* FAQ */
    .faq-q {
        font-size: 0.9rem;
        padding: 18px 48px 18px 18px;
    }

    .faq-a {
        padding: 0 18px;
    }

    .faq-a.open {
        padding: 0 18px 18px;
    }

    /* Contact form */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .contact-proof {
        order: -1;
    }

    .proof-item {
        flex-direction: row;
        gap: 12px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Chat widget */
    .chat-widget {
        bottom: 80px;
        right: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
    }

    .chat-toggle {
        width: 52px;
        height: 52px;
    }

    /* Exit modal */
    .exit-modal-inner {
        padding: 32px 20px;
        margin: 16px;
        max-width: calc(100vw - 32px);
    }

    .exit-modal-title {
        font-size: 1.3rem;
    }

    /* Cookie banner */
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-btns {
        width: 100%;
    }

    .cookie-accept,
    .cookie-reject {
        flex: 1;
        text-align: center;
    }

    /* Mobile CTA */
    .mobile-cta {
        display: block !important;
    }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {

    .hero-title {
        font-size: clamp(1.7rem, 9vw, 2.2rem);
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .metric-val {
        font-size: 1.7rem;
    }

    .btn-primary {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .roi-counter-num {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .roi-currency {
        font-size: 1.5rem;
        padding-top: 4px;
    }

    .faq-section .container {
        padding: 0 16px;
    }

    .chat-window {
        max-height: 80vh;
    }

    .footer-brand .footer-logo {
        font-size: 1.4rem;
    }

    .client-types-grid {
        grid-template-columns: 1fr 1fr;
    }

    .client-type-card {
        padding: 24px 20px;
    }
}

/* ========================================
   CLIENT TYPES GRID
   ======================================== */
.client-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.client-type-card {
    padding: 28px 22px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-type-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.client-type-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 200, 255, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.client-type-card:hover::after {
    opacity: 1;
}

.ct-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.3));
}

.client-type-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.client-type-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .client-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .client-types-grid {
        grid-template-columns: 1fr;
    }
}