@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-gradient: linear-gradient(135deg, #ff4d4d, #ff6b3d, #00e5cc);
    --border-color: #333333;
    --input-bg: #0f0f0f;
    --button-bg: #1a1a1a;
    --button-hover: #262626;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Subtle top curved gradient */
.glow-overlay {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1560px;
    height: 1560px;
    background: radial-gradient(circle, rgba(20,20,20,1) 0%, rgba(5,5,5,0) 70%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    width: 100%;
    padding: 2rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: #666;
    width: 20px;
    height: 20px;
}

input[type="email"] {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1.125rem 1rem 1.125rem 3.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
    background-color: #111;
}

input[type="email"]::placeholder {
    color: #666;
}

button {
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1.125rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

button span {
    flex: 1;
}

button:hover {
    background-color: var(--button-hover);
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 10;
}

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

/* Avatar distinct colors */
.avatar:nth-child(1) { background-color: #FF5722; z-index: 6; }
.avatar:nth-child(2) { background-color: #4CAF50; z-index: 5; }
.avatar:nth-child(3) { background-color: #2196F3; z-index: 4; }
.avatar:nth-child(4) { background-color: #E91E63; z-index: 3; }
.avatar:nth-child(5) { background-color: #9C27B0; z-index: 2; }
.avatar:nth-child(6) { background-color: #FFC107; color: #333; z-index: 1; }

.footer-text {
    color: #666;
    font-size: 0.875rem;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.footer-text:hover {
    color: #888;
}

/* ─── Learn Section ─── */
.learn-section {
    position: relative;
    z-index: 1;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.learn-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learn-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.learn-subtitle strong {
    color: var(--text-main);
}

.learn-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learn-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.learn-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 77, 77, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.08);
}

.learn-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 0.75rem;
}

.learn-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.learn-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.learn-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 77, 77, 0.06);
    border: 1px solid rgba(255, 77, 77, 0.15);
    border-radius: 0.75rem;
    line-height: 1.5;
}

.learn-note strong {
    color: var(--text-main);
}

/* ─── CTA Section ─── */
.cta-section {
    position: relative;
    z-index: 1;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.highlight-inline {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle strong {
    color: var(--text-main);
}

/* ─── Tablet & small laptop ─── */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 1.5rem;
    }

    .glow-overlay {
        width: 1000px;
        height: 1000px;
        top: -30%;
    }

    .learn-section {
        padding: 2.5rem 1.5rem 3rem;
    }

    .learn-title {
        font-size: 1.85rem;
    }

    .cta-title {
        font-size: 1.65rem;
    }

    .cta-section {
        padding: 1.5rem 1.5rem 3rem;
    }
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
    body {
        justify-content: flex-start;
        padding-top: 15vh;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .form-container {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    input[type="email"] {
        padding: 0.9rem 0.75rem 0.9rem 3rem;
        font-size: 0.9rem;
        border-radius: 0.625rem;
    }

    .input-icon {
        left: 1rem;
        width: 18px;
        height: 18px;
    }

    button {
        padding: 0.9rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.625rem;
        flex-wrap: wrap;
    }

    button svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        margin-left: -10px;
    }

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

    .glow-overlay {
        width: 700px;
        height: 700px;
        top: -20%;
    }

    .learn-section {
        padding: 2rem 1rem 2.5rem;
    }

    .learn-title {
        font-size: 1.5rem;
    }

    .learn-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }

    .learn-card {
        padding: 1rem 1.15rem;
        gap: 0.85rem;
        border-radius: 0.75rem;
    }

    .learn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        border-radius: 0.625rem;
    }

    .learn-content h3 {
        font-size: 0.9rem;
    }

    .learn-content p {
        font-size: 0.825rem;
    }

    .learn-note {
        font-size: 0.825rem;
        padding: 0.85rem 1rem;
    }

    .cta-section {
        padding: 1.5rem 1rem 2.5rem;
    }

    .cta-title {
        font-size: 1.35rem;
    }

    .cta-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}
