/**
 * aiminds School of AI — homepage (light + purple #7D37FF, hybrid dark sections)
 * Loaded only on home.blade.php (Plus Jakarta Sans linked from home.blade head)
 */

.home-aiminds {
    --am-purple: #7d37ff;
    --am-purple-hover: #6829e6;
    --am-purple-soft: rgba(125, 55, 255, 0.08);
    --am-purple-muted: rgba(125, 55, 255, 0.14);
    --am-ink: #0f172a;
    --am-muted: #64748b;
    --am-radius: 12px;
    --am-radius-sm: 8px;
    --am-bg: #ffffff;
    --am-card-bg: #ffffff;
    --am-border: #f1f5f9;
    font-family: 'Plus Jakarta Sans', var(--aiminds-body-font, 'Montserrat', sans-serif);
}

[data-theme="dark"] .home-aiminds,
[data-theme="dark"].home-aiminds {
    --am-ink: #f8fafc;
    --am-muted: #94a3b8;
    --am-bg: #0f172a;
    --am-card-bg: #1e293b;
    --am-border: #334155;
    --am-purple-soft: rgba(167, 139, 250, 0.15);
}

.home-aiminds h1,
.home-aiminds h2,
.home-aiminds h3,
.home-aiminds .am-h1,
.home-aiminds .am-section-title {
    font-family: 'Plus Jakarta Sans', var(--aiminds-heading-font, 'Montserrat', sans-serif);
    letter-spacing: -0.02em;
}

/* —— Light hero (mockup: white + purple accents) —— */
.am-hero {
    position: relative;
    padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6.5rem);
    background: var(--am-bg);
    overflow: hidden;
}

.am-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 55%;
    max-width: 640px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(125, 55, 255, 0.12) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.am-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .am-hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
        align-items: center;
    }
}

.am-hero__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--am-muted);
    margin-bottom: 0.75rem;
}

.am-hero__title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--am-ink);
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.am-hero__title .am-accent {
    color: var(--am-purple);
}

.am-hero__lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--am-muted);
    max-width: 32rem;
    margin: 0 0 1.75rem;
}

.am-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--am-radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.am-btn--primary {
    background: var(--am-purple);
    color: #fff;
    box-shadow: 0 4px 14px rgba(125, 55, 255, 0.35);
}

.am-btn--primary:hover {
    background: var(--am-purple-hover);
    color: #fff;
    box-shadow: 0 6px 20px rgba(125, 55, 255, 0.4);
    transform: translateY(-1px);
}

.am-btn--ghost {
    background: var(--am-card-bg);
    color: var(--am-ink);
    border-color: var(--am-border);
}

.am-btn--ghost:hover {
    border-color: var(--am-purple);
    color: var(--am-purple);
}

.am-hero__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.am-hero__avatars {
    display: flex;
    align-items: center;
}

.am-hero__avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--am-bg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    margin-left: -10px;
}

.am-hero__avatars img:first-child {
    margin-left: 0;
}

.am-hero__trust-text {
    font-size: 0.875rem;
    color: var(--am-muted);
}

.am-hero__trust-text strong {
    color: var(--am-ink);
}

.am-stars {
    color: #fbbf24;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.am-stars em {
    font-style: normal;
    color: var(--am-muted);
    font-size: 0.8125rem;
    margin-left: 0.35rem;
}

/* Hero visual (stored local asset) */
.am-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.am-hero-image {
    width: min(100%, 520px);
    height: auto;
    display: block;
    animation: am-float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 36px rgba(125, 55, 255, 0.2));
}

@keyframes am-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-hero-image {
        animation: none;
    }
}

/* Feature row */
.am-features {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--am-bg);
    border-top: 1px solid var(--am-border);
}

.am-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .am-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .am-features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.am-feature-card {
    background: var(--am-card-bg);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-sm);
    padding: 1.35rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.am-feature-card:hover {
    border-color: rgba(125, 55, 255, 0.35);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.08));
}

.am-feature-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.85rem;
    color: var(--am-purple);
}

.am-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--am-ink);
    margin: 0 0 0.5rem;
}

.am-feature-card p {
    font-size: 0.9rem;
    color: var(--am-muted);
    line-height: 1.55;
    margin: 0;
}

/* Programs split */
.am-programs {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--am-bg);
}

.am-programs__head {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.am-programs__head h2 {
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 800;
    color: var(--am-ink);
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.am-programs__head .am-accent {
    color: var(--am-purple);
}

.am-programs__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .am-programs__layout {
        grid-template-columns: minmax(240px, 320px) 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

.am-program-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 100px;
}

.am-program-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--am-radius-sm);
    text-decoration: none;
    color: var(--am-ink);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.am-program-nav a:hover {
    background: var(--am-card-bg);
    border-color: var(--am-border);
}

.am-program-nav a.is-active {
    background: var(--am-purple-soft) !important;
    border-color: var(--am-purple);
    color: var(--am-purple) !important;
}

.am-program-nav svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.am-program-card {
    background: var(--am-card-bg);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .am-program-card {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.am-program-card__body {
    padding: clamp(2rem, 5vw, 3rem);
}

.am-program-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--am-purple);
    background: var(--am-purple-soft);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.am-program-card__body h3 {
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--am-ink);
    line-height: 1.1;
}

.am-check-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.am-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--am-muted);
    line-height: 1.5;
}

.am-check-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--am-purple);
}

.am-program-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

.am-program-card__price strong {
    font-size: 1.75rem;
    color: var(--am-ink);
}

.am-program-card__badge {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.am-program-card__visual {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    min-height: 200px;
}

.am-program-card__visual img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Dark testimonials */
.am-section--dark {
    background: linear-gradient(180deg, #0f0a1a 0%, #151022 50%, #0f0a1a 100%);
    color: #e2e8f0;
    padding: 5rem 0;
}

.am-section--dark .am-section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    margin: 0 0 2.5rem;
    color: #fff;
}

.am-section--dark .am-accent {
    color: #c4b5fd;
}

.am-testimonials {
    position: relative;
}

.am-testimonials__track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .am-testimonials__track {
        grid-template-columns: repeat(3, 1fr);
    }
}

.am-t-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--am-radius);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.am-t-card:hover {
    border-color: rgba(125, 55, 255, 0.35);
}

.am-t-card__quote {
    font-size: 1.35rem;
    color: rgba(196, 181, 253, 0.75);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.am-t-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 1.25rem;
}

.am-t-card__who {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.am-t-card__who img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.am-t-card__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.am-t-card__role {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.am-t-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.am-t-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.am-t-nav button:hover {
    background: rgba(125, 55, 255, 0.35);
    border-color: rgba(125, 55, 255, 0.5);
}

/* CTA strip */
.am-cta-strip {
    padding: 4rem 0;
    background: linear-gradient(90deg, rgba(125, 55, 255, 0.08) 0%, rgba(237, 233, 254, 0.6) 50%, rgba(125, 55, 255, 0.08) 100%);
    border-top: 1px solid rgba(125, 55, 255, 0.12);
    border-bottom: 1px solid rgba(125, 55, 255, 0.12);
}

.am-cta-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.am-cta-strip h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--am-ink);
    margin: 0 0 0.35rem;
}

.am-cta-strip__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.4rem;
    display: block;
}

.am-cta-strip p {
    margin: 0;
    color: var(--am-muted);
    font-size: 1rem;
}

.am-cta-strip .am-accent {
    color: var(--am-purple);
}

.am-cta-strip__note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--am-muted);
}

.am-cta-strip__note img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -12px;
}

.am-cta-strip__note img:first-child {
    margin-left: 0;
}

/* FAQ + lead on white */
.am-home-faq {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--am-bg);
}

.am-home-faq .section-title {
    color: var(--am-ink);
}