/* ============================================
   Pawnder Landing — styles.css
   Pet matching platform
   Warm cream + teal + pink theme
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #FFFBF5;
    color: #1C1917;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

.text-accent {
    color: #14B8A6;
}

.text-pink {
    color: #F472B6;
}

.badge {
    display: inline-block;
    background: #CCFBF1;
    border: 1px solid #99F6E4;
    color: #0D9488;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    color: #fff;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid #D6D3D1;
    color: #1C1917;
}

.btn-ghost:hover {
    border-color: #14B8A6;
    color: #14B8A6;
}

.btn-white {
    background: #fff;
    color: #1C1917;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px 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.25rem;
    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, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 251, 245, 0.95);
    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;
    height: 72px;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1C1917;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #78716C;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #14B8A6;
}

.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: 24px;
    height: 2px;
    background: #1C1917;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-subtitle {
    max-width: 600px;
    color: #78716C;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ----- Swipe Card Stack ----- */
.card-stack {
    position: relative;
    height: 220px;
    width: 280px;
    margin: 3rem auto 0;
}

.pet-card {
    position: absolute;
    width: 200px;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(var(--card-rotate, 0deg)) translateX(var(--card-x, 0px));
}

.pet-card-top {
    --card-rotate: 0deg;
    --card-x: 0px;
    z-index: 3;
}

.card-stack:hover .pet-card-top {
    transform: translateX(-50%) rotate(0deg) translateY(-4px);
}

.pet-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pet-card strong {
    font-size: 1rem;
    color: #1C1917;
    display: block;
}

.pet-info {
    font-size: 0.8rem;
    color: #78716C;
    display: block;
    margin-top: 0.25rem;
}

.match-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #F472B6, #EC4899);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(244, 114, 182, 0.4);
}

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

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

.problem-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    padding-top: 3rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    margin-top: 2rem;
}

.problem-emoji {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 3px solid #FFFBF5;
}

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

.problem-card p {
    color: #78716C;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ----- Features ----- */
.features {
    padding: 5rem 0;
    text-align: center;
}

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

.feature-card {
    background: var(--fc-bg, #CCFBF1);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-icon svg {
    stroke: #14B8A6;
}

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

.feature-card p {
    color: #44403C;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

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

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

.step-heart {
    font-size: 1.5rem;
    color: #F472B6;
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.step-paw-icon {
    position: absolute;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    line-height: 1;
}

.step-num {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

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

/* ----- Trust ----- */
.trust {
    padding: 3rem 0 5rem;
}

.trust-strip {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.trust-stat {
    text-align: center;
    flex: 1;
}

.trust-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #14B8A6;
}

.trust-stat span {
    font-size: 0.875rem;
    color: #78716C;
}

.trust-divider {
    width: 1px;
    height: 48px;
    background: #E7E5E4;
    flex-shrink: 0;
}

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

.testimonials-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 2.5rem auto 0;
    align-items: center;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: translateX(var(--t-offset, 0));
    text-align: left;
}

.t-paw {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.25rem;
    opacity: 0.15;
}

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

.t-text {
    color: #44403C;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

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

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

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

.t-author span {
    font-size: 0.8rem;
    color: #78716C;
}

/* ----- CTA ----- */
.cta {
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    padding: 5rem 0;
}

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

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

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----- Footer ----- */
.footer {
    background: #1C1917;
    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.8rem;
}

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

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

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

/* ----- Animation (Playful rotate + fade) ----- */
.paw-el {
    opacity: 0;
    transform: translateY(20px) rotate(-2deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.paw-el.revealed {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.paw-el:nth-child(2) {
    transition-delay: 0.1s;
}

.paw-el:nth-child(3) {
    transition-delay: 0.2s;
}

.paw-el:nth-child(4) {
    transition-delay: 0.3s;
}

.paw-el:nth-child(5) {
    transition-delay: 0.4s;
}

/* ============================================
   Responsive
   ============================================ */

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

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

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

    /* Navbar mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FFFBF5;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
        transition: right 0.3s ease;
        z-index: 999;
    }

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

    .hamburger {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    /* Problems single column */
    .problems-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Features stays 2-col at 768px, goes 1-col at 480px */

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

    .step-heart {
        display: none;
    }

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

    /* Trust vertical */
    .trust-strip {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }

    /* Card stack scale */
    .card-stack {
        transform: scale(0.85);
    }

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

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

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

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

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

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

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

    .cta-buttons {
        flex-direction: column;
    }

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

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

    .testimonial-card {
        transform: translateX(0) !important;
    }
}

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

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

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

/* === 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,0.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,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 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,0.1), rgba(6,182,212,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cube-ai-link:hover::before { opacity: 1; }
.cube-ai-link:hover {
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 0 30px rgba(139,92,246,0.15), 0 0 60px rgba(6,182,212,0.08);
    transform: translateY(-1px);
}
.cube-3d {
    width: 20px;
    height: 20px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(30deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 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,0.6);
    border-radius: 3px;
}
.cube-face.front  { transform: translateZ(10px); background: rgba(139,92,246,0.15); }
.cube-face.back   { transform: translateZ(-10px) rotateY(180deg); background: rgba(6,182,212,0.1); }
.cube-face.top    { transform: rotateX(90deg) translateZ(10px); background: rgba(139,92,246,0.2); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(10px); background: rgba(6,182,212,0.05); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(10px); background: rgba(6,182,212,0.1); }
.cube-face.right  { transform: rotateY(90deg) translateZ(10px); background: rgba(139,92,246,0.1); border-color: rgba(6,182,212,0.5); }
.cube-ai-made {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.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: 0.01em;
    position: relative;
    z-index: 1;
}
.cube-ai-arrow {
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.cube-ai-link:hover .cube-ai-arrow {
    color: #8B5CF6;
    transform: translate(2px, -2px);
}
