/* ==========================================================================
   WaggyBookings Landing Page Stylesheet (Clean Neutral / White UI)
   ========================================================================== */

:root {
    --bg-white: #ffffff;
    --bg-offwhite: #f8fafc;
    --bg-card: #f1f5f9;
    --border-light: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;

    /* Neutral / Dark Theme for CTAs and Accents */
    --accent: #db2777;
    --accent-hover: #be185d;
    --accent-light: rgba(219, 39, 119, 0.1);

    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

body {
    --animation-delay: 0.1s;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 80px 0 60px;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-light);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-sub strong {
    color: var(--text-main);
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--bg-white);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--text-main);
}

.btn-primary {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: #ffffff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.final-cta .btn-primary {
    background: #ffffff;
    color: var(--accent);
}

.final-cta .btn-primary:hover {
    background: #f0f0f0;
}

/* Django Form Integration Tweaks */
.waitlist-form p {
    flex: 1;
    margin: 0;
}

.waitlist-form p input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--bg-white);
    color: var(--text-main);
}

.messages {
    margin-top: 16px;
    font-size: 0.875rem;
}

.message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Social Proof Avatar Stack */
.hero-social-proof {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-social-proof strong {
    color: var(--text-main);
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    object-fit: cover;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

/* Hero Right Side Stat Cards */
.stat-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-left {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-right {
    animation: fadeInRight 0.8s ease-out;
}

.stat-card {
    animation: slideUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card-number-sm {
    font-size: 1.5rem;
}

.stat-card-sub {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.stat-card-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-divider {
    width: 1px;
    height: 48px;
    background: var(--border-light);
    margin: 0 16px;
}

/* ==========================================================================
   Ticker Band
   ========================================================================== */

.ticker-band {
    background: var(--text-main);
    color: #ffffff;
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: 32px;
    animation: tickerScroll 40s linear infinite;
}

.ticker-group {
    display: flex;
    gap: 32px;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 32px;
}

.ticker-item::after {
    content: "•";
    color: var(--accent);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Problem Section
   ========================================================================== */

.problem {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.problem-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.problem-h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.problem-h2 span {
    color: var(--accent);
}

.problem-illustration {
    width: 280px;
    height: 280px;
    object-fit: contain;
    margin-top: 40px;
}

.pain-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pain-card {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pain-icon-wrap {
    font-size: 1.5rem;
    background: var(--bg-white);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    line-height: 1;
}

.pain-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pain-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.pain-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: 100px 0;
    background: var(--bg-offwhite);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-main);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.feature-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.feature-icon-wrap {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

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

/* ==========================================================================
   How It Works
   ========================================================================== */

.how {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.step-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

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

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
    padding: 100px 0;
    background: var(--bg-offwhite);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.pricing-inner {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.02);
}

.price-display {
    margin: 32px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-symbol {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.price-suffix {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-perks {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    margin: 40px auto;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-main);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.perk:last-child {
    border-bottom: none;
}

.perk-check {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.btn-inline {
    display: inline-block;
}

/* ==========================================================================
   Countries Coverage Section
   ========================================================================== */

.countries {
    padding: 80px 0;
    background: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countries-flags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.country-pill {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-flag {
    font-size: 1.25rem;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.final-cta {
    padding: 120px 0;
    background: #c41e5d;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    white-space: nowrap;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta-h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.final-cta-sub {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 32px;
}

.waitlist-form-center {
    margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.footer-logo-img {
    width: 28px;
    height: 28px;
    opacity: 1;
}

.footer-copy a {
    color: var(--accent);
    text-decoration: underline;
}

/* Decorative Elements */
.deco {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.deco-hero-top-left {
    width: 80px;
    height: 80px;
    top: 40px;
    left: 20px;
}

.deco-hero-top-right {
    width: 120px;
    height: 120px;
    top: 60px;
    right: 40px;
}

.deco-problem-bg {
    width: 150px;
    height: 150px;
    top: 100px;
    left: -30px;
}

.deco-features-bg {
    width: 100px;
    height: 100px;
    opacity: 0.1;
}

.deco-cta-heart {
    width: 90px;
    height: 90px;
    opacity: 0.12;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 968px) {
    .hero-inner,
    .problem-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-h1 {
        font-size: 2.75rem;
    }
}

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

    .hero-h1 {
        font-size: 2.25rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .pricing-inner {
        padding: 40px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}