/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Color Palette */
    --color-primary: #ffbc00;        /* Yellow/Gold */
    --color-primary-dark: #cc9600;
    --color-primary-light: #ffd34d;
    --color-secondary: #000000;      /* Black */
    --color-secondary-light: #1a1a1a;
    --color-accent: #0a92dd;         /* Blue */
    --color-background: #FFFFFF;
    --color-background-alt: #F8F9FA;
    --color-text: #000000;
    --color-text-light: #666666;
    --color-border: #DEE2E6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Skip Link (Accessibility)
   =========================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Visually Hidden (Accessibility)
   =========================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================
   Container
   =========================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Background Logo (Scroll Effect)
   =========================== */

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.background-logo.visible {
    opacity: 0.15;
}

.background-logo-img {
    height: 500px;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
    background-color: var(--color-background);
    padding: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: padding 0.3s ease-in-out;
}

header.scrolled {
    padding: var(--spacing-md) 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.logo-container a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: var(--border-radius);
}

.logo-img {
    height: 240px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: transform var(--transition-speed), height 0.3s ease-in-out;
}

header.scrolled .logo-img {
    height: 120px;
}

.logo-container a:hover .logo-img,
.logo-container a:focus .logo-img {
    transform: scale(1.02);
}

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

.hero {
    background-color: var(--color-accent);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both, pulse 2s ease-in-out infinite;
}

.badge-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
}

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

.features {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background-alt);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-accent);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    text-align: center;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--color-primary);
}

.feature-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.feature-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===========================
   Social CTA Section
   =========================== */

.signup {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-secondary);
    position: relative;
    z-index: 1;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.signup-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.signup-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.social-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
}

.social-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    background: var(--color-accent);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    box-shadow: var(--shadow-lg);
}

.social-cta-button .social-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.social-cta-button:hover,
.social-cta-button:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: var(--color-secondary);
}

.social-cta-button:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 4px;
}

.social-cta-button:active {
    transform: translateY(-2px);
}

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

footer {
    background-color: var(--color-accent);
    color: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.footer-heading {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    font-size: var(--font-size-base);
    line-height: 1.7;
}

.footer-address {
    font-style: normal;
    font-size: var(--font-size-base);
}

.footer-address a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-address a:hover,
.footer-address a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.copyright {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.footer-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Focus Styles (Accessibility)
   =========================== */

a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===========================
   Animations
   =========================== */

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

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

/* ===========================
   Responsive Design
   =========================== */

/* Tablets and up */
@media (min-width: 768px) {
    .logo-img {
        height: 360px;
    }

    header.scrolled .logo-img {
        height: 180px;
    }

    .background-logo-img {
        height: 600px;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

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

    .social-cta-buttons {
        flex-direction: row;
        max-width: 600px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-section:first-child {
        text-align: left;
    }

    .footer-section:nth-child(2) {
        text-align: center;
    }

    .footer-section:last-child {
        text-align: right;
    }
}

/* Large desktops */
@media (min-width: 1024px) {
    .logo-img {
        height: 400px;
    }

    header.scrolled .logo-img {
        height: 200px;
    }

    .background-logo-img {
        height: 700px;
    }

    .container {
        padding: 0 var(--spacing-xl);
    }

    .hero {
        padding: var(--spacing-3xl) 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* Reduced motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode (Accessibility) */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #ffbc00;
        --color-accent: #0a92dd;
        --color-secondary: #000000;
        --color-text: #000000;
        --color-background: #FFFFFF;
    }

    .feature-card {
        border: 2px solid var(--color-secondary);
    }
}

/* Print styles */
@media print {
    .signup,
    header {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a {
        text-decoration: underline;
    }
}
