/* =========================================================
   TESSA Landing Page — Design System & Styles
   ========================================================= */

/* ——— CSS Variables / Design Tokens ——— */
:root {
    /* Colors — TICINSIDE Palette */
    --color-1: #4cb4f4;
    --color-2: #6cb1e0;
    --color-3: #04040c;
    --color-4: #787a85;
    --color-5: #96b8d2;

    --bg-primary: #04040c;
    --bg-secondary: #0a0b14;
    --bg-card: rgba(10, 11, 20, 0.75);
    --bg-card-hover: rgba(15, 18, 35, 0.85);
    --border-subtle: rgba(150, 184, 210, 0.08);
    --border-glow: rgba(76, 180, 244, 0.25);

    --accent-blue: var(--color-1);
    --accent-blue-dim: rgba(76, 180, 244, 0.12);
    --accent-green: var(--color-2);
    --accent-green-dim: rgba(108, 177, 224, 0.12);

    --text-primary: #f0f2f5;
    --text-secondary: var(--color-5);
    --text-tertiary: var(--color-4);

    /* WhatsApp Colors */
    --wa-bg: #0b141a;
    --wa-header: #1f2c34;
    --wa-sent: #005c4b;
    --wa-received: #1f2c34;
    --wa-input-bg: #1f2c34;
    --wa-green: #25d366;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.75rem;
    --fs-4xl: 3.5rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 200ms var(--ease-out-expo);
    --transition-medium: 400ms var(--ease-out-expo);
    --transition-slow: 800ms var(--ease-out-expo);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 40px;
}

/* ——— Reset & Base ——— */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ——— Gradient text utility ——— */
.gradient-text {
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ——— Section defaults ——— */
.section {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.section__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-1);
    margin-bottom: var(--space-md);
}

.section__title {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: rgba(4, 4, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-medium), padding var(--transition-medium);
}

.navbar--scrolled {
    background: rgba(4, 4, 12, 0.94);
    padding: var(--space-sm) var(--space-xl);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar__logo-svg {
    height: 28px;
    width: auto;
}

.navbar__logo-divider {
    width: 1px;
    height: 24px;
    background: var(--color-4);
    opacity: 0.4;
    margin: 0 6px;
}

.navbar__logo-text {
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--color-1);
}

.navbar__links {
    list-style: none;
    display: flex;
    gap: var(--space-xl);
}

.navbar__links a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    letter-spacing: 0.5px;
}

.navbar__links a:hover {
    color: var(--text-primary);
}

.navbar__cta {
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    color: var(--bg-primary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(76, 180, 244, 0.35);
}

/* ================================================
   HERO — SCROLLYTELLING
   ================================================ */
.hero-track {
    height: 800vh;
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 180, 244, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.5s;
}

/* ——— Hero Intro Screen ——— */
.hero-intro {
    position: absolute;
    z-index: 20;
    text-align: center;
    padding: 0 var(--space-lg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-intro__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-1);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.hero-intro__title {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
}

.hero-intro__sub {
    font-size: clamp(var(--fs-base), 2.5vw, var(--fs-xl));
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: var(--space-md);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro__tagline {
    font-size: var(--fs-sm);
    color: var(--color-1);
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.75;
}

/* ——— Scroll Indicator ——— */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 30;
    transition: opacity 0.4s ease;
}

.scroll-indicator__text {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.scroll-indicator__mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(76, 180, 244, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator__wheel {
    width: 4px;
    height: 8px;
    background: var(--color-1);
    border-radius: 2px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.scroll-indicator__arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.scroll-indicator__arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-1);
    border-bottom: 2px solid var(--color-1);
    transform: rotate(45deg);
    animation: scrollArrows 1.6s ease-in-out infinite;
}

.scroll-indicator__arrows span:nth-child(1) { animation-delay: 0s; opacity: 0.3; }
.scroll-indicator__arrows span:nth-child(2) { animation-delay: 0.15s; opacity: 0.6; }
.scroll-indicator__arrows span:nth-child(3) { animation-delay: 0.3s; opacity: 1; }

@keyframes scrollArrows {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ——— Floating text blocks ——— */
.hero-text {
    position: absolute;
    z-index: 10;
    text-align: center;
    max-width: 640px;
    padding: 0 var(--space-lg);
    opacity: 0;
    transform: translateY(40px);
    transition: none;
    /* Controlled by JS */
    pointer-events: none;
}

.hero-text__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-1);
    margin-bottom: var(--space-md);
}

.hero-text__title {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-text__desc {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-text__tagline {
    font-size: var(--fs-md);
    color: var(--color-1);
    font-weight: 500;
    margin-top: var(--space-md);
    font-style: italic;
    opacity: 0.9;
}

.hero-text__list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) auto 0;
    text-align: left;
    display: inline-block;
}

.hero-text__list li {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 32px;
}

.hero-text__list li::before {
    content: "•";
    color: var(--color-1);
    position: absolute;
    left: 8px;
    font-weight: bold;
    font-size: 1.25em;
    top: -2px;
}

.hero-text__list--checks li::before {
    content: "✓";
    font-size: 1em;
    top: 1px;
}

.hero-text__list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-text--1 {
    top: 12%;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
}

.hero-text--2 {
    top: 12%;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
}

.hero-text--3 {
    top: 12%;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
}

/* ——— iPhone Mockup ——— */
.iphone-mockup {
    position: relative;
    z-index: 6;
    will-change: transform, border-radius;
}

.iphone-mockup__frame {
    width: 300px;
    height: 620px;
    background: var(--wa-bg);
    border-radius: var(--radius-xl);
    border: 3px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(0, 212, 255, 0.08);
    transition: border-radius 0.1s linear, border-color 0.3s;
}

.iphone-mockup__notch {
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 18px 18px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.iphone-mockup__screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
}

.iphone-mockup__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ——— WhatsApp Header ——— */
.wa-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    background: var(--wa-header);
}

.wa-header__back {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-right: 4px;
}

.wa-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--bg-primary);
}

.wa-header__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wa-header__name {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.wa-header__status {
    font-size: var(--fs-xs);
    color: var(--color-1);
}

.wa-header__actions {
    display: flex;
    gap: var(--space-md);
    font-size: var(--fs-sm);
}

/* ——— WhatsApp Chat Messages ——— */
.wa-chat {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
        var(--wa-bg);
}

.wa-chat::-webkit-scrollbar {
    width: 3px;
}

.wa-chat::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.wa-chat__date {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
    align-self: center;
    margin: 6px 0;
}

.wa-msg {
    max-width: 85%;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    position: relative;
}

.wa-msg p {
    margin-bottom: 2px;
}

.wa-msg--sent {
    align-self: flex-end;
    background: var(--wa-sent);
    border-radius: 8px 0 8px 8px;
}

.wa-msg--received {
    align-self: flex-start;
    background: var(--wa-received);
    border-radius: 0 8px 8px 8px;
}

.wa-msg__time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ——— WhatsApp Input ——— */
.wa-input {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    background: var(--wa-header);
}

.wa-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-family);
    outline: none;
}

.wa-input__emoji,
.wa-input__mic {
    font-size: 18px;
    cursor: pointer;
}

/* ================================================
   DATA SECTION — Orbit Animation
   ================================================ */
.section--data {
    background:
        radial-gradient(circle at 50% 50%, rgba(76, 180, 244, 0.04) 0%, transparent 60%),
        var(--bg-secondary);
}

.orbit-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 0 auto;
}

.section--data .section__subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-3xl);
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 180, 244, 0.15), rgba(37, 211, 102, 0.15));
    border: 2px solid var(--color-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 0 60px rgba(76, 180, 244, 0.15);
    z-index: 2;
}

.orbit-center__icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orbit-center__label {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 2px;
}

.orbit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.orbit-line {
    stroke: var(--color-1);
    stroke-width: 1.5;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    opacity: 0.4;
    transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.orbit-container.is-visible .orbit-line {
    stroke-dashoffset: 0;
}

.orbit-pulse {
    fill: var(--color-1);
    opacity: 0;
    animation: none;
}

.orbit-container.is-visible .orbit-pulse {
    animation: pulseMove1 3s ease-in-out infinite;
}

.orbit-container.is-visible .orbit-pulse--2 {
    animation: pulseMove2 3s ease-in-out 0.5s infinite;
}

.orbit-container.is-visible .orbit-pulse--3 {
    animation: pulseMove3 3s ease-in-out 1s infinite;
}

@keyframes pulseMove1 {

    0%,
    100% {
        opacity: 0;
        cy: 280;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        cy: 80;
    }
}

@keyframes pulseMove2 {

    0%,
    100% {
        opacity: 0;
        cx: 340;
        cy: 340;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        cx: 490;
        cy: 400;
    }
}

@keyframes pulseMove3 {

    0%,
    100% {
        opacity: 0;
        cx: 260;
        cy: 340;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        cx: 110;
        cy: 400;
    }
}

.orbit-node {
    position: absolute;
    z-index: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.orbit-container.is-visible .orbit-node {
    opacity: 1;
    transform: scale(1);
}

.orbit-container.is-visible .orbit-node--2 {
    transition-delay: 0.2s;
}

.orbit-container.is-visible .orbit-node--3 {
    transition-delay: 0.4s;
}

.orbit-node--1 {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
}

.orbit-container.is-visible .orbit-node--1 {
    transform: translateX(-50%) scale(1);
}

.orbit-node--2 {
    top: 180px;
    right: 20px;
}

.orbit-node--3 {
    bottom: 120px;
    right: 20px;
}

.orbit-node--4 {
    bottom: 120px;
    left: 20px;
}

.orbit-node__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.orbit-container.is-visible .orbit-node__card {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(76, 180, 244, 0.08);
}

.orbit-node__card span {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.integration-capabilities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.integration-capabilities__item {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* ================================================
   SECTORS — Cards Grid
   ================================================ */
.section--sectors {
    background: var(--bg-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-lg);
    text-align: left;
    transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
    will-change: transform;
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(76, 180, 244, 0.06);
    transform: translateY(-8px) !important;
}

.card__icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    background: rgba(76, 180, 244, 0.12);
    border-radius: var(--radius-sm);
}

.card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.card__desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.card__tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(76, 180, 244, 0.12);
    color: var(--color-1);
    letter-spacing: 0.5px;
}

/* ================================================
   IMPLEMENTATION — Stepper
   ================================================ */
.section--steps {
    background:
        radial-gradient(circle at 30% 70%, rgba(37, 211, 102, 0.03) 0%, transparent 50%),
        var(--bg-secondary);
}

.stepper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

.stepper__line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.stepper__line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-1), var(--color-2));
    border-radius: 10px;
    transition: height 0.3s var(--ease-out-expo);
}

.stepper__step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    position: relative;
    opacity: 0.3;
    transition: opacity var(--transition-medium);
}

.stepper__step.is-active {
    opacity: 1;
}

.stepper__marker {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    font-weight: 800;
    position: relative;
    z-index: 2;
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium), background var(--transition-medium);
}

.stepper__step.is-active .stepper__marker {
    border-color: var(--color-1);
    box-shadow: 0 0 30px rgba(76, 180, 244, 0.2);
    background: rgba(76, 180, 244, 0.1);
}

.stepper__content h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.stepper__content p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.stepper__duration {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(108, 177, 224, 0.12);
    color: var(--color-2);
    margin-top: var(--space-md);
}

/* ================================================
   CHAT DEMO — WhatsApp Desktop
   ================================================ */
.section--chat {
    background: var(--bg-primary);
}

.chat-demo__window {
    max-width: 900px;
    height: 560px;
    margin: 0 auto;
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(76,180,244,0.06);
}



/* Sidebar */
.chat-demo__sidebar {
    width: 300px;
    background: var(--wa-header);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.chat-demo__sidebar-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.chat-demo__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.chat-demo__sidebar-actions {
    display: flex;
    gap: var(--space-md);
    color: var(--text-secondary);
}

.chat-demo__search {
    padding: 8px 12px;
}

.chat-demo__search input {
    width: 100%;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    font-family: var(--font-family);
    outline: none;
}

.chat-demo__contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.chat-demo__contact:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-demo__contact--active {
    background: rgba(76, 180, 244, 0.06);
}

.chat-demo__contact-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--bg-primary);
}

.chat-demo__contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-demo__contact-name {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.chat-demo__contact-preview {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-demo__contact-time {
    font-size: 11px;
    color: var(--text-tertiary);
    align-self: flex-start;
    margin-top: 2px;
}

/* Main Chat */
.chat-demo__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--wa-bg);
}

.chat-demo__main-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    background: var(--wa-header);
}

.chat-demo__main-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--bg-primary);
}

.chat-demo__main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-demo__main-name {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.chat-demo__main-status {
    font-size: var(--fs-xs);
    color: var(--color-2);
}

.chat-demo__main-actions {
    display: flex;
    gap: var(--space-md);
    font-size: var(--fs-sm);
}

.chat-demo__messages {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-demo__messages::-webkit-scrollbar {
    width: 4px;
}

.chat-demo__messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-demo__input-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    background: var(--wa-header);
}

.chat-demo__input-bar input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-family: var(--font-family);
    outline: none;
}

.chat-demo__input-bar span {
    font-size: 20px;
    cursor: pointer;
}

/* Chat bubbles in demo */
.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.chat-bubble--sent {
    align-self: flex-end;
    background: var(--wa-sent);
    border-radius: 8px 0 8px 8px;
}

.chat-bubble--received {
    align-self: flex-start;
    background: var(--wa-received);
    border-radius: 0 8px 8px 8px;
}

.chat-bubble--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-bubble__time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
    background: var(--wa-received);
    border-radius: 0 8px 8px 8px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}


/* ================================================
   SCROLL HINTS — between sections
   ================================================ */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 0 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-hint__text {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-1);
    opacity: 0.75;
}

.scroll-hint__arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-hint__arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-1);
    border-bottom: 2px solid var(--color-1);
    transform: rotate(45deg);
}

.scroll-hint__arrows span:nth-child(1) {
    animation: scrollHintPulse 1.5s ease-in-out infinite 0s;
}
.scroll-hint__arrows span:nth-child(2) {
    animation: scrollHintPulse 1.5s ease-in-out infinite 0.18s;
}
.scroll-hint__arrows span:nth-child(3) {
    animation: scrollHintPulse 1.5s ease-in-out infinite 0.36s;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.15; transform: rotate(45deg) translateY(0); }
    50% { opacity: 1; transform: rotate(45deg) translateY(4px); }
}

/* ================================================
   REPLAY BUTTON — pulsing arrow indicator
   ================================================ */
.chat-demo__replay {
    margin: auto 16px 16px;
    padding: 10px 16px;
    background: rgba(76,180,244,0.12);
    border: 1px solid rgba(76,180,244,0.25);
    border-radius: 8px;
    color: var(--color-1);
    font-size: var(--fs-xs);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
    position: relative;
}

.chat-demo__replay:hover {
    background: rgba(76,180,244,0.22);
    transform: translateY(-1px);
}

/* Arrow pointer that appears when replay is visible */
.chat-replay-hint {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 0 0;
    animation: replayBounce 1.2s ease-in-out infinite;
}

.chat-replay-hint.is-visible {
    display: flex;
}

.chat-replay-hint__text {
    font-size: var(--fs-base);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f5c842, #e8a020);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(245, 200, 66, 0.4));
}

.chat-replay-hint__arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #f5c842;
    filter: drop-shadow(0 0 8px rgba(245,200,66,0.7));
}

@keyframes replayBounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ================================================
   CTA FINAL — Contacto cierre
   ================================================ */
.section--cta {
    background: linear-gradient(135deg, rgba(76,180,244,0.06) 0%, rgba(4,4,12,1) 60%);
    border-top: 1px solid rgba(76,180,244,0.12);
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.section--cta::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,200,66,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 100px;
    border: 1px solid rgba(245,200,66,0.35);
    background: rgba(245,200,66,0.08);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5c842;
    margin-bottom: var(--space-lg);
}

.cta-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f5c842;
    animation: ctaPulse 1.5s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.cta-title .gold-text {
    background: linear-gradient(135deg, #f5c842, #e8a020);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    background: linear-gradient(135deg, #f5c842, #e8a020);
    color: #04040c;
    font-size: var(--fs-base);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 30px rgba(245,200,66,0.3);
}

.cta-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(245,200,66,0.45);
}

.cta-btn--secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    border: 1px solid rgba(76,180,244,0.3);
    background: rgba(76,180,244,0.07);
    color: var(--color-1);
    font-size: var(--fs-base);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.cta-btn--secondary:hover {
    transform: translateY(-3px);
    background: rgba(76,180,244,0.14);
    box-shadow: 0 8px 30px rgba(76,180,244,0.2);
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
}

.cta-trust__icon {
    font-size: 1.1rem;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__tagline {
    font-size: var(--fs-sm);
    color: var(--color-1);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer__desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.footer__links a {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-1);
}

.footer__bottom {
    max-width: 1200px;
    margin: var(--space-2xl) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer__bottom p {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
}

/* ================================================
   HAMBURGER BUTTON (hidden on desktop)
   ================================================ */
.navbar__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    order: 3;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation when menu is open */
.navbar--open .navbar__hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar--open .navbar__hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar--open .navbar__hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   RESPONSIVE — 1024px (Tablet landscape)
   ================================================ */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .chat-demo__window {
        max-width: 100%;
    }

    .orbit-container {
        max-width: 450px;
        height: 450px;
    }
}

/* ================================================
   RESPONSIVE — 768px (Tablet portrait / large phones)
   ================================================ */
@media (max-width: 768px) {

    /* — Navbar → Mobile — */
    .navbar {
        flex-wrap: wrap;
        padding: var(--space-sm) var(--space-md);
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        gap: 0;
        padding: var(--space-md) 0;
        border-top: 1px solid var(--border-subtle);
        margin-top: var(--space-sm);
    }

    .navbar--open .navbar__links {
        display: flex;
    }

    .navbar__links li {
        width: 100%;
    }

    .navbar__links a {
        display: block;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--fs-base);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .navbar__links a:hover {
        background: rgba(76, 180, 244, 0.06);
    }

    .navbar__cta {
        order: 2;
        font-size: var(--fs-xs);
        padding: 8px 18px;
        margin-left: auto;
    }

    /* — Hero — */
    .hero-track {
        height: 600vh;
    }

    .hero-text {
        max-width: 90%;
        padding: 0 var(--space-md);
    }

    .hero-text__title {
        font-size: var(--fs-2xl);
    }

    .hero-text__desc {
        font-size: var(--fs-base);
    }

    .iphone-mockup__frame {
        width: 260px;
        height: 540px;
    }

    /* — Section typography — */
    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .section__title {
        font-size: clamp(var(--fs-xl), 6vw, var(--fs-3xl));
    }

    .section__subtitle {
        font-size: var(--fs-base);
        max-width: 100%;
    }

    /* — Orbit — */
    .orbit-container {
        max-width: 320px;
        height: 320px;
    }

    .orbit-center {
        width: 70px;
        height: 70px;
    }

    .orbit-center__icon {
        font-size: 1.2rem;
    }

    .orbit-center__label {
        font-size: 10px;
    }

    .orbit-node__card {
        padding: var(--space-sm) var(--space-md);
    }

    .orbit-node__card span {
        font-size: var(--fs-xs);
    }

    /* — Cards → 1 column — */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* — Stepper — */
    .stepper__step {
        gap: var(--space-md);
    }

    .stepper__marker {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: var(--fs-base);
    }

    .stepper__line {
        left: 22px;
    }

    .stepper__content h3 {
        font-size: var(--fs-lg);
    }

    .stepper__content p {
        font-size: var(--fs-xs);
    }

    /* — Chat Demo → No sidebar — */
    .chat-demo__sidebar {
        display: none;
    }

    .chat-demo__window {
        height: 420px;
        border-radius: var(--radius-sm);
    }

    /* — Footer → stacked — */
    .footer__container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer__desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__links {
        align-items: center;
    }

    .footer {
        padding: var(--space-2xl) var(--space-md) var(--space-lg);
    }
}

/* ================================================
   RESPONSIVE — 480px (Small phones)
   ================================================ */
@media (max-width: 480px) {
    .section {
        padding: var(--space-xl) var(--space-sm);
    }

    /* — Hero adjustments — */
    .hero-track {
        height: 500vh;
    }

    .hero-text {
        max-width: 100%;
        padding: 0 var(--space-sm);
    }

    .hero-text__label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero-text__title {
        font-size: var(--fs-xl);
    }

    .hero-text__desc {
        font-size: var(--fs-sm);
    }

    .iphone-mockup__frame {
        width: 220px;
        height: 460px;
    }

    /* — Orbit — */
    .orbit-container {
        max-width: 280px;
        height: 280px;
    }

    .orbit-center {
        width: 56px;
        height: 56px;
    }

    .orbit-center__icon {
        font-size: 1rem;
    }

    .orbit-center__label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .orbit-node--1 {
        top: 5px;
    }

    .orbit-node--2 {
        bottom: 30px;
        right: 5px;
    }

    .orbit-node--3 {
        bottom: 30px;
        left: 5px;
    }

    .orbit-node__card {
        padding: var(--space-xs) var(--space-sm);
    }

    .orbit-node__icon svg {
        width: 28px;
        height: 28px;
    }

    .orbit-node__card span {
        font-size: 10px;
    }

    /* — Cards — */
    .card {
        padding: var(--space-lg) var(--space-md);
    }

    .card__icon {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 1.6rem;
    }

    /* — Stepper — */
    .stepper__marker {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: var(--fs-sm);
    }

    .stepper__line {
        left: 18px;
    }

    .stepper__step {
        gap: var(--space-sm);
        padding: var(--space-lg) 0;
    }

    /* — Chat Demo — */
    .chat-demo__window {
        height: 380px;
    }

    .chat-demo__main-header {
        padding: 8px 10px;
    }

    .chat-demo__input-bar {
        padding: 6px 10px;
    }

    .chat-bubble {
        max-width: 90%;
        font-size: var(--fs-xs);
        padding: 6px 10px;
    }

    /* — Footer — */
    .footer__tagline {
        font-size: var(--fs-xs);
    }

    .footer__desc {
        font-size: var(--fs-xs);
    }

    .footer__links a {
        font-size: var(--fs-xs);
    }

    .navbar__logo-svg {
        height: 22px;
    }

    .navbar__logo-text {
        font-size: var(--fs-base);
        letter-spacing: 2px;
    }

    .navbar__cta {
        font-size: 11px;
        padding: 6px 14px;
    }
}