/* SnagAFlight Premium — editorial typography, motion, depth */

:root {
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --glow-sky: 0 0 60px rgba(59, 158, 255, 0.35);
    --glow-coral: 0 0 40px rgba(255, 107, 74, 0.25);
}

/* ── Display typography ── */
.hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
}

.section__title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 40%, var(--teal-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* ── Hero cinematic layer ── */
.hero__photo {
    animation: heroKenBurns 28s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1.02) translate(0, 0); }
    to { transform: scale(1.1) translate(-1.5%, -1%); }
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero__orb--1 { animation: orbFloat 12s ease-in-out infinite; }
.hero__orb--2 { animation: orbFloat 16s ease-in-out infinite reverse; }
.hero__orb--3 { animation: orbFloat 20s ease-in-out infinite 2s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
}

/* ── Search hub — jewel treatment ── */
.search-hub {
    position: relative;
    animation: hubEnter 0.9s var(--ease-out-expo) 0.15s both;
    box-shadow: var(--shadow-card), var(--glow-sky);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes hubEnter {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-hub::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 158, 255, 0.4), transparent 40%, rgba(20, 184, 166, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* ── Header scroll state ── */
.header--scrolled {
    background: rgba(6, 13, 26, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* ── Welcome back strip ── */
.welcome-back {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
    border-bottom: 1px solid rgba(59, 158, 255, 0.2);
    padding: 10px 0;
    animation: slideDown 0.5s var(--ease-out-expo);
}

.welcome-back[hidden] { display: none !important; }

.welcome-back__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.welcome-back__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 500;
}

.welcome-back__text strong { color: var(--sky-300); }

.welcome-back__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.welcome-back__btn {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(59, 158, 255, 0.15);
    color: var(--sky-300);
    border: 1px solid rgba(59, 158, 255, 0.35);
    transition: all 0.2s;
}

.welcome-back__btn:hover {
    background: var(--sky-500);
    color: var(--white);
}

.welcome-back__dismiss {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    padding: 4px 8px;
    line-height: 1;
}

.welcome-back__dismiss:hover { color: var(--white); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Snag Score showcase ── */
.snag-showcase {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.snag-showcase__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.snag-showcase__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sky-500);
    margin-bottom: 12px;
}

.snag-showcase__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy-900);
    margin-bottom: 16px;
    line-height: 1.15;
}

.snag-showcase__lead {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 42ch;
}

.snag-showcase__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.snag-showcase__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--gray-700);
}

.snag-showcase__points li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 158, 255, 0.12);
    color: var(--sky-500);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.snag-demo {
    position: relative;
    background: var(--navy-900);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg), var(--glow-sky);
}

.snag-demo__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
    border: 1.5px solid transparent;
}

.snag-demo__card--winner {
    border-color: var(--sky-500);
    box-shadow: 0 8px 32px rgba(59, 158, 255, 0.2);
    transform: scale(1.02);
}

.snag-demo__score {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.snag-demo__score small {
    font-size: 0.55rem;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 2px;
}

.snag-demo__score--high { background: linear-gradient(135deg, #22c55e, #14b8a6); color: #fff; }
.snag-demo__score--mid { background: var(--gray-100); color: var(--gray-600); }
.snag-demo__score--low { background: var(--gray-100); color: var(--gray-500); }

.snag-demo__route strong { display: block; font-size: 0.95rem; color: var(--gray-800); }
.snag-demo__route span { font-size: 0.8rem; color: var(--gray-500); }

.snag-demo__price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-900);
}

.snag-demo__price small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
}

.snag-demo__badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: var(--glow-coral);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── Card hover polish ── */
.dest-card,
.explore-deal-card,
.inspo-card,
.unique-card {
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.dest-card:hover,
.explore-deal-card:hover,
.inspo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(6, 13, 26, 0.18);
}

.unique-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.trust-strip__item {
    transition: transform 0.3s var(--ease-out-expo), background 0.3s;
}

.trust-strip__item:hover {
    transform: translateY(-3px);
    background: rgba(59, 158, 255, 0.06);
}

/* ── Flash deal pulse ── */
.flash-deal {
    animation: flashPulse 3s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { box-shadow: inset 0 -1px 0 rgba(255, 107, 74, 0.3); }
    50% { box-shadow: inset 0 -1px 0 rgba(255, 107, 74, 0.3), 0 0 20px rgba(255, 107, 74, 0.15); }
}

/* ── Stats counter feel ── */
.stat__value {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

/* ── CTA section ── */
.cta--photo .cta__inner {
    animation: none;
}

.cta h2 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hero__photo,
    .hero__orb--1, .hero__orb--2, .hero__orb--3,
    .search-hub,
    .flash-deal,
    .welcome-back,
    .reveal {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
    .search-hub { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .snag-showcase__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .snag-demo__badge { right: 12px; }
}

[data-theme="dark"] .snag-showcase {
    background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

[data-theme="dark"] .snag-showcase__title { color: var(--white); }
[data-theme="dark"] .snag-showcase__lead,
[data-theme="dark"] .snag-showcase__points li { color: var(--gray-300); }
