/* ============================
   DreamzAI Page – Page Styles
   Extends styles.css design tokens
   ============================ */

/* Hero ----------------------------------------- */
.dai-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 24px 80px;
    position: relative;
    overflow: hidden;
}

.dai-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    width: 100%;
}

.dai-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.dai-hero-text .badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #BFDBFE;
    font-size: 0.85rem;
    font-weight: 500;
}

.dai-hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dai-hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 520px;
}

.dai-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 8px;
}

.dai-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dai-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #93C5FD, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dai-stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.text-wa-green {
    -webkit-text-fill-color: #25D366;
    color: #25D366;
}

.dai-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dai-mascot-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: floatMascot 5s ease-in-out infinite;
}

.dai-mascot-wrapper img:first-child {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.35));
}

.dai-wa-float {
    position: absolute;
    width: 110px;
    height: 110px;
    top: 40%;
    right: -12%;
    filter: drop-shadow(0 0 20px rgba(37, 211, 102, 0.7));
    animation: floatWa 4s ease-in-out infinite 0.8s;
    pointer-events: none;
}

@keyframes floatWa {

    0%,
    100% {
        transform: translateY(0) rotate(-6deg);
    }

    50% {
        transform: translateY(-12px) rotate(4deg);
    }
}

.dai-phone-badge {
    position: absolute;
    top: 15%;
    left: -10%;
    background: rgb(62 189 67 / 31%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.dai-phone-badge .badge-icon {
    width: 36px;
    height: 36px;
    background: #25D366;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
}

.dai-phone-badge .badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dai-phone-badge-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.dai-phone-badge-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dai-reply-badge {
    position: absolute;
    bottom: 15%;
    right: -8%;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #93C5FD;
    animation: float 7s ease-in-out infinite 1.5s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dai-reply-badge-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

/* Setup Video Section -------------------------- */
.dai-setup-video {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #0B0E14 0%, #101835 50%, #0B0E14 100%);
    padding: 130px 24px 100px 24px;
    position: relative;
    clip-path: polygon(0 60px, 60% 60px, calc(60% + 60px) 0, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
}

.dai-setup-video-inner {
    max-width: 900px;
    margin: 0 auto;
}

.dai-setup-video-wrapper {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(59, 130, 246, 0.1);
    aspect-ratio: 16 / 9;
    background: #000;
    margin-top: 48px;
}

.dai-setup-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Intro Content Section ----------------------- */
.dai-intro {
    padding: 100px 24px 150px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.dai-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.dai-intro-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 24px;
    line-height: 1.2;
}

.dai-intro-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.dai-intro-content .btn {
    margin-top: 8px;
}

.dai-intro-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(20, 30, 62, 0.5);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dai-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    border-radius: 24px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(20, 30, 62, 0.6), rgba(30, 41, 75, 0.4));
    min-height: 260px;
    border-radius: 24px;
}

.image-placeholder .lucide {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* Features Grid -------------------------------- */
.dai-features {
    padding: 120px 24px 160px 24px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    clip-path: polygon(0 0, 40% 0, calc(40% + 60px) 60px, 100% 60px, 100% 100%, 0 100%);
    margin-top: -60px;
}

.dai-features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.dai-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.dai-section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.dai-section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.dai-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.dai-features-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dai-feature-card {
    background: linear-gradient(180deg, rgba(30, 41, 75, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.dai-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dai-feature-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(20, 30, 62, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.dai-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.dai-feature-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.8));
}

.dai-feature-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dai-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.dai-feature-icon .lucide {
    width: 20px;
    height: 20px;
    color: #93C5FD;
}

.dai-feature-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.dai-feature-body p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
}

/* Video Section -------------------------------- */
.dai-video-section {
    padding: 160px 24px 140px 24px;
    text-align: center;
    position: relative;
    background:
        linear-gradient(to bottom,
            #141E3E 0%,
            rgba(11, 14, 20, 0) 18%,
            rgba(11, 14, 20, 0) 82%,
            #141E3E 100%),
        url('image/blue-bg-2.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    clip-path: polygon(0 60px, 60% 60px, calc(60% + 60px) 0, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
}

.dai-video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 14, 20, 0.5);
    pointer-events: none;
}

.dai-video-section>* {
    position: relative;
    z-index: 1;
}

.dai-video-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.dai-video-section>p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1rem;
    line-height: 1.6;
}

.dai-video-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    aspect-ratio: 16/9;
    max-width: 900px;
    margin: 0 auto;
    cursor: pointer;
}

.dai-video-wrapper img,
.dai-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
}

.dai-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s;
}

.dai-video-wrapper:hover .dai-video-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-btn {
    width: 72px;
    height: 72px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 16px rgba(59, 130, 246, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.play-btn .lucide {
    width: 28px;
    height: 28px;
    color: white;
    margin-left: 4px;
}

.dai-video-wrapper:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 0 24px rgba(59, 130, 246, 0.1);
}

/* Benefits Section ----------------------------- */
.dai-benefits {
    padding: 140px 24px 100px;
    background: rgb(16 23 47);
    clip-path: polygon(0 0, 40% 0, calc(40% + 60px) 60px, 100% 60px, 100% 100%, 0 100%);
    margin-top: -60px;
}

.dai-benefits-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.dai-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.dai-benefit-card {
    background: linear-gradient(180deg, rgba(30, 41, 75, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 32px;
}

.dai-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, rgba(30, 41, 75, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.dai-benefit-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dai-benefit-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 4px;
}

.dai-benefit-body p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* FAQ ----------------------------------------- */
.dai-faq {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.dai-faq-inner {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 64px;
    align-items: start;
}

.dai-faq-mascot {
    position: sticky;
    top: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dai-faq-mascot img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.3));
    animation: floatMascot 6s ease-in-out infinite;
}

.dai-faq-content {
    min-width: 0;
}

.dai-faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.dai-faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 22px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}

.dai-faq-question:hover {
    color: #93C5FD;
}

.dai-faq-question .faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.3s;
}

.dai-faq-question .faq-icon .lucide {
    width: 14px;
    height: 14px;
    color: #93C5FD;
    transition: transform 0.3s ease;
}

.dai-faq-item.open .dai-faq-question {
    color: #93C5FD;
}

.dai-faq-item.open .faq-icon {
    background: rgba(59, 130, 246, 0.25);
}

.dai-faq-item.open .faq-icon .lucide {
    transform: rotate(45deg);
}

.dai-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.dai-faq-answer-inner {
    padding-bottom: 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.dai-faq-item.open .dai-faq-answer {
    max-height: 300px;
}

/* CTA Section --------------------------------- */
.dai-cta {
    padding: 80px 24px 120px;
}

.dai-cta-box {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 41, 75, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.dai-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.dai-cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.dai-cta-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}

.dai-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive ---------------------------------- */
@media (max-width: 900px) {
    .dai-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .dai-hero-text {
        align-items: center;
    }

    .dai-hero-stats {
        justify-content: center;
    }

    .dai-intro-grid {
        grid-template-columns: 1fr;
    }

    .dai-features-grid {
        grid-template-columns: 1fr;
    }

    .dai-features-grid-2col {
        grid-template-columns: 1fr;
    }

    .dai-benefits-grid {
        grid-template-columns: 1fr;
    }

    .dai-phone-badge,
    .dai-reply-badge {
        display: none;
    }

    .dai-cta-box {
        padding: 40px 24px;
    }

    .dai-faq-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dai-faq-mascot {
        position: static;
        margin: 0 auto;
        max-width: 300px;
    }

    /* ── Section padding overrides ── */
    .dai-hero {
        padding: 120px 16px 60px;
    }

    .dai-setup-video {
        padding: 90px 16px 70px;
        clip-path: polygon(0 40px, 60% 40px, calc(60% + 40px) 0, 100% 0, 100% 100%, 0 100%);
        margin-top: -40px;
    }

    .dai-intro {
        padding: 60px 16px 90px;
    }

    .dai-features {
        padding: 80px 16px 100px;
        clip-path: polygon(0 0, 40% 0, calc(40% + 40px) 40px, 100% 40px, 100% 100%, 0 100%);
        margin-top: -40px;
    }

    .dai-video-section {
        padding: 100px 16px 90px;
        clip-path: polygon(0 40px, 60% 40px, calc(60% + 40px) 0, 100% 0, 100% 100%, 0 100%);
        margin-top: -40px;
    }

    .dai-benefits {
        padding: 90px 16px 60px;
        clip-path: polygon(0 0, 40% 0, calc(40% + 40px) 40px, 100% 40px, 100% 100%, 0 100%);
        margin-top: -40px;
    }

    .dai-faq {
        padding: 60px 16px;
    }

    .dai-cta {
        padding: 60px 16px 80px;
    }

    .dai-setup-video-wrapper {
        margin-top: 32px;
    }

    .dai-section-header {
        margin-bottom: 40px;
    }

    .dai-section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
}

@media (max-width: 600px) {
    .dai-hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .dai-hero {
        padding: 100px 16px 48px;
    }

    .dai-setup-video {
        padding: 72px 16px 56px;
        clip-path: polygon(0 32px, 60% 32px, calc(60% + 32px) 0, 100% 0, 100% 100%, 0 100%);
        margin-top: -32px;
    }

    .dai-intro {
        padding: 48px 16px 72px;
    }

    .dai-features {
        padding: 64px 16px 80px;
        clip-path: polygon(0 0, 40% 0, calc(40% + 32px) 32px, 100% 32px, 100% 100%, 0 100%);
        margin-top: -32px;
    }

    .dai-video-section {
        padding: 80px 16px 72px;
        clip-path: polygon(0 32px, 60% 32px, calc(60% + 32px) 0, 100% 0, 100% 100%, 0 100%);
        margin-top: -32px;
    }

    .dai-benefits {
        padding: 72px 16px 48px;
        clip-path: polygon(0 0, 40% 0, calc(40% + 32px) 32px, 100% 32px, 100% 100%, 0 100%);
        margin-top: -32px;
    }

    .dai-faq {
        padding: 48px 16px;
    }

    .dai-cta {
        padding: 48px 16px 64px;
    }

    .dai-cta-box {
        padding: 32px 16px;
        border-radius: 20px;
    }
}