/* Base variables and resets */
:root {
    --bg-main: #05070f;
    --bg-section: #0f111a;
    --bg-alt: #0b0d13;
    --bg-light: #f5f7fa;
    --bg-card: rgba(15, 17, 26, 0.78);
    --bg-card-light: rgba(255, 255, 255, 0.72);
    --fg-primary: #0b0d13;
    --fg-invert: #f5f7ff;
    --fg-muted: rgba(10, 13, 25, 0.68);
    --fg-muted-dark: rgba(245, 247, 255, 0.72);
    --accent: #4f7cff;
    --accent-soft: rgba(79, 124, 255, 0.18);
    --accent-strong: #7a5cff;
    --border: rgba(10, 13, 25, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 48px rgba(13, 17, 33, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --width-container: min(1100px, calc(100% - 48px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg-primary);
    background-color: #f0f2f7;
    -webkit-font-smoothing: antialiased;
    padding-top: 76px;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translate(-50%, -140%);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--accent-strong);
    color: white;
    font-weight: 600;
    z-index: 999;
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translate(-50%, 0);
}

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

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

p {
    margin-block: 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: inherit;
}

h1 {
    font-size: clamp(2.4rem, 3vw + 1rem, 3.8rem);
}

h2 {
    font-size: clamp(2rem, 2vw + 1rem, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 0.8vw + 1.1rem, 1.7rem);
}

.container {
    width: var(--width-container);
    margin-inline: auto;
}

.section {
    padding-block: clamp(4rem, 6vw, 6rem);
    position: relative;
}

.section[id] {
    scroll-margin-top: 96px;
}

.section--light {
    background: var(--bg-light);
}

.section--dark {
    background: radial-gradient(120% 120% at 80% 10%, rgba(79, 124, 255, 0.12), transparent), radial-gradient(120% 140% at 10% 10%, rgba(122, 92, 255, 0.18), transparent), var(--bg-main);
    color: var(--fg-invert);
}

.section__header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__header > div {
    max-width: 520px;
}

.section__eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent-strong);
    font-weight: 600;
}

.section__lead {
    max-width: 540px;
    color: var(--fg-muted);
}

.section--dark .section__lead {
    color: var(--fg-muted-dark);
}

.data-disclaimer,
.residence-market__note,
.updates__footnote,
.site-footer__smallprint,
.contact__disclaimer {
    font-size: 0.85rem;
    color: var(--fg-muted);
}

.section--dark .data-disclaimer,
.section--dark .updates__footnote {
    color: var(--fg-muted-dark);
}

/* Header and navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(245, 247, 255, 0.92);
    backdrop-filter: saturate(1.3) blur(14px);
    border-bottom: 1px solid rgba(15, 17, 26, 0.06);
}

.site-header__inner {
    width: var(--width-container);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.site-logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(79, 124, 255, 0.8), rgba(122, 92, 255, 0.9));
    box-shadow: 0 10px 25px rgba(79, 124, 255, 0.35);
    display: inline-block;
    position: relative;
}

.site-logo__mark::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav__toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.site-nav__toggle-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--fg-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav__toggle-line:first-child {
    top: 16px;
}

.site-nav__toggle-line:last-child {
    bottom: 16px;
}

.site-nav__toggle[aria-expanded='true'] .site-nav__toggle-line:first-child {
    transform: translateY(6px) rotate(45deg);
}

.site-nav__toggle[aria-expanded='true'] .site-nav__toggle-line:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav__toggle[aria-expanded='true'] {
    background: rgba(79, 124, 255, 0.12);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    font-weight: 500;
    color: rgba(9, 13, 25, 0.7);
    transition: color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list a.is-active {
    color: var(--accent-strong);
}

.site-nav__list a:focus-visible {
    outline: none;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.site-header__cta {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: rgba(79, 124, 255, 0.15);
    color: var(--accent-strong);
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-header__cta:hover {
    transform: translateY(-1px);
    background: rgba(79, 124, 255, 0.25);
}

/* Hero */
.hero {
    position: relative;
    padding-top: clamp(6rem, 10vw, 8rem);
    padding-bottom: clamp(5rem, 10vw, 7rem);
    color: var(--fg-invert);
}

.hero__background {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 140% at 10% 10%, rgba(122, 92, 255, 0.38), transparent 70%), radial-gradient(110% 190% at 80% 20%, rgba(79, 124, 255, 0.52), transparent 68%), conic-gradient(from 160deg at 20% 10%, rgba(79, 124, 255, 0.2), rgba(9, 12, 20, 0.9));
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 140px;
    background: linear-gradient(0deg, #f5f7fa 0%, rgba(245, 247, 250, 0) 80%);
    z-index: -1;
}

.hero__content {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

.hero__eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero__lead {
    font-size: clamp(1rem, 0.6vw + 1rem, 1.2rem);
    max-width: 620px;
    color: rgba(243, 245, 255, 0.78);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.9rem 1.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
    background: linear-gradient(140deg, rgba(79, 124, 255, 0.95), rgba(122, 92, 255, 0.95));
    color: white;
    box-shadow: 0 14px 40px rgba(79, 124, 255, 0.45);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    background: rgba(243, 245, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn--ghost:hover {
    background: rgba(243, 245, 255, 0.12);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(5, 6, 14, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stats dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.6);
}

.hero__stats dd {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    color: white;
    font-weight: 600;
}

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

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: 0 18px 48px rgba(15, 19, 35, 0.08);
    border: 1px solid rgba(15, 19, 35, 0.05);
}

.section--light .stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
}

.stat-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: rgba(9, 13, 25, 0.55);
    margin-bottom: 0.75rem;
}

.stat-card__value {
    font-size: 1.35rem;
    font-weight: 600;
}

.stat-card__meta {
    margin-top: 0.5rem;
    color: rgba(9, 13, 25, 0.6);
}

/* Residences */
.residence-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
}

.residence-card,
.residence-market {
    padding: clamp(2rem, 3vw, 2.6rem);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 18px 48px rgba(15, 19, 35, 0.08);
    border: 1px solid rgba(15, 19, 35, 0.06);
}

.residence-card ul {
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.residence-card li {
    color: rgba(9, 13, 25, 0.75);
}

.residence-market {
    background: linear-gradient(160deg, rgba(79, 124, 255, 0.08), rgba(255, 255, 255, 0.9));
    display: grid;
    gap: 1.5rem;
}

.residence-market dl {
    margin: 0;
    display: grid;
    gap: 1.4rem;
}

.residence-market dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(9, 13, 25, 0.6);
}

.residence-market dd {
    margin: 0.4rem 0 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--fg-primary);
}

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

.amenities__grid article {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    border: 1px solid rgba(10, 13, 25, 0.06);
    box-shadow: 0 14px 38px rgba(15, 19, 35, 0.06);
}

.section--light .section__lead {
    color: rgba(9, 13, 25, 0.68);
}

/* Location */
.location__content {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
}

.location__map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location__map iframe {
    width: 100%;
    height: clamp(320px, 40vw, 420px);
    border: none;
}

.location__map::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: inherit;
    pointer-events: none;
}

.location__map-link {
    position: absolute;
    right: 18px;
    bottom: 18px;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(5, 7, 15, 0.7);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.location__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.location__highlights li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: start;
}

.location__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.location__highlights h3 {
    margin-bottom: 0.35rem;
}

.location__highlights p {
    margin: 0;
    color: rgba(9, 13, 25, 0.65);
}

/* Updates */
.updates__grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.update-card {
    background: rgba(5, 7, 15, 0.52);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 3vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 1.2rem;
}

.update-card__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.update-card p {
    color: rgba(240, 242, 255, 0.78);
    margin: 0;
}

.updates__footnote {
    margin-top: 2rem;
}

/* FAQ */
.faq__grid {
    display: grid;
    gap: 1.2rem;
}

.faq__item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(9, 13, 25, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(15, 19, 35, 0.08);
    padding: 0;
}

.faq__item summary {
    cursor: pointer;
    padding: 1.4rem 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-strong);
    transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__item p {
    margin: 0;
    padding: 0 1.6rem 1.6rem;
    color: rgba(9, 13, 25, 0.68);
}

.faq__item a {
    color: var(--accent);
    font-weight: 600;
}

.faq__item a:hover,
.faq__item a:focus-visible {
    text-decoration: underline;
}

/* Contact */
.contact {
    display: grid;
    gap: 2.5rem;
}

.contact__form {
    display: grid;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 3vw, 2.8rem);
    box-shadow: 0 22px 60px rgba(15, 19, 35, 0.12);
    border: 1px solid rgba(15, 19, 35, 0.06);
}

.field {
    display: grid;
    gap: 0.6rem;
}

.field label {
    font-weight: 600;
    color: rgba(9, 13, 25, 0.78);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15, 19, 35, 0.12);
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
    outline: none;
    border-color: rgba(79, 124, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
}

.contact__disclaimer {
    color: rgba(9, 13, 25, 0.55);
    margin: 0;
}

.hp-field,
.contact__honeypot {
    position: absolute;
    left: -10000px;
    opacity: 0;
    pointer-events: none;
}

.contact .btn--primary {
    justify-self: start;
}

.form-status {
    min-height: 1.2rem;
    margin: 0;
    font-weight: 500;
    color: #1f2a44;
}

.form-status--error {
    color: #c23b22;
}

.form-status--success {
    color: #0c7c59;
}

/* Footer */
.site-footer {
    background: var(--bg-alt);
    color: rgba(245, 247, 255, 0.78);
    padding-block: 3rem;
}

.site-footer__inner {
    width: var(--width-container);
    margin-inline: auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.site-footer__meta p {
    margin: 0 0 0.9rem;
}

.site-logo__mark--footer {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
    .residence-layout,
    .location__content {
        grid-template-columns: 1fr;
    }

    .site-header__cta {
        display: none;
    }
}

@media (max-width: 820px) {
    .section__header {
        align-items: flex-start;
    }

    .site-nav__toggle {
        display: inline-flex;
    }

    .site-nav__list {
        position: absolute;
        top: 70px;
        right: 24px;
        padding: 1.5rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(15, 19, 35, 0.08);
        box-shadow: 0 20px 50px rgba(15, 19, 35, 0.12);
        flex-direction: column;
        gap: 1.2rem;
        min-width: 220px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav__list.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .section {
        padding-block: 3.5rem;
    }

    .hero__stats {
        padding: 1.2rem;
    }

    .hero__stats dd {
        font-size: 1rem;
    }

    .stat-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .residence-card,
    .residence-market {
        padding: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}
