/* CITYZEN EXPO landing page
   Brand: CITYZEN brandbook (Chinese Black, Isabelline, Argent, Silver Foil, Olive Green)
   Font: Helvetica Neue LT GEO 35 Thin (only weight supplied; bold is browser-synthesized) */

@font-face {
  font-family: "HN GEO Thin";
  src: url("../assets/fonts/HelveticaNeueLTGEO-35Thin.ttf") format("truetype");
  font-weight: 250;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #161616;
  --ink-2: #2a2a27;
  --ink-3: #3a3a36;
  --muted: #55554f;
  --paper: #f3f3eb;
  --white: #ffffff;
  --argent: #c4c5c0;
  --foil: #bab8a3;
  --accent: #99bb68;
  --line-dark: #2e2e2b;
  --radius: 4px;
  --radius-lg: 6px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(56px, 8.4vw, 120px);
  --h2: clamp(30px, 3.2vw, 46px);
  --font: "HN GEO Thin", "Helvetica Neue LT GEO", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.h2 { font-size: var(--h2); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 16px; color: var(--muted); }
.body { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.lede { font-size: 17px; line-height: 1.6; max-width: 420px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border-radius: var(--radius); font-size: 17px; border: 1px solid transparent; white-space: nowrap; }
.btn-dark { background: var(--black); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--black); font-weight: 700; }
.btn-outline { border-color: rgba(243, 243, 235, .7); color: var(--paper); font-weight: 700; min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn-ghost-dark { background: transparent; border-color: var(--black); color: var(--black); min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  height: 104px; padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--paper);
}
.header-phone { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.header-phone .i { font-size: 18px; }
.header-logo { color: var(--paper); }
.header-logo .logo { height: 24px; width: auto; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; padding: 6px 8px; font-size: 16px; opacity: .7; border-bottom: 1px solid transparent; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 700; border-bottom-color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(760px, 100svh); color: var(--paper); background: #262623; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster, .hero-video { object-fit: cover; object-position: center 40%; }
.hero-mask { background: rgba(22, 22, 22, .45); }
.hero-inner { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-top: 140px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 760px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-eyebrow { font-size: 20px; font-weight: 700; }
.hero-title { font-size: clamp(54px, 6.7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -0.01em; }
.hero-address { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; }
.hero-price { display: flex; flex-direction: column; gap: 4px; }
.hero-price-label { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; }
.hero-price-row { display: flex; align-items: baseline; gap: 18px; }
.hero-price-value { font-size: clamp(52px, 6.1vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.hero-price-old { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; color: #e4e4dc; }
.offer-badge { display: flex; align-self: flex-start; border-radius: var(--radius); overflow: hidden; text-shadow: none; }
.offer-badge-amount { background: var(--accent); color: var(--black); padding: 14px 20px; font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.offer-badge-amount strong { font-size: 44px; line-height: 1; }
.offer-badge-note { background: var(--paper); color: var(--black); padding: 14px 20px; font-size: 17px; font-weight: 700; line-height: 1.3; display: flex; align-items: center; max-width: 340px; }

/* lead form */
.lead-card {
  width: 360px; flex-shrink: 0;
  background: rgba(243, 243, 235, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--black); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  scroll-margin-top: 24px;
}
.lead-form, .lead-success { display: flex; flex-direction: column; gap: 14px; }
.lead-eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); }
.lead-title { font-size: 22px; font-weight: 700; line-height: 1.25; margin: -8px 0 4px; }
.lead-form input, .lead-form select {
  width: 100%; height: 48px; border: 1px solid #dcdcd4; background: var(--white);
  padding: 0 16px; font-size: 16px; color: var(--black); border-radius: var(--radius);
}
.lead-form input:focus, .lead-form select:focus { outline: 2px solid var(--black); outline-offset: 0; }
.lead-form input[aria-invalid="true"] { border-color: #a33a12; }
.lead-label { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; }
.lead-error { font-size: 14px; color: #a33a12; }
.lead-submit { margin-top: 4px; width: 100%; }
.lead-submit[disabled] { opacity: .6; cursor: progress; }
.lead-success p { font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.lead-success .btn { align-self: flex-start; }

/* ---------- infrastructure ---------- */
.section-dark { background: var(--black); color: var(--paper); }
.infra { padding: var(--section-y) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.infra .lede { color: #b5b5ae; }
.infra-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.infra-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.infra-icon { width: 92px; height: 92px; border-radius: var(--radius); background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center; }
.infra-icon .i { font-size: 50px; stroke-width: 2.6; }
.infra-label { font-size: 21px; line-height: 1.35; font-weight: 700; max-width: 220px; }

/* ---------- project ---------- */
.project { padding: var(--section-y) 0; }
.project-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: start; }
.project-text { display: flex; flex-direction: column; gap: 24px; }
.project-text .eyebrow { margin-bottom: 0; }
.slider { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.slider-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--argent); }
.slider-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.slider-img.is-fading { opacity: 0; }
.slider-nav { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.slider-btn { width: 52px; height: 52px; border: 0; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.slider-prev { background: rgba(243, 243, 235, .92); color: var(--black); }
.slider-next { background: var(--black); color: var(--paper); }
.slider-caption { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; }
.slider-count { font-size: 15px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.slider-title { font-size: 24px; font-weight: 700; }
.slider-text { font-size: 17px; line-height: 1.5; color: var(--ink-3); margin-top: 8px; }
.slider-dots { display: flex; gap: 6px; padding-top: 10px; }
.slider-dots button { width: 12px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: #a3a49e; transition: width .2s ease; }
.slider-dots button[aria-selected="true"] { width: 28px; background: var(--black); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--argent); margin-top: 72px; }
.stats > div { padding: 28px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 10px; justify-content: flex-end; }
.stats dt { font-size: 16px; color: var(--ink-3); }
.stats dd { font-size: clamp(34px, 3.2vw, 46px); line-height: 1; font-weight: 700; white-space: nowrap; }

/* ---------- installment ---------- */
.installment { background: var(--accent); color: var(--black); padding: var(--section-y) 0; }
.installment .eyebrow { color: var(--black); }
.installment-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.installment-terms { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.pay-list li { border-top: 1px solid rgba(22, 22, 22, .35); padding: 22px 0; display: flex; align-items: baseline; gap: 24px; }
.pay-value { font-size: clamp(40px, 3.9vw, 56px); font-weight: 700; line-height: 1; width: 130px; flex-shrink: 0; }
.pay-label { font-size: 18px; line-height: 1.45; }
.installment-units { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.units-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.unit-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.unit-tab { min-height: 48px; padding: 0 18px; border-radius: var(--radius); font-size: 16px; background: transparent; color: var(--black); border: 1px solid rgba(22, 22, 22, .45); }
.unit-tab[aria-selected="true"] { background: var(--black); color: var(--paper); border-color: var(--black); font-weight: 700; }
.unit-plan { height: clamp(260px, 34vw, 480px); display: flex; align-items: center; justify-content: center; }
.unit-plan-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.handover { border-top: 1px solid rgba(22, 22, 22, .35); padding-top: 28px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.handover-facts { display: flex; flex-direction: column; gap: 24px; }
.handover-facts dt { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: rgba(22, 22, 22, .7); }
.handover-facts dd { font-size: 26px; font-weight: 700; margin-top: 6px; }
.cond-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 14px; align-content: start; }
.cond-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.cond-list .i { font-size: 18px; stroke-width: 2.6; margin-top: 2px; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.cta .eyebrow { margin-bottom: 14px; font-size: 18px; }
.cta .h2 { max-width: 760px; }
.cta-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.cta-call { font-size: 18px; }
.cta .btn { min-height: 60px; padding: 0 44px; font-size: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--paper); padding: 80px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-brand .logo { height: 30px; width: auto; color: var(--paper); }
.footer-brand p { font-size: 16px; line-height: 1.6; color: #b5b5ae; max-width: 340px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border: 1px solid #3f3f3b; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #e4e4dc; }
.social .i { font-size: 18px; stroke-width: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--foil); }
.footer-col h3:not(:first-child) { margin-top: 10px; }
.footer-col a, .footer-col p { font-size: 16px; line-height: 1.5; color: #e4e4dc; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line-dark); margin-top: 64px; padding-top: 24px; font-size: 14px; color: #8c8c85; }
.footer-legal { display: flex; gap: 28px; }

/* ================= responsive ================= */

/* large tablets / small laptops */
@media (max-width: 1200px) {
  .lead-card { width: 340px; }
  .project-grid, .installment-grid { gap: 48px; }
  .handover { grid-template-columns: 1fr; gap: 24px; }
  .handover-facts { flex-direction: row; gap: 40px; }
}

/* tablets */
@media (max-width: 1024px) {
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-media { position: absolute; height: max(680px, 88svh); }
  .hero-inner { flex-direction: column; align-items: stretch; padding-top: 0; padding-bottom: 0; gap: 0; }
  .hero-copy { min-height: max(680px, 88svh); justify-content: flex-end; padding: 140px 0 48px; max-width: none; }
  .lead-card {
    width: 100%; max-width: 640px; align-self: center;
    margin: 0 0 48px; background: var(--paper);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .hero { background: var(--black); }
  .project-grid, .installment-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .infra-grid { column-gap: 16px; }
  .infra-icon { width: 80px; height: 80px; }
  .infra-icon .i { font-size: 44px; }
  .infra-label { font-size: 18px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .installment-terms { gap: 32px; }
  .installment-terms .btn { align-self: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* small tablets */
@media (max-width: 860px) {
  .infra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* phones */
@media (max-width: 680px) {
  .site-header { height: 72px; display: flex; align-items: center; gap: 8px; }
  .header-logo { order: 0; margin-right: auto; }
  .header-logo .logo { height: 14px; }
  .header-actions { order: 1; gap: 8px; }
  .header-cta { display: none; }
  .header-phone { order: 2; width: 36px; height: 36px; justify-content: center; border: 1px solid rgba(243, 243, 235, .6); border-radius: var(--radius); }
  .header-phone span { display: none; }
  .header-phone .i { font-size: 16px; }
  .lang button { font-size: 14px; padding: 6px; }
  .hero-media, .hero-copy { min-height: max(640px, 92svh); height: max(640px, 92svh); }
  .hero-copy { padding: 96px 0 28px; gap: 16px; }
  .hero-eyebrow { font-size: 16px; }
  .offer-badge { flex-direction: column; align-self: stretch; }
  .offer-badge-amount { padding: 10px 14px; font-size: 16px; }
  .offer-badge-amount strong { font-size: 30px; }
  .offer-badge-note { padding: 10px 14px; font-size: 15px; max-width: none; }
  .lead-card { margin: 24px 0 40px; padding: 24px 20px; }
  .lead-title { font-size: 21px; }
  .infra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 36px; }
  .infra-icon { width: 76px; height: 76px; }
  .infra-icon .i { font-size: 42px; }
  .infra-label { font-size: 18px; }
  .section-head { margin-bottom: 36px; }
  .slider-frame { aspect-ratio: 4 / 3; }
  .slider-btn { width: 44px; height: 44px; font-size: 18px; }
  .slider-nav { right: 12px; bottom: 12px; gap: 6px; }
  .slider-caption { grid-template-columns: 1fr auto; gap: 12px; }
  .slider-count { grid-column: 1; grid-row: 1; }
  .slider-dots { grid-column: 2; grid-row: 1; padding-top: 8px; }
  .slider-body { grid-column: 1 / -1; grid-row: 2; }
  .slider-title { font-size: 20px; }
  .slider-text { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 40px; }
  .stats > div { padding: 24px 0 0; }
  .stats dd { font-size: 36px; }
  .stats dt { font-size: 15px; }
  .pay-list li { padding: 16px 0; gap: 18px; }
  .pay-value { width: 90px; font-size: 40px; }
  .pay-label { font-size: 16px; }
  .installment-terms .btn { align-self: stretch; }
  .unit-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .unit-tab { min-height: 44px; padding: 0 8px; font-size: 14px; }
  .unit-plan { height: 280px; }
  .handover-facts { gap: 16px; }
  .handover-facts dd { font-size: 20px; }
  .cond-list { grid-template-columns: 1fr; }
  .cond-list li { font-size: 16px; }
  .cta { padding: 56px 0; }
  .cta-actions { flex-direction: column-reverse; align-items: stretch; width: 100%; gap: 16px; }
  .cta-call { text-align: center; font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .logo { height: 18px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 10px; margin-top: 36px; font-size: 13px; }
  .footer-legal { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-img, .slider-dots button { transition: none; }
}
