/* ============================================
   CoolMarket Landing — styles.css
   Ice blue + orange theme
   ============================================ */

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

body {
    background: #F8FBFF;
    font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
    color: #0F172A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ----- Utilities ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-accent {
    color: #0284C7;
}

.text-warm {
    color: #F97316;
}

.badge {
    display: inline-block;
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
    color: #0284C7;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0284C7, #0369A1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid #CBD5E1;
    color: #0F172A;
}

.btn-ghost:hover {
    border-color: #0284C7;
    color: #0284C7;
}

.btn-white {
    background: #fff;
    color: #0F172A;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-outline-white:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-nav {
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284C7, #0EA5E9);
    color: #fff;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748B;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0284C7;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0F172A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 1rem;
}

.hero-subtitle {
    max-width: 600px;
    color: #64748B;
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ----- Temperature Widget ----- */
.temp-widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 380px;
    margin: 3rem auto 0;
    gap: 16px;
}

.temp-end {
    display: flex;
    align-items: center;
    gap: 6px;
}

.temp-hot .temp-value {
    color: #F97316;
    font-weight: 700;
    font-size: 1.25rem;
}

.temp-cool .temp-value {
    color: #0284C7;
    font-weight: 700;
    font-size: 1.25rem;
}

.temp-icon {
    font-size: 1.25rem;
}

.temp-bar {
    flex: 1 1 0;
    min-width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #E2E8F0;
    position: relative;
    overflow: visible;
}

.temp-bar-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #F97316, #FBBF24, #38BDF8, #0284C7);
    border-radius: 3px;
}

.temp-bar-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0284C7;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: tempSlide 3s ease-in-out infinite alternate;
}

@keyframes tempSlide {
    from {
        left: 10%;
    }
    to {
        left: 85%;
    }
}

/* ----- Problems Section ----- */
.problems {
    padding: 6rem 0;
    text-align: center;
}

.problems-card {
    background: #0F172A;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 2.5rem auto 0;
    text-align: left;
}

.problem-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F97316;
}

.problem-icon svg {
    stroke: #F97316;
}

.problem-text h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.problem-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.problem-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}

/* ----- Services ----- */
.services {
    padding: 6rem 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #E0F2FE;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--si-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    stroke: var(--si-color);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ----- Steps ----- */
.steps {
    padding: 6rem 0;
    text-align: center;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2.5rem;
}

.step-card {
    flex: 1;
    text-align: center;
    max-width: 320px;
    padding: 2rem;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.step-num-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
}

.step-watermark {
    position: absolute;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(2, 132, 199, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    user-select: none;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284C7, #0EA5E9);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ----- Trust ----- */
.trust {
    padding: 6rem 0;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.trust-item {
    background: #fff;
    border: 1.5px solid #BAE6FD;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: left;
    transition: all 0.3s ease;
}

.trust-item:hover {
    border-color: #0284C7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E0F2FE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.trust-icon svg {
    stroke: #0284C7;
}

.trust-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trust-item p {
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ----- Testimonials ----- */
.testimonials {
    padding: 6rem 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border-top: 3px solid var(--tc-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.t-rating {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.t-text {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.t-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ta-bg);
    color: var(--ta-color);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-author strong {
    display: block;
    font-size: 0.9rem;
    color: #0F172A;
}

.t-author span {
    font-size: 0.8rem;
    color: #64748B;
}

/* ----- CTA ----- */
.cta {
    background: linear-gradient(135deg, #0284C7, #0369A1);
    padding: 5rem 0;
}

.cta-container {
    text-align: center;
    max-width: 600px;
}

.cta h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ----- Footer ----- */
.footer {
    background: #0C1D2E;
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand .logo-text {
    color: #fff;
}

.footer-desc {
    max-width: 300px;
    font-size: 0.875rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: #fff;
}

/* ----- Animation: Slide from Left ----- */
.cool-el {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cool-el.in-view {
    opacity: 1;
    transform: translateX(0);
}

.cool-el:nth-child(2) {
    transition-delay: 0.08s;
}

.cool-el:nth-child(3) {
    transition-delay: 0.16s;
}

.cool-el:nth-child(4) {
    transition-delay: 0.24s;
}

.cool-el:nth-child(5) {
    transition-delay: 0.32s;
}

.cool-el:nth-child(6) {
    transition-delay: 0.4s;
}

/* ----- Responsive: 1024px ----- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Responsive: 768px ----- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    /* Mobile nav */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    /* Grids to 1-col */
    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Steps vertical */
    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* CTA */
    .cta h2 {
        font-size: 2rem;
    }
}

/* ----- Responsive: 480px ----- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .problems-card {
        padding: 1.5rem;
    }

    .temp-widget {
        max-width: 100%;
    }
}

/* ----- Print ----- */
@media print {
    .navbar {
        position: relative;
    }

    .cool-el {
        opacity: 1 !important;
        transform: none !important;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* === Cube AI Badge === */
.cube-ai-strip{display:flex;justify-content:center;align-items:center;padding:16px 24px;background:#050505;border-top:1px solid rgba(255,255,255,.06)}
.cube-ai-link{display:inline-flex;align-items:center;gap:12px;padding:8px 20px 8px 12px;border-radius:100px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);text-decoration:none;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}
.cube-ai-link::before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(135deg,rgba(139,92,246,.1),rgba(6,182,212,.1));opacity:0;transition:opacity .4s ease}
.cube-ai-link:hover::before{opacity:1}
.cube-ai-link:hover{border-color:rgba(139,92,246,.3);box-shadow:0 0 30px rgba(139,92,246,.15),0 0 60px rgba(6,182,212,.08);transform:translateY(-1px)}
.cube-3d{width:20px;height:20px;position:relative;transform-style:preserve-3d;transform:rotateX(-25deg) rotateY(30deg);transition:transform .6s cubic-bezier(.4,0,.2,1)}
.cube-ai-link:hover .cube-3d{transform:rotateX(-25deg) rotateY(210deg)}
.cube-face{position:absolute;width:20px;height:20px;border:1.5px solid rgba(139,92,246,.6);border-radius:3px}
.cube-face.front{transform:translateZ(10px);background:rgba(139,92,246,.15)}
.cube-face.back{transform:translateZ(-10px) rotateY(180deg);background:rgba(6,182,212,.1)}
.cube-face.top{transform:rotateX(90deg) translateZ(10px);background:rgba(139,92,246,.2)}
.cube-face.bottom{transform:rotateX(-90deg) translateZ(10px);background:rgba(6,182,212,.05)}
.cube-face.left{transform:rotateY(-90deg) translateZ(10px);background:rgba(6,182,212,.1)}
.cube-face.right{transform:rotateY(90deg) translateZ(10px);background:rgba(139,92,246,.1);border-color:rgba(6,182,212,.5)}
.cube-ai-made{font-family:system-ui,-apple-system,sans-serif;font-size:12px;color:rgba(255,255,255,.4);letter-spacing:.02em;position:relative;z-index:1}
.cube-ai-name{font-family:system-ui,-apple-system,sans-serif;font-size:13px;font-weight:700;background:linear-gradient(135deg,#8B5CF6,#06B6D4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:.01em;position:relative;z-index:1}
.cube-ai-arrow{width:14px;height:14px;color:rgba(255,255,255,.3);transition:all .3s ease;position:relative;z-index:1}
.cube-ai-link:hover .cube-ai-arrow{color:#8B5CF6;transform:translate(2px,-2px)}
