/* ============================================
   Timexora — Homepage / Landing
   ============================================ */

.section-heading {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-6);
}

.section-heading::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-primary), #c084fc);
}

.section-heading p { margin: var(--space-2) 0 0; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: var(--space-8) 0;
    background: var(--color-surface);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.hero::before {
    width: 480px;
    height: 480px;
    top: -180px;
    left: -140px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
    animation: blob-float 18s ease-in-out infinite;
}

.hero::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    right: -120px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.22), transparent 70%);
    animation: blob-float 22s ease-in-out infinite reverse;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, -18px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after { animation: none; }
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-7);
    align-items: center;
}

.hero-copy .badge { margin-bottom: var(--space-4); }

.hero-copy .lead {
    font-size: 1.1rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.hero-actions .btn { width: auto; }

.trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin: var(--space-5) 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--color-ink-muted);
    font-weight: 600;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -10% -5%;
    z-index: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 72%);
    filter: blur(50px);
    pointer-events: none;
}

.hero-demo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    transform: rotate(-1.5deg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease;
}

.hero-demo:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-demo-caption {
    margin: var(--space-4) 0 0;
    font-size: 0.75rem;
    opacity: 0.65;
    color: inherit;
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy .lead { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .trust-row { justify-content: center; }
    .hero-demo { transform: none; margin-top: var(--space-6); }
}

/* ---------- Creation form ---------- */

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

/* ---------- Themes showcase ---------- */

.themes-showcase {
    padding: var(--space-8) 0;
    background: var(--color-surface-alt);
}

.themes-grid {
    display: grid;
    /* Capped at 340px (not 1fr) so a single card — e.g. one Explore result —
       doesn't stretch edge-to-edge; it just centers at a normal card width. */
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
    gap: var(--space-5);
}

.gallery-sort-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.gallery-sort-tab {
    padding: 6px 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-ink-faint);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.gallery-sort-tab:hover { color: var(--color-ink); }

.gallery-sort-tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.gallery-filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-ink-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gallery-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-ink);
}

.gallery-filter-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.holiday-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.holiday-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.theme-name {
    margin: var(--space-4) 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

/* ---------- Features ---------- */

.features {
    padding: var(--space-8) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}

.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    font-size: 1.4rem;
    margin-bottom: var(--space-3);
}

.feature h3 { margin-bottom: var(--space-2); }
.feature p { margin: 0; font-size: 0.9rem; }

/* ---------- How it works ---------- */

.how-it-works {
    padding: var(--space-8) 0;
}

.steps {
    position: relative;
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Connecting line threading through the step numbers, like a timeline */
.steps::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
}

.steps li {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.step-num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 800;
    box-shadow: 0 0 0 4px var(--color-surface);
}

.steps p { margin: 4px 0 0; font-size: 0.9rem; }

/* ---------- Teaser banner (e.g. "Looking for a specific date?") ---------- */

.teaser-banner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(120deg, var(--color-primary-light), #fdf4ff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.teaser-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.teaser-banner-icon {
    flex-shrink: 0;
    font-size: 1.6rem;
}

.teaser-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.teaser-banner-text strong {
    color: var(--color-ink);
    font-size: 1rem;
}

.teaser-banner-text span {
    color: var(--color-ink-muted);
    font-size: 0.9rem;
}

.teaser-banner-arrow {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: transform 0.15s ease;
}

.teaser-banner:hover .teaser-banner-arrow {
    transform: translateX(4px);
}

@media (max-width: 560px) {
    .teaser-banner { flex-wrap: wrap; text-align: left; }
}
