/* ================================================
   NEWHOME V2 — Combined Student + School Homepage
   Uses the site-wide color palette from style.css:
     Primary gradient: #667eea → #764ba2
     Buttons: #4f46e5 / #7c3aed
     Accent green: #059669 / #10b981
   ================================================ */

/* ---- Hero Section ---- */
.v2-hero {
    background: linear-gradient(135deg, #e9eafc 0%, #f7f9fb 100%);
    color: #1f2937;
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.v2-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.v2-hero__banner {
    margin-bottom: 1rem;
}

.v2-hero__banner-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.v2-hero__title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-hero__subtitle {
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.v2-hero__cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 220px;
}

/* btn-primary inherits from style.css (#4f46e5 → #7c3aed) */
/* btn-secondary inherits from style.css (white with indigo border) */

/* ---- v2-main removes default main-content background ---- */
.v2-main {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ---- Social Proof / Stats Strip ---- */
.v2-social-proof {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.v2-social-proof__label {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.v2-social-proof__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.v2-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.v2-stat-item__number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-stat-item__label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* ---- Ask Excelerate Section ---- */
.v2-ask-excelerate {
    margin: 1.5rem 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
}

.v2-ask-excelerate__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    align-items: center;
}

.v2-ask-excelerate__text h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: none;
    -webkit-text-fill-color: white;
}

.v2-ask-excelerate__text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.v2-ask-excelerate__btn {
    background: white;
    color: #667eea;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.v2-ask-excelerate__btn:hover {
    background: #f0f0ff;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Chat preview mockup */
.v2-chat-preview {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v2-chat-preview__bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
}

.v2-chat-preview__bubble--user {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.v2-chat-preview__bubble--ai {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* ---- Section Headers (shared) ---- */
.v2-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.v2-section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-section-header p {
    font-size: 1.15rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.v2-section-header__badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.v2-section-header__badge--student {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.v2-section-header__badge--school {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

/* ---- Section Intro (text + visual side by side) ---- */
.v2-section-intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.v2-section-intro--reverse {
    grid-template-columns: 1.2fr 1fr;
    direction: rtl;
}

.v2-section-intro--reverse > * {
    direction: ltr;
}

.v2-section-intro__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.v2-section-intro__heading {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.v2-section-intro__desc {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.v2-section-intro__visual {
    display: flex;
    justify-content: center;
}

.v2-mockup-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
    border-radius: 16px;
}

/* ---- Audience Sections ---- */
.v2-audience-section {
    padding: 3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.v2-audience-section--schools {
    border-bottom: none;
}

.v2-section-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* ---- Feature Icons ---- */
.v2-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.v2-feature-icon--blue {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.v2-feature-icon--green {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.v2-feature-icon--purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.v2-feature-icon--orange {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

/* ---- School Pilot CTA ---- */
.v2-pilot-cta {
    margin-top: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.2);
    overflow: hidden;
}

.v2-pilot-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    flex-wrap: wrap;
}

.v2-pilot-cta__text h3 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.v2-pilot-cta__text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 550px;
}

.v2-pilot-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.v2-pilot-cta__actions .btn-primary {
    background: white;
    color: #059669;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.v2-pilot-cta__actions .btn-primary:hover {
    background: #f0fdf4;
    color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.v2-pilot-cta__note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ---- How It Works ---- */
.v2-how-it-works {
    padding: 3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.v2-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.v2-step {
    text-align: center;
    max-width: 250px;
    padding: 1.5rem;
}

.v2-step__number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.v2-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.v2-step p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.v2-step__connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin-top: 3.75rem;
    opacity: 0.3;
    flex-shrink: 0;
}

/* ---- Trust & Security ---- */
.v2-trust {
    padding: 3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.v2-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.v2-trust__item {
    background: #f8fafc;
    border: 1px solid #f0f1f3;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.v2-trust__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.v2-trust__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.85rem;
}

.v2-trust__item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.v2-trust__item p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.v2-trust__item p a {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 500;
}

.v2-trust__item p a:hover {
    color: #7c3aed;
}

/* ---- Subjects Grid ---- */
.v2-subjects {
    padding: 3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.v2-subjects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.v2-subject-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.v2-subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
    text-decoration: none;
}

.v2-subject-card__icon {
    font-size: 2rem;
}

.v2-subject-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.v2-subject-card--more {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.v2-subject-card--more .v2-subject-card__icon {
    color: #4f46e5;
    font-weight: 700;
}

.v2-subject-card--more .v2-subject-card__name {
    color: #4f46e5;
}

/* ---- Selective Entry Banner ---- */
.v2-se-banner {
    margin: 1.5rem 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 55%, #14b8a6 100%);
    box-shadow: 0 8px 32px rgba(15, 118, 110, 0.2);
}

.v2-se-banner__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    align-items: center;
}

.v2-se-banner__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 12px;
    display: inline-block;
}

.v2-se-banner__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: white !important;
    line-height: 1.2;
    margin-bottom: 10px;
    background: none !important;
    -webkit-text-fill-color: white !important;
}

.v2-se-banner__desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 460px;
}

.v2-se-banner__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.v2-se-banner__pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
}

.v2-se-banner__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.v2-se-banner__btn-primary {
    background: white;
    color: #0f766e;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.v2-se-banner__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #065f46;
    text-decoration: none;
}

.v2-se-banner__btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    white-space: nowrap;
}

.v2-se-banner__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    text-decoration: none;
}

.v2-se-banner__schools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.v2-se-banner__school {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    backdrop-filter: blur(6px);
    transition: background 0.15s;
}

.v2-se-banner__school:hover {
    background: rgba(255, 255, 255, 0.18);
}

.v2-se-banner__school-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.v2-se-banner__school-icon--blue  { background: rgba(59, 130, 246, 0.35); }
.v2-se-banner__school-icon--pink  { background: rgba(236, 72, 153, 0.35); }
.v2-se-banner__school-icon--green { background: rgba(16, 185, 129, 0.35); }
.v2-se-banner__school-icon--amber { background: rgba(245, 158, 11, 0.35); }

.v2-se-banner__school-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.v2-se-banner__school-detail {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 2px;
}

/* ---- Final CTA ---- */
.v2-final-cta {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.v2-final-cta h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-final-cta > p {
    font-size: 1.15rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.v2-final-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.v2-final-cta__fine-print {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .v2-hero {
        padding: 1rem 1rem 2rem;
    }

    .v2-hero__banner-img {
        width: 100%;
    }

    .v2-hero__title {
        font-size: 1.6rem;
    }

    .v2-hero__subtitle {
        font-size: 1.1rem;
    }

    .v2-hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .v2-hero__cta {
        min-width: 280px;
    }

    .v2-social-proof__stats {
        gap: 1.5rem;
    }

    .v2-stat-item__number {
        font-size: 1.6rem;
    }

    .v2-ask-excelerate__inner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .v2-se-banner__inner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .v2-se-banner__schools {
        grid-template-columns: 1fr 1fr;
    }

    .v2-se-banner__title {
        font-size: 1.6rem !important;
    }

    .v2-section-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .v2-section-intro--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .v2-section-intro__text {
        align-items: center;
    }

    .v2-section-intro__heading {
        font-size: 1.8rem;
    }

    .v2-section-header h2 {
        font-size: 1.8rem;
    }

    .v2-pilot-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .v2-pilot-cta__text p {
        max-width: 100%;
    }

    .v2-step__connector {
        display: none;
    }

    .v2-steps {
        flex-direction: column;
        align-items: center;
    }

    .v2-trust__grid {
        grid-template-columns: 1fr;
    }

    .v2-subjects__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .v2-final-cta {
        padding: 3rem 1.5rem;
    }

    .v2-final-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .v2-hero__title {
        font-size: 1.8rem;
    }

    .v2-hero__cta {
        min-width: unset;
        width: 100%;
    }

    .v2-social-proof__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .v2-subjects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-se-banner__schools {
        grid-template-columns: 1fr;
    }
}
