:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --surface-warm: #f3f0e8;
  --text: #17211c;
  --muted: #68756d;
  --line: #dfe6e0;
  --green: #207458;
  --green-dark: #15563f;
  --green-soft: #dff0e8;
  --orange: #d78645;
  --danger: #b74141;
  --radius-sm: 16px;
  --radius: 26px;
  --radius-lg: 38px;
  --shadow-sm: 0 10px 30px rgba(38, 60, 48, .07);
  --shadow: 0 24px 70px rgba(38, 60, 48, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: var(--green); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; color: #fff; background: var(--green); border-radius: 12px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 max(5vw, 1.25rem);
  border-bottom: 1px solid rgba(223, 230, 224, .85);
  background: rgba(247, 248, 244, .9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; color: var(--text); text-decoration: none; }
.brand-icon { width: 42px; height: 42px; object-fit: contain; display: block; flex: none; }
.brand-logo { width: clamp(122px, 11vw, 160px); height: auto; display: block; }
.main-navigation { justify-self: center; display: flex; align-items: center; gap: clamp(1.1rem, 2.6vw, 2.4rem); }
.main-navigation a { position: relative; color: #59665f; text-decoration: none; font-size: .9rem; font-weight: 760; }
.main-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.72rem; height: 2px; border-radius: 99px; background: var(--green); transform: scaleX(0); transition: transform .18s ease; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { color: var(--green-dark); }
.main-navigation a[aria-current="page"]::after { transform: scaleX(1); }
.account-link, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 14px; color: #fff; background: var(--green); text-decoration: none; font-weight: 800; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.account-link:hover, .button:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(32,116,88,.16); }
.button.secondary { color: var(--text); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.button.secondary:hover { border-color: #cad7ce; background: #fff; }
.button.ghost { color: var(--green-dark); background: transparent; border-color: #b8d1c4; }
.nav-toggle { display: none; min-height: 42px; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 760; }

main { min-height: calc(100vh - 250px); overflow: hidden; }
.page, .hero, .home-strip { width: min(1180px, 90vw); margin: 0 auto; }
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: 7.2rem 0 5.5rem;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 1.5rem; font-size: clamp(3.4rem, 7.8vw, 7.25rem); line-height: .94; letter-spacing: -.06em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: 1.18rem; letter-spacing: -.015em; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.27rem); line-height: 1.72; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; margin-top: 1.45rem; color: #75827a; font-size: .84rem; font-weight: 700; }
.hero-note span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8eb5a2; }

.city-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid #d9e2da;
  border-radius: 42px;
  background: linear-gradient(150deg, #e7f2eb 0%, #f8f5eb 52%, #e8eee7 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.city-visual::before { content: ""; position: absolute; inset: 12% 8% 8%; border-radius: 32px; background: linear-gradient(155deg, rgba(255,255,255,.9), rgba(255,255,255,.25)); transform: rotate(-3deg); }
.city-sun { position: absolute; top: 11%; right: 12%; width: 82px; height: 82px; border-radius: 50%; background: #edc982; box-shadow: 0 0 0 14px rgba(237,201,130,.16); }
.city-road { position: absolute; left: -12%; right: -8%; bottom: 8%; height: 29%; border-radius: 50% 50% 0 0; background: #cbd2cb; transform: rotate(-8deg); }
.city-road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: repeating-linear-gradient(90deg, #fff 0 34px, transparent 34px 64px); opacity: .9; }
.city-building { position: absolute; bottom: 23%; width: 23%; border-radius: 10px 10px 3px 3px; background: #fff; box-shadow: 0 14px 30px rgba(42,63,50,.12); }
.city-building::before { content: ""; position: absolute; inset: 16% 15% 20%; background: repeating-linear-gradient(90deg, #b7d4c5 0 18%, transparent 18% 38%); opacity: .75; }
.city-building.one { left: 12%; height: 39%; }
.city-building.two { left: 39%; height: 51%; background: #f3eee2; }
.city-building.three { right: 10%; height: 33%; background: #e1ece5; }
.city-tree { position: absolute; bottom: 21%; width: 28px; height: 58px; border-radius: 50% 50% 35% 35%; background: #6d9d7b; border: 5px solid #6d9d7b; box-shadow: inset 0 -24px 0 #588768; }
.city-tree::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 6px; height: 30px; background: #876f55; transform: translateX(-50%); }
.city-tree.a { left: 31%; } .city-tree.b { right: 31%; transform: scale(.82); }
.visual-badge { position: absolute; z-index: 3; left: 28px; top: 28px; display: inline-flex; align-items: center; gap: .55rem; padding: .58rem .78rem; border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); color: var(--green-dark); font-size: .78rem; font-weight: 850; }
.visual-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #46a678; }
.visual-card { position: absolute; z-index: 3; right: 24px; bottom: 24px; width: min(280px, calc(100% - 48px)); padding: 1.15rem 1.2rem; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.visual-card strong { display: block; margin-bottom: .35rem; }
.visual-card span { color: var(--muted); font-size: .88rem; line-height: 1.55; }

.home-strip { margin-bottom: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.home-stat { padding: 1.25rem 1.4rem; border-right: 1px solid var(--line); }
.home-stat:last-child { border-right: 0; }
.home-stat strong, .home-stat span { display: block; }
.home-stat strong { font-size: .96rem; }
.home-stat span { margin-top: .3rem; color: var(--muted); font-size: .82rem; }

.section { padding: 6.5rem 0; }
.section.alt { background: #eef2ed; }
.section.warm { background: var(--surface-warm); }
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading p { color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.card, .form-card, .account-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card { min-height: 220px; padding: 1.75rem; }
.card.feature { position: relative; overflow: hidden; min-height: 255px; }
.card.feature::after { content: ""; position: absolute; width: 130px; height: 130px; right: -42px; bottom: -52px; border-radius: 50%; background: var(--green-soft); }
.card-number { display: inline-grid; min-width: 34px; height: 34px; padding: 0 .45rem; place-items: center; margin-bottom: 2rem; border-radius: 10px; color: var(--green-dark); background: var(--green-soft); font-weight: 850; }
.card p { color: var(--muted); line-height: 1.65; }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 2.3rem; border-radius: 16px; background: var(--green-soft); color: var(--green-dark); font-size: 1.15rem; font-weight: 900; }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-panel { min-height: 430px; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--green-dark); color: #fff; box-shadow: var(--shadow); }
.feature-panel .eyebrow { color: #9fd4bd; }
.feature-panel p { color: #d3e6dd; line-height: 1.75; }
.feature-list { display: grid; gap: .85rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.feature-list li { padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.06); font-weight: 700; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.platform { padding: 1.45rem; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.platform strong, .platform span { display: block; }
.platform span { margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.platform.primary { border-color: #a8cbb9; background: var(--green-soft); }
.platform.primary span { color: var(--green-dark); }

.page { padding: 6rem 0 7rem; }
.page-intro { max-width: 790px; margin-bottom: 3rem; }
.page-intro h1 { font-size: clamp(3rem, 7vw, 6rem); }
.notice { padding: 1rem 1.15rem; border: 1px solid #dfd2ae; border-radius: 16px; color: #6e5c32; background: #fbf5e4; line-height: 1.55; }
.spaced-notice { margin-top: 2rem; }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.timeline-item time { color: var(--green); font-weight: 850; }
.timeline-item p { color: var(--muted); line-height: 1.65; }
.download-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.2rem; }
.download-card { padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: 28px; background: var(--green-dark); color: #fff; box-shadow: var(--shadow); }
.download-card p { color: #d4e6de; line-height: 1.65; }
.download-card .download-meta { margin: 1.5rem 0 .9rem; color: #b9e1ce; font-weight: 800; }
.download-card .button { width: 100%; color: var(--green-dark); background: #fff; }
.download-card .button:hover { background: #f5fbf7; }
.download-side { display: grid; gap: 1rem; }
.download-side .card { min-height: 0; }

.auth-layout { width: min(1040px, 90vw); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; padding: 6rem 0 8rem; }
.auth-copy { padding-top: 2rem; }
.auth-copy h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.security-form { max-width: 560px; margin-top: 2rem; }
.field { display: grid; gap: .5rem; margin-bottom: 1.15rem; }
.field label { color: #4f5e55; font-size: .9rem; font-weight: 750; }
.field input { width: 100%; min-height: 50px; padding: .8rem 1rem; color: var(--text); border: 1px solid #ced8d1; border-radius: 13px; outline: none; background: #fff; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,116,88,.10); }
.form-card .button { width: 100%; border: 0; }
.form-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--muted); }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--green); }
.fine-print { margin-top: 1.2rem; color: #7a877f; font-size: .82rem; line-height: 1.55; }

.account-layout { width: min(1180px, 90vw); margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 1.2rem; padding: 4.5rem 0 7rem; }
.account-sidebar { align-self: start; position: sticky; top: 100px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.account-user { padding: .6rem .55rem 1.2rem; border-bottom: 1px solid var(--line); }
.account-user strong, .account-user span { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-user span { margin-top: .25rem; color: var(--muted); font-size: .82rem; }
.account-nav { display: grid; gap: .25rem; padding: 1rem 0; }
.account-nav a { padding: .7rem .75rem; border-radius: 11px; color: #526158; text-decoration: none; font-weight: 700; }
.account-nav a:hover, .account-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
.text-button { width: 100%; padding: .72rem; border: 0; border-radius: 11px; color: #7d4c4c; background: #fbefef; font-weight: 750; }
.account-shell { min-height: 520px; padding: clamp(1.6rem, 4vw, 3rem); }
.account-shell h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; margin-top: 2.5rem; }
.detail { padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fafbf8; }
.detail span, .detail strong { display: block; }
.detail span { margin-bottom: .45rem; color: var(--muted); font-size: .82rem; }
.empty-state { margin-top: 2rem; padding: 3rem 1.3rem; border: 1px dashed #cbd7ce; border-radius: 18px; color: var(--muted); background: #fafbf8; text-align: center; line-height: 1.7; }
.route-loading { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }

.site-footer { width: min(1180px, 90vw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 1rem; color: var(--text); }
.footer-icon { width: 52px; height: 52px; object-fit: contain; display: block; flex: none; }
.footer-copy { min-width: 0; }
.footer-logo { width: 138px; height: auto; display: block; }
.footer-brand span { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 700; }
.site-footer a:hover { color: var(--green); }
.site-footer small { grid-column: 1 / -1; color: #8b958f; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: .7rem; }
  .nav-toggle { display: inline-flex; grid-column: 3; justify-self: end; align-items: center; }
  .account-link { grid-column: 2; grid-row: 1; }
  .main-navigation { position: absolute; top: calc(100% + 1px); left: 5vw; right: 5vw; display: none; padding: .7rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .main-navigation.open { display: grid; }
  .main-navigation a { padding: .8rem .9rem; border-radius: 10px; }
  .main-navigation a:hover, .main-navigation a[aria-current="page"] { background: var(--green-soft); }
  .main-navigation a::after { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 5rem; }
  .city-visual { min-height: 430px; }
  .home-strip { grid-template-columns: repeat(2, 1fr); }
  .home-stat:nth-child(2) { border-right: 0; }
  .home-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-feature, .download-hero { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; gap: 1rem; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}

@media (max-width: 620px) {
  .site-header { min-height: 70px; padding: 0 1rem; }
  .brand { gap: .55rem; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-logo { width: 104px; }
  .footer-icon { width: 44px; height: 44px; }
  .footer-logo { width: 118px; }
  .account-link { min-height: 40px; padding: .58rem .75rem; font-size: .83rem; }
  .page, .hero, .home-strip, .auth-layout, .account-layout, .site-footer { width: min(92vw, 1180px); }
  .hero { padding: 4rem 0 3rem; gap: 2.5rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  h2 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .city-visual { min-height: 370px; border-radius: 30px; }
  .city-building { width: 25%; }
  .visual-card { left: 18px; right: 18px; bottom: 18px; width: auto; }
  .visual-badge { left: 18px; top: 18px; }
  .home-strip, .card-grid, .platform-grid, .detail-grid { grid-template-columns: 1fr; }
  .home-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-stat:last-child { border-bottom: 0; }
  .section { padding: 4.5rem 0; }
  .page { padding: 4.3rem 0 5.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .4rem; }
  .hero-actions .button, .button-row .button { width: 100%; }
  .feature-panel { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Language switcher */
.header-actions { display: flex; align-items: center; gap: .65rem; }
.language-picker { min-height: 42px; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); }
.language-icon { font-size: .82rem; font-weight: 850; color: var(--green); }
.language-picker select { border: 0; outline: 0; background: transparent; color: var(--text); font-size: .82rem; font-weight: 800; cursor: pointer; }
@media (max-width: 900px) {
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .account-link { grid-column: auto; grid-row: auto; }
}
@media (max-width: 620px) {
  .language-picker { min-height: 38px; padding: 0 .4rem; }
  .language-icon { display: none; }
  .language-picker select { font-size: .78rem; }
  .header-actions { gap: .4rem; }
}
