/**
 * Welcome Link - Landing Pages CSS
 * Design System: Modern, Clean, Light-first with Dark Mode
 */

/* ============================================
   CSS VARIABLES & THEME SYSTEM
   ============================================ */
:root {
    /* Light Mode (Default) */
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-elevated: #ffffff;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Brand Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-accent: #06b6d4;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 1) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 16px;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1280px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Animation Timing */
    --anim-fast: 150ms;
    --anim-base: 250ms;
    --anim-slow: 400ms;
    --anim-reveal: 600ms;

    /* Easing Functions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-surface-elevated: #334155;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #64748b;
    --color-border: #334155;
    --color-border-light: #1e293b;

    --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, 1) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    --glass-bg: rgba(30, 41, 59, 0.35);
    --glass-border: rgba(255, 255, 255, 0.2);

    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--color-text-secondary);
    max-width: 65ch;
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

/* ============================================
   BACKGROUND & GLASSMORPHISM
   ============================================ */
.fixed-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    /* Default Background (Nature) - Can be overridden by inline styles or modifiers */
    background-image: var(--bg-image, url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=70'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: saturate(1.1) brightness(0.9);
}

/* Light Mode Overlay for Contrast */
.fixed-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    /* Light white filter */
    pointer-events: none;
    z-index: 1;
    /* Sit on top of image but behind content */
}

[data-theme="dark"] .fixed-background::before {
    display: none;
    /* No overlay in dark mode */
}

[data-theme="dark"] .fixed-background {
    filter: saturate(1.1) brightness(0.4);
}

@media (max-width: 768px) {
    .fixed-background {
        background-attachment: scroll;
        background-position: center center;
    }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.font-serif {
    font-family: var(--font-serif);
}

.text-highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1em;
    padding: 0 0.2em;
    color: var(--color-primary);
}

/* Staggered Animations */
.stagger-1 {
    animation-delay: 100ms;
}

.stagger-2 {
    animation-delay: 200ms;
}

.stagger-3 {
    animation-delay: 300ms;
}

.stagger-4 {
    animation-delay: 400ms;
}

/* Ensure content shows background */
main,
section {
    background-color: transparent !important;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.section--alt {
    /* Remove solid background to let nature show through, managed by glass panels if needed */
    background-color: transparent;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    justify-content: space-between;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

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

.mb-5 {
    margin-bottom: 3rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: var(--gradient-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

/* Logo SVG Update */
.logo--svg {
    display: flex;
    align-items: center;
}

.logo--svg img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Logo Theme Switching */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

/* Original Logo Styles (Kept for reference or cleanup if needed) */
.logo__icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-hero);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    display: none;
    /* Hide old icon */
}

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

.nav__links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-primary);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
}

.theme-toggle::after {
    content: '☀️';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-toggle::after {
    content: '🌙';
    transform: translateX(20px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav__links {
        display: none;
    }

    .nav__links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface-elevated);
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--anim-fast) var(--ease-spring),
        box-shadow var(--anim-base) var(--ease-out),
        background var(--anim-fast),
        border-color var(--anim-fast);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn--primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0.5);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(37, 99, 235, 0.35);
    color: white;
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    background: var(--color-surface-elevated);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    transform: translateY(-2px);
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--icon {
    padding: 0.75rem;
    border-radius: var(--radius-full);
}

.btn--full {
    width: 100%;
}

/* Button Loading State */
.btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__gradient {
    position: absolute;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero__gradient--accent {
    top: 50%;
    left: -25%;
    right: auto;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

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

@media (max-width: 968px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text p {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .hero__ctas {
        justify-content: center;
    }
}

.hero__visual {
    position: relative;
}

/* High-Fidelity iPhone Mockup */
.hero__mockup {
    position: relative;
    background: #121212;
    /* Black bezel */
    border-radius: 3.5rem;
    padding: 0.75rem;
    /* Bezel thickness */
    box-shadow:
        /* External shadows for depth */
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        /* Device frame (Titanium/Silver look) */
        0 0 0 4px #3a3a3a,
        0 0 0 8px #1a1a1a,
        /* Glow/Reflection */
        var(--shadow-glow);
    max-width: 320px;
    margin: 0 auto;
    z-index: 10;
}

/* Side Buttons (Volume/Power) via pseudo-elements */
.hero__mockup::before,
.hero__mockup::after {
    content: '';
    position: absolute;
    background: #2a2a2a;
    border-radius: 4px;
    z-index: -1;
}

/* Volume Buttons (Left) */
.hero__mockup::before {
    top: 100px;
    left: -12px;
    width: 6px;
    height: 100px;
    box-shadow:
        inset 0 0 2px rgba(0, 0, 0, 0.5),
        /* Inner depth */
        0 60px 0 0 #2a2a2a;
    /* Second button replicated */
}

/* Power Button (Right) */
.hero__mockup::after {
    top: 120px;
    right: -12px;
    width: 6px;
    height: 80px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

.hero__mockup-header {
    display: none;
}

.hero__mockup-content {
    background: var(--gradient-hero);
    border-radius: 2.75rem;
    /* Match outer curve minus padding */
    height: 650px;
    /* Taller ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    /* Subtle glass shine on screen */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 40%),
        var(--gradient-hero);
}

/* Dynamic Island / Notch */
.hero__mockup-content::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1.75rem;
    background: black;
    border-radius: 999px;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Home Indicator */
.hero__mockup-content::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    z-index: 20;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.features__header p {
    margin: 1rem auto 0;
}

.feature-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--anim-base) var(--ease-out),
        box-shadow var(--anim-base) var(--ease-out),
        border-color var(--anim-fast) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    opacity: 0;
    transform: scaleX(0);
    transition:
        opacity var(--anim-base) var(--ease-out),
        transform var(--anim-base) var(--ease-out);
}

.feature-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    transition:
        transform var(--anim-base) var(--ease-spring),
        background var(--anim-fast);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.15) rotate(5deg);
    background: var(--color-primary);
    color: white;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card__description {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.pricing__header p {
    margin: 1rem auto 0;
}

.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing__toggle-label {
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.pricing__toggle-label.active {
    color: var(--color-text-primary);
}

.pricing__toggle-switch {
    width: 56px;
    height: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
}

.pricing__toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: transform var(--transition-base);
}

.pricing__toggle-switch.annual::after {
    transform: translateX(28px);
}

.pricing__discount {
    background: var(--color-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition:
        transform var(--anim-base) var(--ease-out),
        box-shadow var(--anim-base) var(--ease-out),
        border-color var(--anim-fast);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card--featured::before {
    content: 'Più Popolare';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card__name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card__description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-card__price {
    margin-bottom: 2rem;
}

.pricing-card__amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.pricing-card__amount span {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-card__features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.95rem;
}

.pricing-card__feature:last-child {
    border-bottom: none;
}

.pricing-card__feature-icon {
    color: var(--color-success);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pricing-card__feature--disabled {
    color: var(--color-text-muted);
}

.pricing-card__feature--disabled .pricing-card__feature-icon {
    color: var(--color-text-muted);
}

/* ============================================
   CTA CARDS (Dual CTA for Homepage)
   ============================================ */
.cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cta-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--anim-base) var(--ease-out),
        box-shadow var(--anim-base) var(--ease-out),
        border-color var(--anim-fast);
}

.cta-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.cta-card--hotel {
    border-color: rgba(37, 99, 235, 0.3);
}

.cta-card--hotel:hover {
    border-color: var(--color-primary);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2), var(--shadow-xl);
}

.cta-card--locale {
    border-color: rgba(6, 182, 212, 0.3);
}

.cta-card--locale:hover {
    border-color: var(--color-accent);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2), var(--shadow-xl);
}

.cta-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition:
        transform var(--anim-base) var(--ease-spring),
        background var(--anim-fast);
}

.cta-card:hover .cta-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.cta-card--hotel .cta-card__icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
}

.cta-card--locale .cta-card__icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
}

.cta-card__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-card__subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card__features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.cta-card__feature-icon {
    color: var(--color-success);
}

/* ============================================
   ECOSYSTEM / HOW IT WORKS
   ============================================ */
.ecosystem {
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.ecosystem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ecosystem__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    position: relative;
}

.ecosystem__header h2 {
    color: white;
}

.ecosystem__header p {
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.8);
}

.ecosystem__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.ecosystem__step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    max-width: 280px;
    transition: all var(--transition-base);
}

.ecosystem__step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.ecosystem__step-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.ecosystem__step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.ecosystem__step-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.ecosystem__arrow {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .ecosystem__arrow {
        transform: rotate(90deg);
    }
}

/* ============================================
   TESTIMONIALS / SOCIAL PROOF
   ============================================ */
.testimonials__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.testimonials__header p {
    margin: 1rem auto 0;
}

.testimonial-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
}

.testimonial-card__quote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

.testimonial-card__quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: Georgia, serif;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.testimonial-card__info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-card__info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.stat__value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact {
    background: var(--color-surface);
}

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

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

.contact__content h2 {
    margin-bottom: 1rem;
}

.contact__content p {
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-text-primary);
    color: var(--color-surface);
    padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer {
    background: var(--color-surface);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer__brand {
    max-width: 300px;
}

.footer__brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer__column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer__links {
    list-style: none;
}

.footer__link {
    margin-bottom: 0.75rem;
}

.footer__link a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer__link a:hover {
    color: white;
}

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

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer__legal a:hover {
    color: white;
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

/* Reveal on Scroll */
.fade-in,
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--anim-reveal) var(--ease-out),
        transform var(--anim-reveal) var(--ease-out);
}

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

/* Stagger delays */
.delay-100,
.reveal-stagger-1 {
    transition-delay: 100ms;
}

.delay-200,
.reveal-stagger-2 {
    transition-delay: 200ms;
}

.delay-300,
.reveal-stagger-3 {
    transition-delay: 300ms;
}

.delay-400,
.reveal-stagger-4 {
    transition-delay: 400ms;
}

.delay-500,
.reveal-stagger-5 {
    transition-delay: 500ms;
}

/* Hero Entrance Animation */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__text {
    animation: heroReveal 0.8s var(--ease-out) forwards;
}

.hero__visual {
    animation: heroReveal 1s var(--ease-out) 0.3s forwards;
    opacity: 0;
}

/* Nav Link Hover Underline */
.nav__link {
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width var(--anim-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* Form Feedback States */
.form-group input,
.form-group select,
.form-group textarea {
    transition:
        border-color var(--anim-fast),
        box-shadow var(--anim-fast),
        transform var(--anim-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Success state */
.form-group--success input,
.form-group--success textarea {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Error state */
.form-group--error input,
.form-group--error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: formShake 0.3s ease-out;
}

@keyframes formShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Fixed Background (no parallax) */

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-hero);
    z-index: 101;
    transition: width 0.1s linear;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Icons utility */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

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

    .fade-in,
    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__text,
    .hero__visual {
        animation: none;
        opacity: 1;
    }

    .fixed-background--parallax {
        transform: none !important;
    }

    .btn:hover,
    .btn:active {
        transform: none;
    }

    .feature-card:hover,
    .pricing-card:hover,
    .cta-card:hover {
        transform: none;
    }
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.6);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 420px;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
    position: relative;
    text-align: center;
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background: var(--color-border);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

.modal__icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.modal__title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal__text {
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.modal__actions {
    display: grid;
    gap: 1rem;
}

.modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
    text-align: left;
    text-decoration: none;
}

/* Specific styling for WhatsApp button inside modal */
.modal__btn--whatsapp {
    background: #DCF8C6;
    /* Light green/white background often associated with WA or just keep theme */
    color: #075E54;
    border-color: #25D366;
}

[data-theme="dark"] .modal__btn--whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.modal__btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
}

.modal__btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal__btn-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal__btn-value {
    font-size: 1rem;
}

/* Modal Z-Index Fix */
.modal {
    z-index: 10000 !important;
}