:root {
    --bg: #0a1628;
    --bg-soft: #111f35;
    --bg-card: #152640;
    --border: #2a4060;
    --text: #eef3fa;
    --muted: #9eb0c8;
    --accent: #e8a849;
    --accent-hover: #f0bc6a;
    --cta: #2ecc9a;
    --cta-hover: #3dd9ab;
    --wa: #25d366;
    --cta-color: #e74c3c;
    --radius: 14px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

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

a { color: var(--accent); }

.container {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

/* Language picker */
.lang-picker {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.lang-select-mobile {
    display: none;
    width: 100%;
    max-width: 220px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-flag {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
}

.lang-flag img {
    width: 28px;
    height: auto;
    display: block;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.lang-flag:hover img,
.lang-flag.active img {
    opacity: 1;
}

.lang-flag.active {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .lang-flags-desktop { display: none; }
    .lang-select-mobile { display: block; }
    .topbar-inner { flex-wrap: wrap; }
    .lang-picker { order: 3; width: 100%; justify-content: stretch; }
    .lang-select-mobile { max-width: none; }
}

/* Carousel — same as main site (lp) */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.carousel-thumbnails {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
    scroll-snap-align: start;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border: 2px solid var(--cta-color);
}

.thumbnail-wrap {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    margin-right: 10px;
    scroll-snap-align: start;
}

.thumbnail-wrap .thumbnail-item {
    width: 100%;
    height: 100%;
    margin-right: 0;
}

.thumbnail-wrap.is-video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    pointer-events: none;
}

#modal-caption {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 14px;
    text-align: center;
    font-size: 15px;
    box-sizing: border-box;
}

#modal-video {
    display: none;
    max-width: 100%;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
}

.popup-modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.popup-modal img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
    border-radius: 8px;
}

.modal-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 210;
    font-size: 6em;
    color: rgba(80, 255, 255, 1);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.modal-close-btn {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 220;
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.95);
    padding: 4px 10px;
    pointer-events: none;
}

.modal-button:hover {
    color: rgba(255, 255, 255, 1);
}

#prev-btn { left: 40px; }
#next-btn { right: 40px; }

@media (max-width: 600px) {
    .modal-button {
        font-size: 3em;
    }

    #prev-btn {
        left: max(6px, env(safe-area-inset-left, 0px));
    }

    #next-btn {
        right: max(6px, env(safe-area-inset-right, 0px));
    }

    .modal-close-btn {
        font-size: 2.25rem;
    }
}

html[dir="rtl"] #prev-btn {
    left: auto;
    right: max(6px, env(safe-area-inset-right, 0px));
}

html[dir="rtl"] #next-btn {
    right: auto;
    left: max(6px, env(safe-area-inset-left, 0px));
}

.price-pill {
    background: rgba(232, 168, 73, 0.15);
    border: 1px solid rgba(232, 168, 73, 0.35);
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 22, 40, 0.60) 0%, rgba(10, 22, 40, 0.35) 45%, rgba(10, 22, 40, 0.82) 100%),
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46, 204, 154, 0.08), transparent);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

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

.hero-badge {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #000;
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.hero-badge:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
}

.hero-badge:active {
    transform: scale(0.98);
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.6rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    font-weight: 700;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-lead {
    font-size: calc(1.12rem + 2pt);
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.75rem;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--cta);
    color: #062318;
}

.btn-primary:hover { background: var(--cta-hover); }

.btn-secondary {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-trust span::before {
    content: '★ ';
}

.hero-visual {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: var(--bg-card);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
section {
    padding: 3.5rem 0;
}

section:nth-child(even) {
    background: var(--bg-soft);
}

.section-label {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

#contact .section-label {
    font-size: 2rem;
}

#contact .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-intro {
    color: #fff;
    max-width: 42rem;
    margin: 0 0 2rem;
    font-size: calc(1rem + 2pt);
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 0.75rem;
    align-items: center;
}

.card-icon {
    font-size: 1.75rem;
    line-height: 1;
    grid-column: 1;
    grid-row: 1;
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    grid-column: 2;
    grid-row: 1;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: calc(0.95rem + 2pt);
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Flexibility split */
.flex-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 700px) {
    .flex-split { grid-template-columns: 1fr; }
}

.flex-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.flex-box h3 {
    margin: 0 0 0.75rem;
    color: var(--accent);
}

.flex-box ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: calc(1rem + 2pt);
}

.flex-box li { margin-bottom: 0.4rem; }

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.spec {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.spec dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.spec dd {
    margin: 0;
    font-weight: 600;
}

/* FAQ */
.faq-list { max-width: 760px; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.65rem;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 1rem 1.15rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-q::after {
    content: '+';
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
    display: none;
    padding: 0 1.15rem 1rem;
    color: var(--muted);
    font-size: calc(0.95rem + 2pt);
}

.faq-item.open .faq-a { display: block; }

/* Form */
.form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

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

.form-grid .full { grid-column: 1 / -1; }

label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
}

textarea { min-height: 110px; resize: vertical; }

.form-error {
    color: #ff8a8a;
    font-size: 0.88rem;
    margin-top: 0.5rem;
    display: none;
}

.form-error.visible { display: block; }

/* Sticky WhatsApp */
.sticky-wa {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    background: var(--wa);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-wa:hover { filter: brightness(1.08); }

footer {
    padding: 2rem 0 5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

footer a { color: var(--muted); }

.preview-banner {
    background: rgba(232, 168, 73, 0.12);
    border-bottom: 1px solid rgba(232, 168, 73, 0.3);
    color: var(--accent);
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.header-badge {
    background: rgba(46, 204, 154, 0.12);
    border: 1px solid rgba(46, 204, 154, 0.35);
    color: var(--cta);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-centered {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto;
}

.hero-centered .hero-lead {
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
}
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-trust { justify-content: center; }

.envision-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
    max-width: 42rem;
}

.envision-list li {
    padding: 0.85rem 1.1rem 0.85rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    color: var(--muted);
    font-size: calc(1rem + 2pt);
}

.envision-list li::before {
    content: '✦';
    position: absolute;
    left: 1rem;
    color: var(--accent);
}

.cards-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.life-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    border-top: 3px solid var(--accent);
}

.life-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--accent);
}

.life-card p {
    margin: 0;
    color: var(--muted);
    font-size: calc(0.92rem + 2pt);
}

.scarcity-inner {
    max-width: 760px;
}

.scarcity-points p {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    margin: 0;
    font-size: calc(1rem + 2pt);
}

.scarcity-points strong {
    color: var(--accent);
}

.scarcity-points p:last-child { border-bottom: none; }

.scarcity-note {
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    border-top: 3px solid var(--accent);
}

.persona-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--accent);
}

.persona-card p {
    margin: 0;
    color: var(--muted);
    font-size: calc(0.92rem + 2pt);
}

.price-block {
    text-align: center;
    margin: 1.5rem 0 2rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(232, 168, 73, 0.35);
    border-radius: var(--radius);
}

.price-main {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.35rem;
}

.price-note {
    margin: 0;
    color: var(--muted);
    font-size: calc(0.95rem + 2pt);
}

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

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px dashed var(--border);
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    margin: 0.5rem 0 1rem;
    width: 100%;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.form-expanded.hidden { display: none; }

.form-footer { margin-top: 0.5rem; }

@media (max-width: 768px) {
    .cards-5 { grid-template-columns: 1fr; }

    section {
        padding-top: 0.65rem;
        padding-bottom: 1.1rem;
    }

    .hero {
        padding: 2.75rem 0 1.25rem;
    }

    .section-label {
        margin-bottom: 0.35rem;
    }

    .hero-lead {
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        margin-bottom: 1rem;
    }

    .section-title {
        margin-bottom: 0.5rem;
    }

    .section-intro {
        margin-bottom: 1.25rem;
    }

    .carousel-container {
        margin-top: 12px;
        padding: 8px;
    }

    .cards {
        gap: 0.85rem;
    }

    .card {
        padding: 1.15rem;
    }

    .flex-box {
        padding: 1.25rem;
    }

    .life-card,
    .persona-card {
        padding: 1.1rem;
    }

    .lifestyle-grid,
    .persona-grid {
        gap: 0.75rem;
    }

    .price-block {
        margin: 1rem 0 1.25rem;
        padding: 1.25rem;
    }

    .property-cta {
        margin-top: 1.25rem;
    }

    .form-panel {
        padding: 1.35rem;
    }

    .scarcity-note {
        margin-top: 1rem;
    }

    footer {
        padding: 1.5rem 0 4.5rem;
    }

    .envision-list {
        gap: 0.65rem;
    }
}
