:root {
    /* Light Theme as Default */
    --bg-color: #f7f7f9;
    --text-main: #111118;
    --text-muted: #444455;
    --accent-red: #d32f2f;
    --accent-red-hover: #b71c1c;
    --accent-red-glow: rgba(211, 47, 47, 0.3);
    --gold: #c4962c;

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 1);
    --nav-bg: rgba(255, 255, 255, 0.8);

    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 40px 0 rgba(0, 0, 0, 0.1);

    --price-showcase-bg: linear-gradient(145deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
    --price-arrow-bg: rgba(0, 0, 0, 0.05);

    --hero-subtitle-strong: #111118;

    --tier-bg: rgba(0, 0, 0, 0.03);
    --tier-business-bg: linear-gradient(to right, rgba(196, 150, 44, 0.1), rgba(0, 0, 0, 0.03));

    --cta-banner-bg: radial-gradient(circle at 50% 0%, rgba(211, 47, 47, 0.1), transparent 70%), var(--glass-bg);

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme {
    /* Dark Theme Overrides */
    --bg-color: #050508;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --accent-red: #cc0000;
    --accent-red-hover: #ff1a1a;
    --accent-red-glow: rgba(204, 0, 0, 0.4);
    --gold: #dfb85a;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --nav-bg: rgba(5, 5, 8, 0.6);

    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px 0 rgba(0, 0, 0, 0.4);

    --price-showcase-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    --price-arrow-bg: rgba(255, 255, 255, 0.05);

    --hero-subtitle-strong: white;

    --tier-bg: rgba(255, 255, 255, 0.03);
    --tier-business-bg: linear-gradient(to right, rgba(223, 184, 90, 0.1), rgba(255, 255, 255, 0.03));

    --cta-banner-bg: radial-gradient(circle at 50% 0%, rgba(204, 0, 0, 0.15), transparent 70%), var(--glass-bg);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

.app-container {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

/* Background Blobs for Visual Interest */
.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.15) 0%, rgba(5, 5, 8, 0) 70%);
    top: -10%;
    left: -10%;
}

@media (max-width: 768px) {
    .blob-1 {
        width: 300px;
        height: 300px;
        top: -5%;
        left: -5%;
    }
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(50, 100, 255, 0.1) 0%, rgba(5, 5, 8, 0) 70%);
    bottom: 20%;
    right: -10%;
    animation-delay: -10s;
}

@media (max-width: 768px) {
    .blob-2 {
        width: 250px;
        height: 250px;
        right: -5%;
        bottom: 10%;
    }
}

/* Specific background for the main page */
.svg-bg-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('img/background.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

body.dark-theme .svg-bg-main {
    opacity: 0.08;
    filter: invert(1) brightness(0.5);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

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

.highlight {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 2000;
    transition: background-color 0.4s ease, border-color 0.4s ease;
    overflow: hidden !important;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    background: var(--glass-highlight);
    border-color: var(--glass-border);
    box-shadow: var(--card-shadow-hover);
}

/* Navigation */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-rove {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: color 0.4s ease;
}

.logo-jal {
    color: var(--accent-red);
}

.nav-right {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    z-index: 2002;
    min-width: fit-content;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.nav-cta {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--glass-border);
}

/* Buttons */
.btn-primary {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--accent-red-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-red-glow);
}

.btn-primary.large {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

/* Layout */
main {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

@media (max-width: 768px) {
    main {
        padding-top: 80px;
    }
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 1rem 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(204, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(204, 0, 0, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

body:not(.dark-theme) .badge {
    color: #b71c1c;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero .subtitle strong {
    color: var(--hero-subtitle-strong);
}

/* Price Conversion Showcase */
.price-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    background: var(--price-showcase-bg);
    border-left: 4px solid var(--accent-red);
    transition: background-color 0.4s ease, border-color 0.4s ease;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.highlight-item .price-value {
    color: var(--accent-red);
}

.price-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--price-arrow-bg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

/* Hero Visual Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.miles-card {
    width: 100%;
    max-width: 380px;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.8), rgba(15, 15, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #f0f0f5;
    /* Fixed dark card text regardless of theme */
    transition: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.card-balance {
    margin-bottom: 3rem;
}

.balance-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.per-unit {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Benefits Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    padding: 1rem 0;
}

.section-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Destinations Section */
.destinations {
    padding: 1rem 0;
}

.destination-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dest-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dest-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.dest-info {
    padding: 2rem;
}

.tiers {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--tier-bg);
    border-radius: 12px;
}

.tier.business {
    background: var(--tier-business-bg);
    border-left: 2px solid var(--gold);
}

.tier-className {
    font-weight: 500;
}

.tier-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.tier.business .tier-className {
    color: var(--gold);
}

.dest-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    padding: 1rem 0 2rem;
}

.cta-banner {
    text-align: center;
    padding: 2rem 2rem;
    background: var(--cta-banner-bg);
}

.cta-banner h2 {
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(to bottom right, rgba(204, 0, 0, 0.5), transparent, transparent);
    border-radius: 25px;
    z-index: -1;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Animations */
@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg) rotateY(-5deg);
    }

    50% {
        transform: translateY(-15px) rotateX(5deg) rotateY(-2deg);
    }
}

.float-anim {
    animation: float-card 8s ease-in-out infinite;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.fade-in {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* =========================================
   Countdown Timer
   ========================================= */
.countdown-bar {
    width: 100%;
    padding: 0.9rem 5%;
    background: linear-gradient(90deg, rgba(204, 0, 0, 0.12), rgba(120, 0, 0, 0.05));
    border-bottom: 1px solid rgba(204, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    position: sticky;
    top: 72px;
    /* below fixed nav */
    z-index: 900;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 0.8rem 1.5rem;
    }

    .countdown-bar {
        top: 64px;
        padding: 0.6rem 1rem;
    }
}

.countdown-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    white-space: nowrap;
}

.countdown-units {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.countdown-digit {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    min-width: 2.2ch;
    text-align: center;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
}

.countdown-unit-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.countdown-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.8rem;
}

.countdown-expired {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-red);
}

@media (max-width: 480px) {
    .countdown-bar {
        gap: 0.7rem;
        top: 64px;
    }

    .countdown-digit {
        font-size: 1.1rem;
    }
}

/* Responsive adjustments */

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .glass-nav {
        padding: 0.8rem 1rem;
    }

    /* Mobile Menu Styles */
    .nav-links {
        display: none;
        /* Hide desktop links on mobile */
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2001;
        /* Above mobile menu overlay */
        position: relative;
    }

    .hamburger-line {
        width: 30px;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger-btn.open .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.open .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Theme toggle tap target */
    .theme-toggle {
        min-width: 48px;
        min-height: 48px;
    }

    .nav-right {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .glass-nav {
        padding: 0.6rem 0.75rem !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .theme-toggle span {
        display: none !important;
    }

    .nav-right {
        gap: 0.4rem !important;
    }

    .hamburger-btn {
        padding: 5px;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    background-color: var(--glass-highlight);
}

/* Desktop Nav Links */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
        /* Never show mobile menu on desktop */
    }

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

    .nav-link {
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: color 0.3s ease;
        padding: 0.5rem;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-red);
    }
}