:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --primary-color: #0088cc;
    /* Telegram-like blue */
    --accent-color: #26a8ea;
    /* Lighter blue/cyan */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Space Mono', monospace;
    --font-handwriting: 'Caveat', cursive;
    --font-meta: 'Space Mono', monospace;
    --font-ui: 'Inter', sans-serif;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;

    --border-radius-pill: 9999px;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    padding: var(--spacing-lg);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Offset for fixed header */
main {
    padding-top: 70px;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9999;
    width: min(560px, calc(100vw - 32px));
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 136, 204, 0.12);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(120px);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.cookie-icon {
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-text {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-btn--decline {
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    color: #888;
}

.cookie-btn--decline:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #555;
}

.cookie-btn--accept {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.cookie-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.35);
}

/* === HEADER === */
.site-header {
    padding-bottom: var(--spacing-xs);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 136, 204, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
}

/* Logo */
.site-logo {
    height: 40px;
    width: auto;
    display: block;
    justify-self: start;
}

/* Remove unused wrapper style or keep empty if needed, currently index.html uses direct img */
.logo-wrapper {
    display: none;
}

/* Navigation - Telegram Style */
.main-nav {
    position: relative;
    justify-self: center;
}

.nav-list {
    display: flex;
    list-style: none;
    background: #f0f2f5;
    padding: 4px;
    border-radius: var(--border-radius-pill);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
    position: relative;
    z-index: 2;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-speed);
}

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

/* The Sliding Pill */
.nav-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: #fff;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    /* Hidden initially until JS sets it */
    width: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: auto;
    /* Let it shrink/grow as needed */
    justify-self: end;
    /* Push to right edge */
}

/* Language Switcher - Sliding Toggle */
.lang-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: var(--border-radius-pill);
    padding: 2px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 40px;
    width: 84px;
    justify-content: space-between;
}

.lang-opt {
    position: relative;
    z-index: 2;
    padding: 0 4px;
    transition: all 0.3s;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
}

/* Iconify styling inside opt */
.flag-icon {
    font-size: 24px;
    border-radius: 50%;
    display: block;
}

.lang-opt.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-pill {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 36px;
    background: rgba(0, 136, 204, 0.3);
    border-radius: var(--border-radius-pill);
    box-shadow: inset 0 0 5px rgba(0, 136, 204, 0.1);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* State class for ES active */
.lang-toggle.es-active .lang-pill {
    transform: translateX(40px);
}

/* Login Button - Volumetric Blue Pill with Handwritten Font */
.login-btn-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;

    /* Handwritten Font */
    font-family: var(--font-handwriting);
    font-size: 22px;
    /* Visual match for nav size */
    font-weight: 700;

    /* Blue Volumetric Style */
    background: linear-gradient(180deg, #26a8ea 0%, #0088cc 100%);
    box-shadow:
        0 4px 10px rgba(0, 136, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);

    border: none;
    padding: 0 24px;
    min-width: 100px;
    height: 40px;
    /* Match Nav/Lang height */
    border-radius: 20px;

    transition: all 0.2s ease;
}

.login-btn-new:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 15px rgba(0, 136, 204, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.05);
}

.login-btn-new:active {
    transform: translateY(1px);
    background: linear-gradient(180deg, #0088cc 0%, #26a8ea 100%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-text {
    /* Inherit font */
    color: #111;
    line-height: 1;
    white-space: nowrap;
}

/* === MAIN === */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    width: 100%;
    position: relative;
    padding: 0 0 var(--spacing-xl);
    margin-top: -32px;
    /* Pull closer to header to remove visual gap */
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

/* Visual Container (Image + Note) */
.visual-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    width: 100%;
    /* Ensure it can contain absolute children properly if needed, but inline-block usually shrinks. Let's keep inline-block for centering but ensure enough space. */
    text-align: center;
}

.hero-anim-container {
    width: 340px;
    height: 440px;
    position: relative;
    margin: 0 auto;
}

.message-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    background: #ffffff;
    /* WhatsApp Incoming Bubble Style */
    border-radius: 0 16px 16px 16px;
    padding: 10px 14px 8px 14px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 1px 0.5px rgba(0, 0, 0, 0.13),
        0 8px 16px rgba(0, 0, 0, 0.05);
    /* Soft realistic shadow */

    /* Animation Initial State */
    opacity: 0;
    transform: translate(-50%, 0) scale(0.9);
    transform-origin: center bottom;
    animation: stack-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* WhatsApp Message Content */
.mn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mn-header {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.mn-text {
    font-size: 15px;
    line-height: 1.3;
    color: #111;
}

.mn-time {
    font-size: 11px;
    color: #999;
    align-self: flex-end;
    margin-top: 2px;
}

/* Stacking Order & Delays */
.msg-1 {
    z-index: 1;
    margin-top: 100px;
    transform: translate(-50%, 0) rotate(-4deg);
    animation-delay: 0.1s;
    --final-rotate: -5deg;
    --final-y: 100px;
}

.msg-2 {
    z-index: 2;
    margin-top: 80px;
    animation-delay: 0.4s;
    --final-rotate: 3deg;
    --final-y: 80px;
    background: #fdfdfd;
}

.msg-3 {
    z-index: 3;
    margin-top: 60px;
    animation-delay: 0.7s;
    --final-rotate: -2deg;
    --final-y: 60px;
    background: #fafafa;
}

.msg-4 {
    z-index: 4;
    margin-top: 40px;
    animation-delay: 1.0s;
    --final-rotate: 4deg;
    --final-y: 40px;
    background: #f8f8f8;
}

.msg-5 {
    z-index: 5;
    margin-top: 20px;
    animation-delay: 1.3s;
    --final-rotate: -1deg;
    --final-y: 20px;
    background: #f5f5f5;
}

.msg-6 {
    z-index: 6;
    margin-top: 0px;
    animation-delay: 1.6s;
    --final-rotate: 2deg;
    --final-y: 0px;
    background: #ffffff;
}

/* Colors for Headers */
.msg-1 .mn-header {
    color: #f59e0b;
}

.msg-2 .mn-header {
    color: #8b5cf6;
}

.msg-3 .mn-header {
    color: #10b981;
}

.msg-4 .mn-header {
    color: #3b82f6;
}

.msg-5 .mn-header {
    color: #ef4444;
}

.msg-6 .mn-header {
    color: #06b6d4;
}

@keyframes stack-in {
    0% {
        opacity: 0;
        transform: translate(-50%, 120px) scale(0.8) rotate(0deg);
    }

    100% {
        opacity: 1;
        /* Use CSS Variables to maintain specific rotation per card */
        transform: translate(-50%, calc(-50% + var(--final-y))) scale(1) rotate(var(--final-rotate));
    }
}

.handwritten-note {
    position: absolute;
    top: 50%;
    right: 10%;
    /* Position to the right */
    transform: translateY(-50%) rotate(15deg);
    font-family: var(--font-handwriting);
    font-size: 32px;
    line-height: 1.1;
    color: var(--primary-color);
    width: 120px;
    text-align: center;
    z-index: 0;
    /* Behind or alongside image? User said "right of image". */
    pointer-events: none;
}

/* Responsive adjustment for note */
@media (max-width: 900px) {
    .handwritten-note {
        right: 0;
        font-size: 24px;
    }
}

/* Typography */
.main-heading {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 400;
    line-height: 1.1;
    /* Slightly looser for two lines */
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.main-heading .line {
    display: block;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 16px;
    /* Larger for readability */
    max-width: 580px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.7;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    /* Message Bubble Shape */
    border-radius: 24px 24px 24px 4px;
    padding: 12px 40px;
    /* Handwritten Font */
    font-family: var(--font-handwriting);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
    text-rendering: optimizeLegibility;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3);
    background-color: #0099e6;
}

.cta-button:active {
    transform: translateY(0);
}

/* --- How it works Section --- */
.how-section {
    padding: var(--spacing-xl) 0;
    width: 100%;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Left: Vertical Timeline */
.how-steps {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Each step row: track (node+line) + card */
.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Track: the vertical strip holding node + line ---- */
.step-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
    min-height: 100%;
}

/* ---- Node (numbered circle) ---- */
.step-node {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover .step-node {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

/* Node for pending step (last) */
.step-item[data-step="3"] .step-node {
    background: #e2e8f0;
    box-shadow: none;
}

.step-item[data-step="3"] .step-number {
    color: #94a3b8;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* Pulsing ring around active node */
.step-node-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(0, 136, 204, 0.35);
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Completed (step 1) node ring: static green hue */
.step-item[data-step="1"] .step-node-ring {
    border-color: rgba(16, 185, 129, 0.35);
}

.step-item[data-step="1"] .step-node {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ---- Connecting Line ---- */
.step-line {
    flex: 1;
    width: 2px;
    background: #e2e8f0;
    margin: 6px 0;
    border-radius: 2px;
    min-height: 56px;
    overflow: hidden;
    position: relative;
}

.step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    border-radius: 2px;
    background: linear-gradient(to bottom, #10b981, #0088cc);
    transition: height 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animate fill when parent step is visible */
.step-item.visible .step-line-fill {
    height: 100%;
}

/* Step 2 line is only half-filled (in progress) */
.step-item[data-step="2"] .step-line-fill {
    height: 50% !important;
    background: linear-gradient(to bottom, #0088cc, #e2e8f0);
}

/* ---- Card ---- */
.step-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 136, 204, 0.1);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-item:hover .step-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.2);
}

.step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.step-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.step-card p {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---- Status Badges ---- */
.step-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-done {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-active {
    background: rgba(0, 136, 204, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.status-pending {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Spinning icon for active status */
.spin-icon {
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Right: Video Placeholder */
.how-video-wrapper {
    width: 100%;
    position: relative;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #111 0%, #29323c 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 136, 204, 0.3),
        0 0 30px rgba(0, 136, 204, 0.2);
    /* Blue Glow */
}

/* Accent Background Blob */
.video-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.2) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    opacity: 0.6;
    pointer-events: none;
}

.play-button {
    font-size: 64px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.video-placeholder:hover .play-button {
    background: var(--primary-color);
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.4);
}

.video-label {
    font-family: var(--font-ui);
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 900px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-video-wrapper {
        order: -1;
        /* Video first on mobile? Or kept bottom. Let's keep bottom for flow. Steps first usually better for creating context. */
        order: 1;
    }
}

/* === FOOTER === */
/* ===== FOOTER ===== */
.site-footer {
    background: #1e293b;
    padding: 16px 0 0;
    margin-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

/* Subtle top glow */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 136, 204, 0.5), transparent);
}

.site-footer .container {
    max-width: 100%;
    padding: 0 40px;
}

/* 3-col inner grid: left | centre | right */
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    padding-bottom: 16px;
    align-items: start;
}

.footer-col:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* push contact block to right edge */
}

/* ---- Brand column ---- */
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

.footer-desc {
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    margin-bottom: 20px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-meta span {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Column shared ---- */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px;
}

/* ---- Legal links ---- */
.footer-links {
    align-items: center;
    /* centre heading + links under it */
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.25s, gap 0.25s;
}

.footer-link:last-child {
    border-bottom: none;
}

.footer-link:hover {
    color: #fff;
    gap: 12px;
}

.footer-link iconify-icon {
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.25s;
}

.footer-link:hover iconify-icon {
    opacity: 1;
}

/* ---- Social Buttons ---- */
.footer-social-icons {
    display: flex;
    flex-direction: row;
    gap: 14px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social-btn span {
    display: none;
    /* icon-only */
}

.footer-social-btn:hover {
    transform: translateY(-3px);
}

.social-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.social-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.social-tg {
    background: rgba(0, 136, 204, 0.12);
    color: #2aabee;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.social-tg:hover {
    background: rgba(0, 136, 204, 0.2);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.2);
}

.footer-social-btn iconify-icon {
    font-size: 30px;
}

/* ---- Bottom bar ---- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-bottom-divider {
    opacity: 0.4;
}

/* ---- Footer responsive ---- */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-social-icons {
        flex-direction: row;
    }

    .footer-social-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .header-inner {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: var(--spacing-md);
    }

    /* Reset grid alignments for flex */
    .site-logo,
    .main-nav,
    .header-actions {
        justify-self: auto;
        width: auto;
    }

    .nav-list {
        margin: var(--spacing-sm) 0;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .logo-wrapper {
        width: auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--spacing-md);
    }

    .main-heading {
        font-size: 42px;
    }

    .hero-image {
        width: 240px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* --- Benefits Section (Bento Grid) --- */
.benefits-section {
    padding: var(--spacing-xl) 0;
    width: 100%;
    margin-top: var(--spacing-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.section-title .highlight {
    color: var(--primary-color);
    font-style: italic;
    position: relative;
    display: inline-block;
}

/* Optional: underline highlight like hero note */
.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 136, 204, 0.1);
    z-index: -1;
    transform: rotate(-1deg);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 24px;
    width: 100%;
}

/* Card Base Style */
.bento-card {
    background: rgba(240, 249, 255, 0.9);
    /* Light Blue Tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    /* Matching Hero/Message bubbles */
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.0);
}

.bento-card h3 {
    font-family: var(--font-heading);
    /* SMSFlow uses Playfair for impact */
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.bento-card p {
    font-family: var(--font-ui);
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Card Specifics */

/* Card 1: Global Reach (Spans 2 columns) */
.card-global {
    grid-column: span 2;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: none;
}

.card-global .card-content {
    max-width: 55%;
    z-index: 2;
    position: relative;
}

.visual-map {
    position: absolute;
    right: -40px;
    bottom: -60px;
    font-size: 240px;
    color: rgba(38, 168, 234, 0.15);
    /* Soft Blue */
    transform: rotate(-15deg);
    transition: transform 0.5s ease;
}

.card-global:hover .visual-map {
    transform: rotate(-5deg) scale(1.05);
}

/* Card 2: Open Rates (Stat - Dark Mode) */
.card-stat {
    background: #111;
    color: white;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.card-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, #333, transparent);
    opacity: 0.5;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 1;
    background: linear-gradient(135deg, #26a8ea, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-family: var(--font-meta);
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* Card 3: Instant Delivery (Speed) */
.card-speed {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    /* Match Global Reach */
}

.card-icon {
    font-size: 32px;
    color: #ffffff;
    /* White icon */
    margin-bottom: auto;
    background: #0f172a;
    /* Dark Navy Background for icon */
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-speed:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Card 4: Easy API (Code) */
.card-api {
    background: #1e293b;
    /* Slate 800 */
    border: none;
}

.card-api h3 {
    color: white;
}

.card-api p {
    color: #94a3b8;
}

.code-snippet {
    font-family: 'Space Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: #4ade80;
    /* Green terminal text */
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-snippet code::before {
    content: '$ ';
    opacity: 0.5;
}

/* Card 5: Reliability */
.card-trust {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    /* Clean white */
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .card-global {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-global {
        grid-column: span 1;
    }

    .bento-card {
        min-height: 220px;
    }

    .stat-value {
        font-size: 64px;
    }
}

/* ===== CASES SECTION ===== */
.cases-section {
    padding: var(--spacing-xl) 0;
    width: 100%;
}

/* Grid: 3 equal columns, middle card spans all rows (featured) */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 24px;
    align-items: stretch;
}

/* Base Card */
.case-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 136, 204, 0.08);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.35s;

    /* Scroll entry animation */
    opacity: 0;
    transform: translateY(24px);
}

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

.case-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.18);
}

/* Featured card (center - real estate) */
.case-card--featured {
    background: linear-gradient(160deg, rgba(0, 136, 204, 0.06) 0%, rgba(255, 255, 255, 0.9) 50%);
    border-color: rgba(0, 136, 204, 0.18);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 32px 64px rgba(0, 136, 204, 0.12);
}

.case-card--featured:hover {
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 40px 80px rgba(0, 136, 204, 0.16);
}

/* Card Top Row: industry tag + channel */
.case-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.case-industry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
}

.case-channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    color: #25D366;
    /* WhatsApp green */
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 3px 10px;
    border-radius: 99px;
}

/* Title */
.case-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

.case-title small {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* Goal description */
.case-goal {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* Divider */
.case-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(0, 136, 204, 0.15), transparent);
}

/* Stats Grid */
.case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
    /* Push to bottom of card */
}

.case-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

/* Highlighted stat (key result) */
.highlight-stat {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.06) 0%, rgba(38, 168, 234, 0.04) 100%);
    border: 1px solid rgba(0, 136, 204, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.highlight-stat .stat-value {
    color: var(--primary-color);
}

/* Result Badge (featured card) */
.case-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    padding: 6px 14px;
    align-self: flex-start;
    margin-top: 4px;
}

/* Responsive Cases */
@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-card--featured {
        grid-column: 1 / -1;
    }

    .case-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: var(--spacing-xl) 0;
    width: 100%;
}

/* 5-column grid; all cards same height */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ---- Base Card ---- */
.pricing-card {
    background: rgba(224, 242, 254, 0.70);
    /* pale blue tint */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 136, 204, 0.08);
    border-radius: 24px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.35s;
    position: relative;
    /* Scroll entry */
    opacity: 0;
    transform: translateY(20px);
}

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

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04), 0 24px 40px rgba(0, 136, 204, 0.10);
    border-color: rgba(0, 136, 204, 0.18);
}

/* ---- Featured (Pro) Card ---- */
.pricing-card--featured {
    background: linear-gradient(160deg, #0088cc 0%, #0ea5e9 100%);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 136, 204, 0.35);
    padding-top: 38px;
    /* extra room for badge */
}

.pricing-card--featured:hover {
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.40);
}

/* All text inside featured card is white */
.pricing-card--featured .pricing-tier-label,
.pricing-card--featured .pricing-volume,
.pricing-card--featured .price-value,
.pricing-card--featured .price-unit,
.pricing-card--featured .pricing-example,
.pricing-card--featured .pricing-features li {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-card--featured .pricing-divider {
    background: rgba(255, 255, 255, 0.2);
}

.pricing-card--featured .pricing-features iconify-icon {
    color: rgba(255, 255, 255, 0.85);
}

/* ---- Enterprise Card ---- */
.pricing-card--enterprise {
    background: rgba(224, 242, 254, 0.70);
    border-color: rgba(15, 23, 42, 0.08);
}

.pricing-card--enterprise .price-value.enterprise-price {
    font-size: 36px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Popular Badge ---- */
.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #111;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ---- Card Header (label + volume) ---- */
.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-tier-label {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.pricing-volume {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

/* ---- Price Display ---- */
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.price-unit {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.pricing-example {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #94a3b8;
    margin-top: -6px;
}

/* ---- Divider ---- */
.pricing-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(0, 136, 204, 0.15), transparent);
}

/* ---- Features List ---- */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-features li {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.pricing-features iconify-icon {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

/* ---- CTA Buttons ---- */
.pricing-cta {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-cta--outline {
    border: 1.5px solid rgba(0, 136, 204, 0.3);
    color: var(--primary-color);
    background: transparent;
}

.pricing-cta--outline:hover {
    background: rgba(0, 136, 204, 0.06);
    border-color: var(--primary-color);
}

.pricing-cta--primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(8px);
}

.pricing-cta--primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ---- Pricing Note ---- */
.pricing-note {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}