/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables matching Booplex design system */
:root {
    /* Colors */
    --electric: #007BFF;
    --cream: #FFF8E1;
    --charcoal: #212121;
    --yellow: #FFD166;
    --mint: #A5D6A7;
    --coral: #FF6B6B;
    --white: #ffffff;

    /* Fonts */
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --brutal-offset: 4px;
    --border-width: 3px;

    /* Shadows */
    --shadow-brutal: 4px 4px 0px 0px var(--charcoal);
    --shadow-brutal-hover: 6px 6px 0px 0px var(--charcoal);
    --shadow-brutal-sm: 2px 2px 0px 0px var(--charcoal);
}

body {
    font-family: var(--font-inter);
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--mint) 100%);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Floating background shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border: var(--border-width) solid var(--charcoal);
    opacity: 0.6;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    top: 10%;
    right: 15%;
    transform: rotate(15deg);
    box-shadow: var(--shadow-brutal);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--coral);
    bottom: 20%;
    left: 10%;
    transform: rotate(-20deg);
    box-shadow: var(--shadow-brutal-sm);
    animation: float 8s ease-in-out infinite 2s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    background: var(--electric);
    top: 30%;
    right: 25%;
    transform: rotate(45deg);
    box-shadow: var(--shadow-brutal-sm);
    animation: float 7s ease-in-out infinite 1s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    background: var(--mint);
    bottom: 40%;
    left: 20%;
    transform: rotate(-10deg);
    box-shadow: var(--shadow-brutal-sm);
    animation: float 9s ease-in-out infinite 3s;
}

.shape-5 {
    width: 30px;
    height: 30px;
    background: var(--yellow);
    top: 60%;
    right: 40%;
    transform: rotate(30deg);
    box-shadow: var(--shadow-brutal-sm);
    animation: float 5s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--initial-rotation, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--initial-rotation, 0deg));
    }
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 0;
}

.logo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--charcoal);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.logo:hover {
    transform: translateY(-2px);
    color: var(--electric);
}

.logo-accent {
    color: var(--electric);
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.highlight {
    color: var(--electric);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--yellow);
    transform: rotate(-1deg);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle p {
    margin-bottom: 1rem;
}

.emphasis {
    font-weight: 600;
    color: var(--electric);
}

/* Status badge */
.status-badge {
    display: inline-block;
    background: var(--yellow);
    border: var(--border-width) solid var(--charcoal);
    box-shadow: var(--shadow-brutal-sm);
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    animation: bounce-subtle 2s ease-in-out infinite;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Signup section */
.signup-section {
    width: 100%;
    max-width: 600px;
}

.signup-card {
    background: var(--white);
    border: var(--border-width) solid var(--charcoal);
    box-shadow: var(--shadow-brutal);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.signup-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brutal-hover);
}

.signup-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.signup-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.signup-form {
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    font-family: var(--font-inter);
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    border: var(--border-width) solid var(--charcoal);
    background: var(--cream);
    color: var(--charcoal);
    flex: 1;
    min-width: 250px;
    transition: all 0.2s ease;
    outline: none;
}

.email-input:focus {
    box-shadow: var(--shadow-brutal-sm);
    transform: translateY(-2px);
    background: var(--white);
}

.email-input::placeholder {
    color: #666;
    font-style: italic;
}

.submit-btn {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    background: var(--electric);
    color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    min-height: 44px;
}

.submit-btn:hover {
    transform: translateY(-2px) translateX(2px);
    box-shadow: var(--shadow-brutal-sm);
}

.submit-btn:active {
    transform: translateY(0) translateX(0);
    box-shadow: none;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Success and Error messages */
.success-message,
.error-message {
    border: var(--border-width) solid var(--charcoal);
    box-shadow: var(--shadow-brutal-sm);
    padding: 1.5rem;
    text-align: center;
    display: none;
    animation: slideInUp 0.5s ease;
}

.success-message {
    background: var(--mint);
}

.error-message {
    background: var(--coral);
}

.success-message.show,
.error-message.show {
    display: block;
}

.success-message h4,
.error-message h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.error-message h4 {
    color: var(--white);
}

.error-message p {
    color: var(--white);
}

/* Visually hidden class for 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;
}

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

/* Social section */
.social-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.social-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: var(--border-width) solid var(--charcoal);
    box-shadow: var(--shadow-brutal-sm);
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-brutal);
}

.social-link[data-platform="twitter"]:hover {
    background: #1DA1F2;
    color: var(--white);
}

.social-link[data-platform="linkedin"]:hover {
    background: #0077B5;
    color: var(--white);
}

.social-link[data-platform="github"]:hover {
    background: var(--charcoal);
    color: var(--white);
}

.social-link[data-platform="email"]:hover {
    background: var(--coral);
    color: var(--white);
}

.social-link span {
    font-weight: 600;
    font-size: 1rem;
}

.link-note {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.8;
}

/* Progress section */
.progress-section {
    width: 100%;
    max-width: 600px;
}

.progress-card {
    background: var(--charcoal);
    color: var(--cream);
    border: var(--border-width) solid var(--charcoal);
    box-shadow: var(--shadow-brutal);
    padding: 2rem;
    text-align: center;
}

.progress-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: var(--cream);
    height: 20px;
    border: 2px solid var(--cream);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--electric), var(--mint), var(--yellow));
    height: 100%;
    width: 0%;
    transition: width 2s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

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

.progress-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-text {
    font-size: 0.9rem;
    color: #666;
}

.footer-accent {
    color: var(--electric);
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .email-input {
        min-width: auto;
        margin-bottom: 0.5rem;
    }

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

    .signup-card {
        padding: 2rem 1.5rem;
    }

    .progress-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        grid-template-columns: 1fr;
    }

    .shape {
        display: none; /* Hide floating shapes on very small screens */
    }

    .signup-card {
        padding: 1.5rem 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .status-badge,
    .progress-fill::after,
    .success-message {
        animation: none;
    }

    .social-link:hover,
    .submit-btn:hover,
    .email-input:focus,
    .signup-card:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.social-link:focus,
.submit-btn:focus,
.email-input:focus {
    outline: 2px solid var(--electric);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--electric);
    color: var(--white);
}

::-moz-selection {
    background: var(--electric);
    color: var(--white);
}