/* ==========================================================================
   Homepage redesign — structure/layout inspired by the "ClipCut" Framer
   template, rebuilt with Urbillum's own brand palette (plum / sand / off-white)
   and content. New sections: hero CTA group, problem, solution, stats,
   content-types, value-prop, process, FAQ.
   ========================================================================== */

/* Whole-page dark theme, matching the Framer reference's black/off-white/
   accent structure — recolored to Urbillum's plum/off-white/sand palette.
   Scoped to body.framer-home only (index.php) so other pages are untouched
   until they get the same redesign pass. Card/icon surfaces that were built
   assuming a light page use the fixed --ink token instead of --text-primary,
   so they don't invert along with the page background. */
body.framer-home {
    --bg-color: var(--ink);
    --bg-secondary: var(--ink);
    --text-primary: #f7f6f5;
}

body.framer-home h1,
body.framer-home h2,
body.framer-home h3,
body.framer-home h4 {
    font-family: 'Bricolage Grotesque', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
}

body.framer-home .menu-toggle span {
    background: #f7f6f5;
}

/* ---- Hero: headline block + fan-style video carousel ---- */

.hero-video-section {
    display: block;
    min-height: auto;
    padding: 150px 0 60px;
    background: var(--ink);
    overflow: hidden;
    position: relative;
}

/* Scattered star specks across the hero background */
.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 15%, rgba(247, 246, 245, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 22% 38%, rgba(247, 246, 245, 0.4), transparent),
        radial-gradient(1px 1px at 38% 12%, rgba(247, 246, 245, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 55% 28%, rgba(247, 246, 245, 0.35), transparent),
        radial-gradient(1px 1px at 68% 8%, rgba(247, 246, 245, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 82% 22%, rgba(247, 246, 245, 0.4), transparent),
        radial-gradient(1px 1px at 92% 40%, rgba(247, 246, 245, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 12% 55%, rgba(247, 246, 245, 0.3), transparent),
        radial-gradient(1px 1px at 45% 60%, rgba(247, 246, 245, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 75% 60%, rgba(247, 246, 245, 0.3), transparent);
    background-repeat: no-repeat;
}

/* Subtle film-grain texture overlay */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.hero-glow--1 {
    width: 560px;
    height: 560px;
    background: var(--accent-gold);
    top: -220px;
    left: -220px;
}

/* Warm atmospheric glow behind the card carousel */
.hero-glow--2 {
    width: 900px;
    height: 500px;
    background: var(--accent-gold);
    opacity: 0.22;
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    padding-block: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Cinematic 3D card gallery: one perspective stage, every card absolutely
   positioned with its own translateX/Y/Z + rotateY/Z + scale (no flex,
   no grid). Center card is smallest/furthest; outer cards are largest,
   rotated inward, and crop off the viewport edges. --nudge is a live,
   very subtle scroll+mouse offset applied by the hero-carousel script.
   Sits well clear of the CTA buttons / service pill above it (z-index 1,
   lowest of the hero UI layers, so it can never render over them). */

.hero-carousel {
    position: relative;
    z-index: 1;
    margin-top: 150px;
    height: 480px;
    perspective: 1400px;
    perspective-origin: 50% 55%;
}

.hero-carousel-ring {
    position: absolute;
    left: 50%;
    top: 60px;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.hero-carousel-arm {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--w);
    height: var(--h);
    margin-left: calc(var(--w) / -2);
    margin-top: calc(var(--h) / -2);
    transform-style: preserve-3d;
    transform-origin: center center;
    transform:
        translateX(var(--x))
        translateY(var(--y))
        translateZ(var(--z))
        rotateY(calc(var(--rotY) + var(--nudge, 0deg)))
        rotateZ(var(--rotZ));
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: calc(100 - var(--i, 0) * 1);
    will-change: transform;
}

.hero-carousel-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: hero-card-float 6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.55s);
}

.hero-carousel-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(var(--bright, 0.9));
    transition: filter 0.5s ease;
}

.hero-carousel-arm:hover {
    transform:
        translateX(var(--x))
        translateY(var(--y))
        translateZ(calc(var(--z) + 50px))
        rotateY(0deg)
        rotateZ(0deg)
        scale(1.05);
    z-index: 200;
}

.hero-carousel-arm:hover .hero-carousel-box video {
    filter: brightness(1.05);
}

@keyframes hero-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

    .hero-carousel-arm {
        transition: none;
    }
}

.hero-tag-bar {
    position: relative;
    z-index: 3;
    margin: 32px auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px;
    border-radius: 999px;
    background: rgba(73, 41, 71, 0.6);
    border: 1px solid rgba(247, 246, 245, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f7f6f5;
    white-space: nowrap;
}

.hero-tag-item i {
    color: var(--accent-gold);
}

.hero-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
    flex-shrink: 0;
}

/* Fewer cards on smaller screens, still on the same curved 3D stage —
   just hide the outermost pairs rather than squashing everything. */
@media (max-width: 900px) {
    .hero-carousel {
        height: 360px;
    }

    .hero-carousel-ring {
        transform: scale(0.72);
    }

    .hero-carousel-arm--0,
    .hero-carousel-arm--6 {
        display: none;
    }

    .hero-tag-bar {
        gap: 10px;
        padding: 12px 18px;
    }

    .hero-tag-item {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .hero-video-section {
        padding: 130px 0 0;
    }

    .hero-carousel {
        height: 260px;
    }

    .hero-carousel-ring {
        transform: scale(0.62);
    }

    .hero-carousel-arm--1,
    .hero-carousel-arm--5 {
        display: none;
    }

    .hero-tag-dot:nth-of-type(2) {
        display: none;
    }

    .hero-tag-bar {
        flex-direction: column;
        border-radius: 20px;
    }
}

.narrow-header {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.narrow-header .section-label {
    display: inline-block;
}

.narrow-header .section-title {
    max-width: none;
    font-size: 48px;
}

.narrow-header .packages-subcopy {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Hero CTA group ---- */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(247, 246, 245, 0.12);
    border: 1px solid rgba(247, 246, 245, 0.25);
    color: #f7f6f5;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 26px;
}

.hero-badge i {
    color: var(--accent-gold);
}

.hero-headline {
    font-size: 64px;
    line-height: 1.05;
    color: #f7f6f5;
    max-width: 820px;
}

.hero-subhead {
    margin-top: 22px;
    max-width: 560px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(247, 246, 245, 0.8);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hero-cta-primary {
    background: var(--accent-gold);
    color: var(--ink);
    font-weight: 600;
}

.hero-cta-primary i {
    transform: rotate(-45deg);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero-cta-secondary {
    border: 1px solid rgba(247, 246, 245, 0.25);
    background: rgba(247, 246, 245, 0.04);
    color: #f7f6f5;
}

.hero-cta-secondary:hover {
    border-color: rgba(247, 246, 245, 0.7);
    transform: translateY(-2px);
}

/* ---- Shared dark section variant ---- */

.section-dark {
    background: var(--ink);
    color: #f7f6f5;
}

.section-dark .section-label {
    color: var(--accent-gold);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
    color: #f7f6f5;
}

.section-dark .packages-subcopy {
    color: rgba(247, 246, 245, 0.7);
}

/* ---- Problem section ---- */

#problem {
    background-color: var(--bg-color);
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: rgba(247, 246, 245, 0.04);
    color: #f7f6f5;
    border: 1px solid rgba(247, 246, 245, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 34px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(247, 246, 245, 0.22);
}

.problem-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(247, 246, 245, 0.08);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f7f6f5;
}

.problem-card p {
    font-size: 14.5px;
    color: rgba(247, 246, 245, 0.65);
    line-height: 1.6;
}

/* ---- Solution section ---- */

#solution {
    text-align: center;
}

#solution .narrow-header {
    margin-bottom: 32px;
}

/* ---- Stats section ---- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(247, 246, 245, 0.12);
    border: 1px solid rgba(247, 246, 245, 0.12);
    border-radius: 18px;
    overflow: hidden;
}

.stat-card {
    background: var(--ink);
    padding: 34px 26px;
}

.stat-value {
    font-size: 40px;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    margin-top: 12px;
    font-size: 15px;
    color: #f7f6f5;
}

.stat-desc {
    margin-top: 8px;
    font-size: 13.5px;
    color: rgba(247, 246, 245, 0.6);
    line-height: 1.5;
}

/* ---- Content types section ---- */

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.content-type-card {
    background: rgba(247, 246, 245, 0.04);
    color: #f7f6f5;
    border: 1px solid rgba(247, 246, 245, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 32px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.content-type-card:hover {
    transform: translateY(-6px);
    border-color: rgba(247, 246, 245, 0.22);
}

.content-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(247, 246, 245, 0.08);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.content-type-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: #f7f6f5;
}

.content-type-card p {
    font-size: 14.5px;
    color: rgba(247, 246, 245, 0.65);
    line-height: 1.6;
}

/* ---- Value prop section ---- */

.value-prop-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-prop-feature {
    padding: 28px 24px;
    border-radius: 16px;
    background: rgba(247, 246, 245, 0.06);
    border: 1px solid rgba(247, 246, 245, 0.12);
}

.value-prop-feature i {
    color: var(--accent-gold);
    font-size: 20px;
    margin-bottom: 16px;
    display: block;
}

.value-prop-feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.value-prop-feature p {
    font-size: 14px;
    color: rgba(247, 246, 245, 0.65);
    line-height: 1.6;
}

/* ---- Results section ---- */

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.result-card {
    background: rgba(247, 246, 245, 0.04);
    color: #f7f6f5;
    border-radius: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 26px 22px;
    border: 1px solid rgba(247, 246, 245, 0.12);
    transition: border-color 0.3s ease;
}

.result-card:hover {
    border-color: rgba(247, 246, 245, 0.22);
}

.result-card-client {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
}

.result-card-metric {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #f7f6f5;
}

.result-card-title {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(247, 246, 245, 0.6);
}

@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Process section ---- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    position: relative;
    padding-top: 8px;
}

.process-step-number {
    font-size: 15px;
    color: var(--accent-gold);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 18px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Testimonials section ---- */

.testimonial-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border-radius: 20px;
    background: rgba(247, 246, 245, 0.06);
    border: 1px solid rgba(247, 246, 245, 0.12);
}

.testimonial-quote-icon {
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 21px;
    line-height: 1.55;
    color: #f7f6f5;
}

.testimonial-author {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.testimonial-author-role {
    font-size: 13px;
    color: rgba(247, 246, 245, 0.6);
}

/* ---- Platforms section ---- */

.platforms-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(73, 41, 71, 0.15);
    font-size: 14px;
    color: var(--text-primary);
}

.platform-badge i {
    color: var(--accent-gold);
    font-size: 17px;
}

/* ---- Simple footer (matches the Framer reference: logo + two link
   columns + a single copyright line, no newsletter/multi-column grid) ---- */

.footer--simple {
    padding-top: 70px;
}

.footer-main--simple {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.footer-logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-text {
    font-family: 'Bricolage Grotesque', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #f7f6f5;
}

.logo-text {
    font-family: 'Bricolage Grotesque', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #f7f6f5;
}

/* Giant faint wordmark behind the footer, matching the reference's oversized
   background brand text. Purely decorative, clipped so it never overflows. */
.footer--simple {
    position: relative;
    overflow: hidden;
    padding-bottom: 230px;
}

.footer--simple::after {
    content: 'Urbillum';
    position: absolute;
    left: 50%;
    bottom: -0.15em;
    transform: translateX(-50%);
    font-family: 'Bricolage Grotesque', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(90px, 15vw, 260px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background-image: linear-gradient(180deg, rgba(181, 181, 169, 0.3), rgba(181, 181, 169, 0.02));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
    z-index: 0;
}

.footer--simple .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .footer--simple {
        padding-bottom: 110px;
    }
}

.footer-simple-cols {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer--simple .footer-bottom {
    justify-content: space-between;
}

.footer-credit p,
.footer-credit a {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .footer-main--simple {
        flex-direction: column;
        gap: 32px;
    }

    .footer-simple-cols {
        gap: 40px;
    }
}

/* ---- FAQ section ---- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    color: var(--text-primary);
    cursor: pointer;
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent-gold);
}

.faq-item.is-open .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 4px 22px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 680px;
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
    .hero-headline {
        font-size: 44px;
    }

    .problem-cards,
    .content-types-grid,
    .value-prop-features,
    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .narrow-header .section-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
