/* ============================================
   NAICB — National AI Certification Board
   styles.css
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Primary */
    --navy: #1B2A4A;
    --trust-blue: #2E6DB4;
    --precision-gray: #4A5568;

    /* Secondary */
    --insight-blue: #5B9BD5;
    --slate: #718096;
    --clean-white: #F7FAFC;
    --pure-white: #FFFFFF;

    /* Tier Accents */
    --tier-1: #4299E1;
    --tier-2: #2B6CB0;
    --tier-3: #1A365D;
    --tier-4: #4A5568;

    /* CTA */
    --gold: #D69E2E;
    --gold-hover: #B7791F;

    /* Utility */
    --border: #E2E8F0;
    --shadow: rgba(27, 42, 74, 0.08);
    --shadow-md: rgba(27, 42, 74, 0.12);
    --transition: 0.3s ease;
    --radius: 6px;
    --radius-lg: 10px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--precision-gray);
    background-color: var(--pure-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    line-height: 1.3;
}

a {
    color: var(--trust-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pure-white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 16px var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.nav-tagline {
    font-size: 0.8rem;
    color: var(--slate);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--precision-gray);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--trust-blue);
}

.nav-cta {
    background: var(--gold);
    color: var(--pure-white) !important;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: background var(--transition) !important;
}

.nav-cta:hover {
    background: var(--gold-hover);
    color: var(--pure-white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--navy);
    cursor: pointer;
    padding: 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--pure-white);
}

.btn-primary:hover {
    background: var(--gold-hover);
    color: var(--pure-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 158, 46, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pure-white);
    color: var(--pure-white);
}

/* --- Sections --- */
.section {
    padding: 96px 0;
}

.section-white {
    background: var(--pure-white);
}

.section-light {
    background: var(--clean-white);
}

.section-dark {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3 {
    color: var(--pure-white);
}

.section-navy {
    background: linear-gradient(135deg, var(--navy) 0%, #243656 100%);
    color: rgba(255, 255, 255, 0.85);
}

.section-navy h2,
.section-navy h3 {
    color: var(--pure-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1f3460 50%, var(--tier-3) 100%);
    color: var(--pure-white);
    padding: 160px 0 120px;
    text-align: center;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

.hero-subheadline {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Why NAICB --- */
.section-intro {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-intro p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight-text {
    font-size: 1.15rem !important;
    font-weight: 600;
    color: var(--navy);
    padding: 16px 0;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    background: var(--pure-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow-md);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--clean-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--trust-blue);
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--slate);
}

/* --- Credentials --- */
.tier-block {
    margin-bottom: 48px;
}

.tier-header {
    padding: 32px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: var(--pure-white);
}

.tier-header .tier-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.tier-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    margin: 4px 0 8px;
}

.tier-header p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.tier-1 { background: var(--tier-1); }
.tier-2 { background: var(--tier-2); }
.tier-3 { background: var(--tier-3); }
.tier-4 { background: var(--tier-4); }

.credential-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.credential-card {
    background: var(--pure-white);
    padding: 28px 24px;
    transition: background var(--transition);
}

.credential-card:hover {
    background: var(--clean-white);
}

.credential-abbr {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--trust-blue);
    background: rgba(46, 109, 180, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.credential-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.credential-card p {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.5;
}

.tier-pricing {
    background: var(--clean-white);
    padding: 16px 32px;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--precision-gray);
}

.tier-pricing i {
    color: var(--gold);
    margin-right: 4px;
}

/* --- Wave 1 --- */
.wave1-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.wave1-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform var(--transition), background var(--transition);
}

.wave1-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.wave1-badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.tier-1-accent {
    background: var(--tier-1);
    color: var(--pure-white);
}

.tier-2-accent {
    background: var(--tier-2);
    color: var(--pure-white);
}

.tier-3-accent {
    background: var(--tier-3);
    color: var(--pure-white);
}

.wave1-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.wave1-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.wave1-tier {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--insight-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Pricing --- */
.pricing-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 48px 0 20px;
    color: var(--navy);
}

.pricing-subtitle:first-of-type {
    margin-top: 32px;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pricing-table thead {
    background: var(--navy);
    color: var(--pure-white);
}

.pricing-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.pricing-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--precision-gray);
}

.pricing-table tbody tr:hover {
    background: var(--clean-white);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody {
    border: 1px solid var(--border);
    border-top: none;
}

/* --- FAQ --- */
.faq-list {
    max-width: 780px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--trust-blue);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--slate);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--precision-gray);
}

/* --- About --- */
.about-content {
    max-width: 760px;
    margin: 32px auto 0;
}

.about-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Waitlist / Contact --- */
.waitlist-form {
    max-width: 520px;
    margin: 0 auto 24px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--pure-white);
    outline: none;
    transition: border-color var(--transition);
}

.form-row input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-row input[type="email"]:focus {
    border-color: var(--gold);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 12px;
    opacity: 0.5;
}

.waitlist-confirmation {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 24px;
}

.waitlist-confirmation i {
    font-size: 2.5rem;
    color: #48BB78;
    margin-bottom: 12px;
}

.waitlist-confirmation p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--pure-white);
}

.contact-info {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.contact-info > p {
    margin-bottom: 28px;
    font-size: 1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background: #111B2E;
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: 0.02em;
}

.footer-brand p {
    margin-top: 4px;
    font-size: 0.875rem;
}

.footer-tagline {
    margin-top: 12px !important;
    font-style: italic;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--pure-white);
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.footer-legal {
    font-size: 0.75rem !important;
    opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .value-props {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .wave1-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-tagline {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--pure-white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 32px var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
        border-bottom: none !important;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subheadline {
        font-size: 1.05rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .value-props {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-card {
        padding: 28px 24px;
    }

    .credential-grid {
        grid-template-columns: 1fr;
    }

    .wave1-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .btn {
        width: 100%;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }

    .tier-header {
        padding: 24px 20px;
    }

    .credential-card {
        padding: 20px 16px;
    }

    .wave1-card {
        padding: 24px 20px;
    }
}

/* --- Animation: Fade in on load --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-headline,
.hero-subheadline,
.hero-ctas {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-subheadline {
    animation-delay: 0.15s;
}

.hero-ctas {
    animation-delay: 0.3s;
}

/* Scroll-triggered animations via JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
