:root {
    color-scheme: dark;
    --bg: #050505;
    --surface: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --accent: #f5c451;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(58, 41, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.app {
    padding-bottom: calc(160px + env(safe-area-inset-bottom));
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 20px;
    background: rgba(5, 5, 5, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar.is-hidden {
    opacity: 0;
    transform: translateY(-100%);
}

.top-bar--with-back {
    justify-content: space-between;
    gap: 12px;
}

.top-bar--with-back .brand-logo {
    margin: 0 auto;
}

.back-link {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.back-link:active {
    transform: scale(0.98);
}

.back-link--icon {
    font-size: 1.4rem;
    letter-spacing: normal;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(245, 196, 81, 0.5);
    background: rgba(245, 196, 81, 0.08);
}

.brand-logo {
    width: 180px;
    height: auto;
}

.app-main {
    display: block;
}

.snap-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 24px 60px;
    scroll-snap-align: start;
    position: relative;
}

@media (max-width: 480px) {
    .snap-section {
        min-height: 80vh;
        padding: 80px 20px 60px;
    }
}

.hero {
    background: #0a0a0a;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    overflow: hidden;
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 0.7));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroCycle 25s infinite;
    transform-origin: center;
    filter: brightness(0.85);
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-slide:nth-child(4) {
    animation-delay: 15s;
}

.hero-slide:nth-child(5) {
    animation-delay: 20s;
}

.hero-slide {
    animation-timing-function: ease-in-out;
}

.glass-card {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    width: 100%;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
}

.section {
    padding: 42px 20px;
}

.section-header {
    margin-bottom: 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.7rem;
    color: var(--muted);
    margin: 0 0 8px;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.08em;
}

h1 {
    font-size: 2.1rem;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 12px;
    text-transform: uppercase;
    font-size: 1.7rem;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

p {
    margin: 0 0 16px;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.7rem;
    color: var(--muted);
}

.swipe-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 20px 24px;
    margin: 0 -20px 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.swipe-gallery::-webkit-scrollbar {
    height: 4px;
}

.swipe-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.swipe-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.swipe-card img {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 12px;
}

.stack {
    display: grid;
    gap: 16px;
}

.show-more {
    margin-top: 16px;
    width: 100%;
}

.timeline {
    display: grid;
    gap: 24px;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, #f5c451, rgba(245, 196, 81, 0.2));
    box-shadow: 0 0 12px rgba(245, 196, 81, 0.6);
    transition: height 0.2s ease-out;
}

.timeline-step {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    align-items: start;
}

.timeline-step h3,
.timeline-step p {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.timeline-step.is-visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step.is-visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    z-index: 1;
    position: relative;
}

.logo-cloud {
    overflow: hidden;
    padding: 16px 0;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 24px;
    animation: logoScroll 24s linear infinite;
    align-items: center;
}

.logo-track img {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.logo-track a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-width: 110px;
    border-radius: 16px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
}

.logo-grid img {
    max-height: 64px;
    margin: 0 auto;
    opacity: 0.85;
}

.logo-grid--clients img {
    max-height: 34px;
}

.client-logo {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.client-logo:active {
    transform: scale(0.98);
}

.clients-extra {
    display: none;
    margin-top: 16px;
}

.clients-extra.is-visible {
    display: grid;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.review-story {
    position: relative;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 200px;
}

.review-card {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card.active {
    display: block;
    animation: cardFadeIn 0.5s ease-out forwards;
}

.review-card span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.review-progress {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.review-progress .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.review-progress .dot.active {
    background: var(--accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 12px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card img {
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    object-fit: contain;
}

.team-card span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.progress-tracker {
    display: grid;
    gap: 16px;
}

.progress-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.progress-step span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--accent);
}

.form {
    display: grid;
    gap: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.1);
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.contact-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.map-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.map-card img {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
}

.map-marker {
    position: absolute;
    left: 58%;
    top: 45%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f5c451;
    box-shadow: 0 0 12px rgba(245, 196, 81, 0.8);
}

.map-marker::before,
.map-marker::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(245, 196, 81, 0.6);
    animation: pulse 2.4s ease-out infinite;
}

.map-marker::after {
    animation-delay: 1.2s;
}

.map-section {
    background: transparent;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.map-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.story-card {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.map-card {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 20px 18px 24px;
}

.map-section-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 2;
}

#map {
    width: 100%;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 32px #181818;
    margin: 0 auto;
    background: #cfe8f6;
}

.map-address {
    color: #bdbdbd;
    margin-top: 16px;
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    #map {
        height: 360px;
    }

    .map-section-title {
        font-size: 1.6rem;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav a {
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: background 0.2s;
}

.action-bar {
    position: fixed;
    bottom: calc(75px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 140;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    pointer-events: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn:active {
    transform: scale(0.96);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.is-visible {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(90vw, 520px);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.price-highlight {
    color: var(--accent);
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger h1,
.stagger h2,
.stagger h3,
.stagger p {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.stagger.is-visible h1,
.stagger.is-visible h2,
.stagger.is-visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.stagger.is-visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.tilt-card:active {
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg) scale(0.98);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.08) translateY(-1%);
    }
}

@keyframes heroCycle {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    8% {
        opacity: 1;
    }

    20% {
        opacity: 1;
        transform: scale(1.05);
    }

    28% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@media (min-width: 640px) {
    .swipe-gallery {
        grid-auto-columns: minmax(45%, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* FAQ Mobile Styles */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    margin-top: 12px;
}

.faq-icon {
    transition: transform 0.3s;
    opacity: 0.5;
    font-size: 0.8rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}