﻿/* ============================================================
       AIDA-SPECIFIC CSS — ALL SELECTORS PREFIXED WITH .aida-
       Uses master CSS variables; never overrides master classes.
       ============================================================ */

/* ---------- Variables (Aida accent overrides) ---------- */
:root {
    --aida-orange: #E8722A;
    --aida-orange-light: #F08B3E;
    --aida-orange-glow: rgba(232, 114, 42, 0.15);
    --aida-navy: #1B2A4A;
    --aida-success: #4CAF50;
    --aida-danger: #E53935;
}

/* ---------- Entire landing wrapper ---------- */
.aida-landing {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    .aida-landing img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .aida-landing a {
        text-decoration: none;
        color: inherit;
    }

/* ---------- Scroll-triggered fade animations ---------- */
@keyframes aidaFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aidaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes aidaScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.aida-fade-up {
    opacity: 0;
    animation: aidaFadeUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
}

@supports (animation-timeline: view()) {
    .aida-fade-up {
        animation: aidaFadeUp 0.7s ease-out both;
        animation-timeline: view();
        animation-range: entry 85% cover 20%;
    }

    .aida-fade-up-d1 {
        animation-delay: 0.1s;
    }

    .aida-fade-up-d2 {
        animation-delay: 0.2s;
    }

    .aida-fade-up-d3 {
        animation-delay: 0.3s;
    }

    .aida-fade-up-d4 {
        animation-delay: 0.4s;
    }
}

/* ---------- Eyebrow label ---------- */
.aida-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aida-orange);
    margin-bottom: 1rem;
}

.aida-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aida-success);
    box-shadow: 0 0 6px rgba(76,175,80,0.4);
    animation: aidaDotPulse 2s ease-in-out infinite;
}

@keyframes aidaDotPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

/* ============================================================
       HERO
       Uses master .hero-grid layout pattern.
       ============================================================ */
.aida-hero {
    background: linear-gradient(135deg, #F8FBFF, #FFFFFF);
    padding: 6rem 0 5rem;
}

.aida-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.aida-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

    .aida-hero h1 em {
        font-style: normal;
        color: var(--aida-orange);
    }

.aida-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2rem;
}

.aida-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.aida-hero-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    animation: aidaFloat 6s ease-in-out infinite;
}

@keyframes aidaFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.aida-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Buttons (extend master patterns) ---------- */
.aida-landing .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--aida-orange);
    color: #fff;
    padding: 0.9rem 1.7rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

    .aida-landing .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(232, 114, 42, 0.3);
        background: var(--aida-orange-light);
    }

.aida-landing .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid var(--brand-blue);
    color: var(--brand-blue);
    background: transparent;
    padding: 0.9rem 1.7rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

    .aida-landing .btn-secondary:hover {
        background: var(--brand-blue);
        color: #fff;
    }

/* ============================================================
       FEATURES GRID
       Uses master .services-grid and .service-card patterns.
       ============================================================ */
.aida-features {
    background: var(--bg-light);
    padding: 5.5rem 0;
}

.aida-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.aida-feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

    .aida-feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-soft);
        border-color: rgba(232, 114, 42, 0.25);
    }

.aida-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: var(--aida-orange-glow);
}

    .aida-feature-icon svg {
        width: 22px;
        height: 22px;
        color: var(--aida-orange);
    }

.aida-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.aida-feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
       TERMINAL SHOWCASE
       ============================================================ */
.aida-terminal {
    padding: 5.5rem 0;
}

.aida-terminal-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    align-items: start;
}

.aida-terminal-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.aida-terminal-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.aida-terminal-img {
    position: sticky;
    top: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

    .aida-terminal-img img {
        width: 100%;
        height: auto;
    }

.aida-stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.aida-stat {
    text-align: center;
}

.aida-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--aida-orange);
}

.aida-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================
       DASHBOARD PREVIEW
       ============================================================ */
.aida-dashboard {
    background: var(--bg-light);
    padding: 5.5rem 0;
}

.aida-dashboard-img {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

    .aida-dashboard-img img {
        width: 100%;
        height: auto;
    }

.aida-insight-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-width: 220px;
    display: none; /* shown on md+ via media query */
}

    .aida-insight-card .ic-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 0.3rem;
    }

        .aida-insight-card .ic-title svg {
            width: 14px;
            height: 14px;
            color: var(--aida-orange);
        }

    .aida-insight-card .ic-desc {
        font-size: 0.72rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

/* ============================================================
       NEW FEATURES — CSS TYPING ANIMATION
       Pure CSS. No JavaScript.
       ============================================================ */
.aida-newfeatures {
    padding: 5.5rem 0;
}

.aida-terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: var(--aida-navy);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.aida-term-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.aida-term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .aida-term-dot.orange {
        background: var(--aida-orange);
    }

    .aida-term-dot.amber {
        background: #F5A623;
    }

    .aida-term-dot.green {
        background: var(--aida-success);
    }

.aida-term-filename {
    margin-left: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.aida-term-body {
    padding: 1.5rem 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.aida-term-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aida-orange);
    margin-bottom: 1rem;
    opacity: 0;
    animation: aidaFadeIn 0.4s ease-out 0.2s forwards;
}

/* ---- Typing animation ---- */
.aida-type-line {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    color: #C5C9D1;
    font-size: 0.82rem;
    line-height: 2.2;
}

    .aida-type-line::before {
        content: "> ";
        color: var(--aida-orange);
        opacity: 0.7;
    }

    /* Line 1 */
    .aida-type-line:nth-of-type(1) {
        animation: aidaTypeLine1 1.5s steps(50) 0.6s forwards;
    }
    /* Line 2 */
    .aida-type-line:nth-of-type(2) {
        animation: aidaTypeLine2 2.0s steps(60) 2.2s forwards;
    }
    /* Line 3 */
    .aida-type-line:nth-of-type(3) {
        animation: aidaTypeLine3 1.8s steps(45) 4.4s forwards;
    }
    /* Line 4 */
    .aida-type-line:nth-of-type(4) {
        animation: aidaTypeLine4 1.5s steps(30) 6.4s forwards;
    }
    /* Line 5 */
    .aida-type-line:nth-of-type(5) {
        animation: aidaTypeLine5 1.3s steps(25) 8.1s forwards;
    }
    /* Line 6 */
    .aida-type-line:nth-of-type(6) {
        animation: aidaTypeLine6 1.8s steps(35) 9.6s forwards;
    }
    /* Line 7 */
    .aida-type-line:nth-of-type(7) {
        animation: aidaTypeLine7 1.8s steps(40) 11.6s forwards;
    }
    /* Line 8 */
    .aida-type-line:nth-of-type(8) {
        animation: aidaTypeLine8 1.5s steps(28) 13.6s forwards;
    }
    /* Line 9 */
    .aida-type-line:nth-of-type(9) {
        animation: aidaTypeLine9 1.5s steps(28) 15.3s forwards;
    }
    /* Line 10 */
    .aida-type-line:nth-of-type(10) {
        animation: aidaTypeLine10 2.0s steps(48) 17.0s forwards;
    }

@keyframes aidaTypeLine1 {
    to {
        width: 460px;
    }
}

@keyframes aidaTypeLine2 {
    to {
        width: 560px;
    }
}

@keyframes aidaTypeLine3 {
    to {
        width: 420px;
    }
}

@keyframes aidaTypeLine4 {
    to {
        width: 290px;
    }
}

@keyframes aidaTypeLine5 {
    to {
        width: 240px;
    }
}

@keyframes aidaTypeLine6 {
    to {
        width: 360px;
    }
}

@keyframes aidaTypeLine7 {
    to {
        width: 400px;
    }
}

@keyframes aidaTypeLine8 {
    to {
        width: 300px;
    }
}

@keyframes aidaTypeLine9 {
    to {
        width: 290px;
    }
}

@keyframes aidaTypeLine10 {
    to {
        width: 520px;
    }
}

/* Blinking cursor after typing */
.aida-type-line {
    border-right: 2px solid transparent;
}

    .aida-type-line:nth-of-type(10) {
        animation: aidaTypeLine10 2.0s steps(48) 17.0s forwards, aidaCursorBlink 0.8s step-end 19.0s 6;
    }

@keyframes aidaCursorBlink {
    0%, 100% {
        border-right-color: var(--aida-orange);
    }

    50% {
        border-right-color: transparent;
    }
}

.aida-term-prompt {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

    .aida-term-prompt span {
        color: var(--aida-success);
    }

.aida-term-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--text-muted);
    opacity: 0.5;
    animation: aidaCursorBlink2 1s step-end infinite;
}

@keyframes aidaCursorBlink2 {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0;
    }
}

/* Summary badges */
.aida-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.aida-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--aida-orange-glow);
    border: 1px solid rgba(232, 114, 42, 0.2);
    color: var(--aida-orange);
}

/* ============================================================
       PLATFORM AVAILABILITY
       Uses master .store-chips and .store-chip classes.
       ============================================================ */
.aida-platform {
    background: var(--bg-light);
    padding: 5.5rem 0;
}

.aida-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.aida-platform-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

    .aida-platform-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-soft);
        border-color: rgba(232, 114, 42, 0.2);
    }

.aida-platform-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .aida-platform-icon svg {
        width: 40px;
        height: 40px;
    }

.aida-platform-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.aida-platform-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.aida-platform-card .site-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.aida-platform-card .aida-btn-ms {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    background: #0078D4;
    color: #fff;
    transition: var(--transition);
}

    .aida-platform-card .aida-btn-ms:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 120, 212, 0.35);
    }

.aida-platform-card .aida-btn-gp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    background: #4285F4;
    color: #fff;
    transition: var(--transition);
}

    .aida-platform-card .aida-btn-gp:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(66, 133, 244, 0.35);
    }

/* ============================================================
       PRICING CTA
       Uses master .cta gradient pattern and .contact-btn.
       ============================================================ */
.aida-pricing {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: #fff;
    padding: 5rem 1.5rem;
}

.aida-pricing-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.aida-pricing h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.aida-pricing p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.aida-pricing .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-orange);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

    .aida-pricing .contact-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(242, 140, 40, 0.45);
    }

.aida-pricing-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.65;
}

/* ============================================================
       TESTIMONIALS
       ============================================================ */
.aida-testimonials {
    background: var(--bg-light);
    padding: 5.5rem 0;
}

.aida-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.aida-testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

    .aida-testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }

.aida-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

    .aida-stars svg {
        width: 16px;
        height: 16px;
        color: var(--aida-orange);
        fill: var(--aida-orange);
    }

.aida-testimonial-card blockquote {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.aida-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .aida-testimonial-author img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
    }

.aida-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.aida-author-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
       RESPONSIVE
       ============================================================ */
@media (max-width: 1024px) {
    .aida-hero-grid,
    .aida-terminal-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .aida-hero-grid {
        text-align: center;
    }

    .aida-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .aida-hero-actions {
        justify-content: center;
    }

    .aida-terminal-img {
        position: static;
        order: -1;
    }

    .aida-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aida-platform-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .aida-testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .aida-features-grid {
        grid-template-columns: 1fr;
    }

    .aida-stats-bar {
        gap: 1.5rem;
    }

    .aida-stat-value {
        font-size: 1.6rem;
    }
}

/* Show insight cards on larger screens */
@media (min-width: 1024px) {
    .aida-insight-card {
        display: block;
    }
}

/* Dark mode support using master variables */
@media (prefers-color-scheme: dark) {
    .aida-hero {
        background: linear-gradient(135deg, #020617, #0B1220);
    }

    .aida-features,
    .aida-dashboard,
    .aida-platform,
    .aida-testimonials {
        background: var(--bg-light);
    }

    .aida-terminal {
        background: var(--bg-main);
    }

    .aida-feature-card,
    .aida-platform-card,
    .aida-testimonial-card {
        background: var(--bg-card);
        border-color: var(--border-color);
    }

    .aida-dashboard-img,
    .aida-terminal-img,
    .aida-hero-img {
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }

    .aida-insight-card {
        background: var(--bg-card);
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .aida-type-line {
        width: auto !important;
        white-space: normal;
        animation: none !important;
    }
}
