/* ==========================================================================
   Crokinole 2D — Variant 2 (Refined)
   Warm maple wood aesthetic with sport blue/red accents
   ========================================================================== */

:root {
    /* Sport Colors (from logo) */
    --sport-blue: #385a8c;
    --sport-blue-dark: #2a4570;
    --sport-blue-light: #4a6fa3;
    --sport-red: #c04038;

    /* Maple Wood Palette */
    --cream: #e1d6c4;
    --cream-light: #ebe4d6;
    --cream-dark: #d4c8b4;
    --wood-accent: #c2a875;

    /* Text Colors */
    --text-primary: #2c2418;
    --text-secondary: #4a4035;
    --text-muted: #7a6f60;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(44, 36, 24, 0.06);
    --shadow-md: 0 4px 12px rgba(44, 36, 24, 0.08);
    --shadow-lg: 0 8px 24px rgba(44, 36, 24, 0.12);
    --shadow-xl: 0 16px 48px rgba(44, 36, 24, 0.16);
}

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

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo-main {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero-content {
    text-align: center;
    flex: 1;
    z-index: 1;
    min-width: 0;
}

/* Badge - warm styling */
.badge {
    display: inline-block;
    background: rgba(56, 90, 140, 0.1);
    color: var(--sport-blue);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(56, 90, 140, 0.2);
    letter-spacing: 0.01em;
}

.hero h1 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Email Signup Form */
.hero-signup {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto 0.75rem;
    background: white;
    padding: 6px;
    border-radius: 14px;
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(44, 36, 24, 0.08);
}

.hero-signup input {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.hero-signup input::placeholder {
    color: var(--text-muted);
}

.hero-signup input:focus {
    outline: none;
}

.hero-signup button {
    background: var(--sport-blue);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-signup button:hover {
    background: var(--sport-blue-dark);
    transform: translateY(-1px);
}

.hero-signup button:active {
    transform: translateY(0);
}

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

/* Phone Mockup */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.hero-phone {
    width: 100%;
    height: auto;
    max-width: 400px;
    filter: drop-shadow(0 25px 50px rgba(44, 36, 24, 0.25));
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 5rem 0;
    background: var(--cream-dark);
    border-top: 1px solid rgba(44, 36, 24, 0.06);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: 20px;
    background: var(--cream);
    border: 1px solid rgba(44, 36, 24, 0.06);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(56, 90, 140, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sport-blue);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 5rem 0;
    background: var(--cream);
}

.cta-box {
    background: var(--text-primary);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(56, 90, 140, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(192, 64, 56, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
}

.cta-box .signup-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.cta-box input {
    flex: 1;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    min-width: 0;
}

.cta-box input::placeholder {
    color: var(--text-muted);
}

.cta-box button {
    background: var(--sport-blue);
    color: white;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-box button:hover {
    background: var(--sport-blue-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 2.5rem 0;
    background: var(--cream);
    border-top: 1px solid rgba(44, 36, 24, 0.08);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    opacity: 0.8;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--sport-blue);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1024px) {
    .hero {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .hero-split {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 4rem;
    }

    .hero-logo-main {
        margin-left: -20px;
        margin-right: 0;
        max-width: 600px;
    }

    .hero-content {
        text-align: left;
        flex: 1;
    }

    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-signup {
        margin: 0 0 0.75rem 0;
    }

    .hero-image-container {
        flex: 1;
        max-width: 440px;
    }
}

@media (max-width: 768px) {
    .hero-signup {
        flex-direction: column;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .hero-signup input {
        background: white;
        border-radius: 12px;
        padding: 1rem 1.25rem;
        box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(44, 36, 24, 0.08);
    }

    .hero-signup button {
        padding: 1rem;
    }

    .cta-box .signup-form {
        flex-direction: column;
    }

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

/* ==========================================================================
   Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .floating {
        animation: none;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--sport-blue);
    outline-offset: 2px;
}

input:focus-visible {
    outline: none;
}
