/* ==============================================
   LEGACY AUTOPLEX — HOME / WAITLIST PAGE CSS
   Page-specific styles only.
   Requires base.css loaded first.
=============================================== */

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-image-panel {
    position: absolute;
    top: 0; right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
}

.hero-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.75) saturate(0.85);
    display: block;
}

.hero-image-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--black) 0%, rgba(7,7,15,0.85) 12%, rgba(7,7,15,0.3) 28%, transparent 50%),
        linear-gradient(to top, var(--black) 0%, transparent 20%);
}

.hero-dot-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(196,160,80,0.11) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at 20% 50%, black 10%, transparent 52%);
    pointer-events: none;
}

.hero-vline {
    position: absolute;
    top: 0; left: 40%;
    width: 0.5px;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 10%, rgba(196,160,80,0.18) 50%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--black), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 52%;
    padding: 180px 0 100px 64px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(72px, 9.5vw, 130px);
    line-height: 0.88;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
}
.hero h1 .solid   { color: var(--white); display: block; }
.hero h1 .outline { display: block; color: transparent; -webkit-text-stroke: 1px rgba(245,243,238,0.25); }
.hero h1 .gold-italic {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(44px, 5.5vw, 72px);
    color: var(--gold);
    line-height: 1.1;
    letter-spacing: 0;
    font-weight: 400;
}

.hero-sub {
    max-width: 480px;
    margin-bottom: 44px;
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.8;
    font-weight: 300;
}

.hero-stat-row {
    display: flex;
    border: 0.5px solid var(--border-gold);
    margin-bottom: 48px;
    max-width: 480px;
}
.hero-stat {
    flex: 1;
    padding: 18px 20px;
    border-right: 0.5px solid var(--border-gold);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: var(--font-display); font-size: 32px; color: var(--gold); line-height: 1; }
.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 5px;
    line-height: 1.5;
}

.hero-cta-group { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---- IMAGE BREAK ---- */
.img-break { height: 560px; position: relative; overflow: hidden; }
.img-break img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.55) saturate(0.65);
}
.img-break-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--black) 0%, transparent 12%, transparent 88%, var(--black) 100%),
        linear-gradient(to bottom, var(--black) 0%, transparent 18%, transparent 82%, var(--black) 100%);
}
.img-break-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(196,160,80,0.6);
    white-space: nowrap;
    z-index: 2;
}

/* ---- PROBLEM ---- */
.section-problem { padding: var(--section-pad); border-top: 0.5px solid var(--border); }
.problem-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem-quote {
    font-size: clamp(20px, 2.2vw, 27px);
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    border-left: 1.5px solid var(--gold);
    padding-left: 32px;
    margin-bottom: 40px;
}
.problem-body { color: var(--gray-light); font-size: 17px; line-height: 1.85; }
.problem-body strong { color: var(--white); font-weight: 400; }

/* ---- UNITS ---- */
.section-units {
    padding: var(--section-pad);
    background: var(--black-mid);
    border-top: 0.5px solid var(--border);
    position: relative;
    overflow: hidden;
}
.section-units::after {
    content: '100';
    position: absolute;
    bottom: -20px; right: -20px;
    font-family: var(--font-display);
    font-size: 280px;
    color: rgba(196,160,80,0.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.units-intro { max-width: 560px; margin-bottom: 64px; }
.units-intro h2 { margin-bottom: 20px; }

.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 0.5px solid var(--border); }

.unit-card {
    background: var(--card-bg);
    border-right: 0.5px solid var(--border);
    padding: 48px 36px;
    position: relative;
    transition: background 0.3s;
}
.unit-card:last-child { border-right: none; }
.unit-card:hover { background: #0d0d1f; }

.unit-card.featured { background: linear-gradient(160deg, #0d0d20 0%, #0a0a18 100%); }
.unit-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
}

.unit-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--black);
    padding: 5px 12px;
    margin-bottom: 20px;
    font-weight: 700;
}

.unit-type {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.unit-type::after { content: ''; flex: 1; height: 0.5px; background: var(--border-gold); }

.unit-size { font-family: var(--font-serif); font-size: 48px; font-weight: 400; color: var(--white); line-height: 1; margin-bottom: 4px; }
.unit-sf { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-bottom: 24px; }
.unit-price { font-family: var(--font-serif); font-size: 30px; font-weight: 400; color: var(--gold); margin-bottom: 2px; }
.unit-price-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 28px; }

.unit-best-for { font-style: italic; color: var(--gray); font-size: 14px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 0.5px solid var(--border); }

.unit-features { list-style: none; margin-bottom: 36px; }
.unit-features li {
    font-size: 13px; color: var(--gray-light);
    padding: 7px 0;
    border-bottom: 0.5px solid var(--border);
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.4;
}
.unit-features li::before { content: '—'; color: rgba(196,160,80,0.4); flex-shrink: 0; }

.unit-img { width: 100%; height: 160px; overflow: hidden; margin-bottom: 28px; position: relative; }
.unit-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.6); transition: filter 0.4s, transform 0.4s; }
.unit-card:hover .unit-img img { filter: brightness(0.85) saturate(0.8); transform: scale(1.03); }
.unit-img-placeholder {
    width: 100%; height: 100%;
    background: var(--black-light);
    display: flex; align-items: center; justify-content: center;
    border: 0.5px solid var(--border);
}
.unit-img-placeholder span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(196,160,80,0.2); text-align: center; line-height: 2; }

/* ---- ALLIANCE ---- */
.section-alliance { padding: var(--section-pad); border-top: 0.5px solid var(--border); }
.alliance-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.alliance-left h2 { margin-bottom: 24px; }
.alliance-left .lead { margin-bottom: 32px; }

.alliance-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
}
.alliance-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.7);
    transition: filter 0.4s, transform 0.4s;
    display: block;
}
.alliance-img:hover img { filter: brightness(0.75) saturate(0.85); transform: scale(1.02); }
.alliance-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,7,15,0.6) 0%, transparent 50%);
}

.alliance-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--black-mid);
    border: 0.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
}
.alliance-img-placeholder span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(196,160,80,0.2); text-align: center; line-height: 2; }

.alliance-tagline {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    color: var(--gold);
    padding: 20px 0;
    border-top: 0.5px solid var(--border-gold);
    border-bottom: 0.5px solid var(--border-gold);
    margin-top: 40px;
}

.alliance-perks { display: flex; flex-direction: column; gap: 0; border: 0.5px solid var(--border); }
.perk-item { padding: 28px; display: flex; align-items: flex-start; gap: 20px; border-bottom: 0.5px solid var(--border); transition: background 0.2s; }
.perk-item:last-child { border-bottom: none; }
.perk-item:hover { background: var(--black-light); }
.perk-icon { width: 32px; height: 32px; background: var(--gold-dim); border: 0.5px solid var(--border-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); font-size: 12px; }
.perk-title { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; color: var(--white); margin-bottom: 4px; }
.perk-desc { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* ---- PROOF ---- */
.section-proof { padding: var(--section-pad); background: var(--black-mid); border-top: 0.5px solid var(--border); }
.proof-header { max-width: 640px; margin-bottom: 72px; }
.proof-header h2 { margin-bottom: 20px; }

.proof-comps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 0.5px solid var(--border); margin-bottom: 64px; }
.comp-card { background: var(--card-bg); border-right: 0.5px solid var(--border); padding: 40px 32px; }
.comp-card:last-child { border-right: none; }
.comp-card.legacy { border-color: var(--border-gold); background: rgba(196,160,80,0.03); }

.comp-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; color: var(--white); margin-bottom: 4px; }
.comp-name.gold { color: var(--gold); }
.comp-location { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 20px; }
.comp-units { font-family: var(--font-display); font-size: 56px; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.comp-units.white { color: var(--white); }
.comp-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.comp-badge { display: inline-block; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; }
.badge-sold { color: #b06060; background: rgba(176,96,96,0.12); border: 0.5px solid rgba(176,96,96,0.25); }
.badge-open { color: var(--gold); background: var(--gold-dim); border: 0.5px solid var(--border-gold); }

.proof-statement { max-width: 800px; }
.proof-statement p { font-size: clamp(17px, 2vw, 22px); font-style: italic; color: var(--gray-light); line-height: 1.8; }
.proof-statement strong { color: var(--white); font-style: normal; }

/* ---- WAITLIST FORM ---- */
.section-form { padding: var(--section-pad); border-top: 0.5px solid var(--border); }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-left h2 { margin-bottom: 20px; }
.form-left .lead { margin-bottom: 40px; }

.form-perks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.form-perks li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--gray-light); }
.form-perks li::before { content: ''; width: 5px; height: 5px; background: var(--gold); flex-shrink: 0; }

.form-box { background: var(--card-bg); border: 0.5px solid var(--border); padding: 48px 44px; }
.form-box h3 { font-size: 24px; margin-bottom: 6px; }
.form-box-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 36px; }

/* ---- CLOSING STRIP ---- */
.section-closing { padding: 100px 24px; background: var(--black-mid); border-top: 0.5px solid var(--border); text-align: center; }
.section-closing h2 { margin-bottom: 20px; }
.section-closing .lead { max-width: 580px; margin: 0 auto 48px; }

/* ---- PAGE-SPECIFIC RESPONSIVE ---- */
@media (max-width: 960px) {
    .hero-image-panel { width: 100%; }
    .hero-image-panel img { filter: brightness(0.5) saturate(0.7); }
    .hero-image-panel::after {
        background: rgba(7,7,15,0.72),
                    linear-gradient(to top, var(--black) 0%, transparent 30%);
    }
    .hero-content { width: 100%; padding: 140px 24px 80px; }
    .hero-vline { display: none; }
    .problem-layout,
    .alliance-layout,
    .form-layout { grid-template-columns: 1fr; gap: 48px; }
    .units-grid,
    .proof-comps { grid-template-columns: 1fr; }
    .unit-card { border-right: none; border-bottom: 0.5px solid var(--border); }
    .unit-card:last-child { border-bottom: none; }
    .comp-card { border-right: none; border-bottom: 0.5px solid var(--border); }
    .comp-card:last-child { border-bottom: none; }
    .form-box { padding: 32px 24px; }
    .img-break { height: 360px; }
}

@media (max-width: 600px) {
    .hero-cta-group { flex-direction: column; align-items: flex-start; }
    .hero-stat-row { flex-wrap: wrap; }
    .hero-stat { min-width: 50%; padding: 14px 12px; }
    .hero-stat-num { font-size: 26px; }
    .hero-stat-label { font-size: 8px; }
}