/* NCLEX Nerds Landing Page Styles */

:root {
    --primary-purple: #7c3aed;
    --primary-purple-dark: #6d28d9;
    --secondary-purple: #4f46e5;
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);

    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #f8fafc;

    --green: #22c55e;
    --green-light: #dcfce7;
    --red: #ef4444;
    --red-light: #fef2f2;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 32px rgba(124, 58, 237, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.header-cta {
    padding: 10px 20px;
    background: var(--gradient-main);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* ==================== HERO ==================== */
.hero {
    background: var(--bg-dark);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(79, 70, 229, 0.2), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--text-inverse);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--primary-purple);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.hero-cta .arrow {
    transition: transform 0.2s ease;
}

.hero-cta:hover .arrow {
    transform: translateX(4px);
}

/* ==================== SHARED SECTION STYLES ==================== */
.section-content {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-header-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-logo {
    height: 40px;
    width: auto;
}

.section-header-with-logo h2 {
    margin-bottom: 0;
}

/* ==================== WHAT'S FREE SECTION ==================== */
.whats-free-section {
    padding: 80px 24px;
    background: var(--bg-card);
}

.whats-free-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .whats-free-grid {
        grid-template-columns: 1fr;
    }
}

.free-card {
    background: var(--bg-page);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.free-card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-md);
}

.free-card-header {
    padding: 20px 24px;
    background: var(--gradient-main);
}

.free-card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.free-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.free-card-body {
    padding: 24px;
}

.free-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.free-card-list {
    list-style: none;
}

.free-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.free-card-list .check {
    color: var(--green);
    font-weight: 700;
}

/* ==================== METHOD SECTION ==================== */
.method-section {
    padding: 80px 24px;
    background: var(--gradient-subtle);
}

.method-path {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.method-step {
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.method-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

@media (max-width: 900px) {
    .method-step:not(:last-child)::after {
        display: none;
    }
    .method-path {
        gap: 16px;
    }
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.step-tag {
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ==================== SHOWCASE SECTION ==================== */
.showcase-section {
    padding: 80px 24px;
    background: var(--bg-page);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.showcase-item:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-caption {
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

.showcase-caption-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.showcase-caption-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== PROBLEM SECTION ==================== */
.problem-section {
    padding: 80px 24px;
    background: var(--bg-card);
}

.problem-list {
    max-width: 700px;
    margin: 0 auto;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-page);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.problem-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.problem-text-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.problem-text-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.problem-solution {
    text-align: center;
    margin-top: 32px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.problem-solution .try-free-link {
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.problem-solution .try-free-link:hover {
    text-decoration: underline;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 24px;
    background: var(--gradient-main);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 48px;
    background: white;
    color: var(--primary-purple);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-button .arrow {
    transition: transform 0.2s ease;
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

.cta-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 32px 24px;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-text a {
    color: var(--primary-purple);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.modal-logo {
    height: 56px;
    width: auto;
    margin-bottom: 12px;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--red-light);
    color: var(--red);
}

.modal-body {
    padding: 24px;
}

/* Modal Steps */
.modal-step-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Signup Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row .form-group {
    min-width: 0; /* Prevent grid overflow */
}

.form-row .form-group input {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-page);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-submit {
    padding: 14px 24px;
    background: var(--gradient-main);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-error {
    color: var(--red);
    font-size: 0.85rem;
    text-align: center;
    display: none;
    margin-top: 4px;
}

/* Success Step */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green);
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-desc {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.success-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 24px;
}

.success-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.success-note a {
    color: var(--primary-purple);
    text-decoration: none;
}

.success-note a:hover {
    text-decoration: underline;
}

/* Code Input */
.code-input {
    font-size: 1.5rem !important;
    letter-spacing: 0.5em;
    text-align: center;
    font-family: 'Space Grotesk', monospace !important;
    font-weight: 600;
}

.code-input::placeholder {
    letter-spacing: 0.3em;
    opacity: 0.5;
}

/* Checkbox */
.checkbox-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

/* Resend Link */
.form-resend {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.resend-link {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.resend-link:hover:not(:disabled) {
    text-decoration: underline;
}

.resend-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .code-input {
        font-size: 1.25rem !important;
        letter-spacing: 0.4em;
    }
}

/* ==================== LIGHTBOX ==================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.visible .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .header {
        padding: 12px 16px;
    }

    .brand-logo {
        height: 40px;
        width: auto;
    }

    .brand-name {
        font-size: 1rem;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 48px 20px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .whats-free-section,
    .method-section,
    .showcase-section,
    .problem-section {
        padding: 48px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .free-card-header {
        padding: 16px 20px;
    }

    .free-card-title {
        font-size: 1.1rem;
    }

    .free-card-body {
        padding: 20px;
    }

    .method-path {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .method-step {
        max-width: 100%;
        width: 100%;
        padding: 20px 16px;
        background: var(--bg-card);
        border-radius: 12px;
        border: 1px solid var(--border-light);
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .showcase-caption {
        padding: 14px 16px;
    }

    .showcase-caption-title {
        font-size: 0.95rem;
    }

    .showcase-caption-desc {
        font-size: 0.8rem;
    }

    .problem-item {
        padding: 16px;
        gap: 12px;
    }

    .problem-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .cta-section {
        padding: 48px 20px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 24px 16px;
    }
}
