/* BIM City Studio — shared styles */
:root {
  --ink: #1F2329;
  --muted: #5E636E;
  --line: #E6E8EC;
  --soft: #F6F7F9;
  --white: #FFFFFF;

  --blue-fill: #DCE8F7;  --blue-ink: #2D5F9E;  --blue-display: #5B86C4;
  --mint-fill: #DCF1E5;  --mint-ink: #2B7350;  --mint-display: #4C9A72;  --mint-line: #9FD4B6;
  --lilac-fill: #E9E2F7; --lilac-ink: #6548A8; --lilac-display: #8A6CC8; --lilac-line: #C7B6EC; --lilac-soft: #F4F0FB;
  --peach-fill: #FCE4D6; --peach-ink: #A9512A; --peach-display: #C46A3C; --peach-line: #EDB394; --peach-soft: #FEF4EE;

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.label { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lead { margin: 24px 0 0; max-width: 600px; font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand b { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand span { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--blue-fill); color: var(--blue-ink); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 10px 0; }
.nav-links .ext { color: var(--muted); }
.nav-links a[aria-current="page"].academy { color: var(--mint-ink); box-shadow: inset 0 -2px var(--mint-line); }
.nav-links a[aria-current="page"].tools { color: var(--lilac-ink); box-shadow: inset 0 -2px var(--lilac-line); }
.pill-link { padding: 10px 18px !important; border-radius: 99px; background: var(--peach-fill); color: var(--peach-ink) !important; font-size: 14px; font-weight: 600; }
.pill-link[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--peach-line); }

/* Headings */
h1, h2, h3 { letter-spacing: -0.02em; }
.h1 { margin: 0; font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { margin: 0; font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.blue { color: var(--blue-display); }
.mint { color: var(--mint-display); }
.lilac { color: var(--lilac-display); }
.peach { color: var(--peach-display); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-dark { background: var(--ink); color: var(--white) !important; }
.btn-dark:hover { background: #000; }
.btn-lilac { background: var(--lilac-ink); color: var(--white) !important; }
.btn-lilac-ghost { background: var(--white); color: var(--lilac-ink) !important; }
.btn-peach { background: var(--peach-ink); color: var(--white) !important; }
.btn-mint { background: var(--mint-ink); color: var(--white) !important; }

/* Sections */
.hero { padding-top: 104px; padding-bottom: 80px; }
.hero-split { padding-top: 96px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.hero-split > div:first-child { flex: 1 1 560px; }
.band { background: var(--soft); }
.band .wrap { padding-top: 72px; padding-bottom: 72px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-row > div { flex: 1 1 520px; }
.cta-row p { margin: 10px 0 0; max-width: 640px; color: var(--muted); }

/* Home cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; padding-bottom: 104px; }
.card { text-decoration: none; border-radius: 20px; padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card .tag { font-family: var(--mono); font-size: 12px; }
.card .title { font-weight: 700; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.card .text { color: var(--ink); flex-grow: 1; }
.card .go { font-weight: 600; font-size: 15px; }
.card.mint-card { background: var(--mint-fill); color: var(--mint-ink); }
.card.lilac-card { background: var(--lilac-fill); color: var(--lilac-ink); }
.card.peach-card { background: var(--peach-fill); color: var(--peach-ink); }
.card.mint-card:hover, .card.lilac-card:hover, .card.peach-card:hover { color: inherit; }

.statement { margin: 0; font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; letter-spacing: -0.015em; }

/* Notice box */
.notice { flex: 0 1 340px; padding: 22px 24px; border-radius: 16px; }
.notice b { display: block; margin-bottom: 6px; }
.notice p { margin: 0; font-size: 14px; }
.notice.mint-n { background: var(--mint-fill); }
.notice.mint-n b { color: var(--mint-ink); }

/* Curriculum */
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; padding-bottom: 96px; }
.part { border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 24px; }
.part .num { font-family: var(--mono); font-size: 12px; color: var(--mint-ink); background: var(--mint-fill); padding: 3px 10px; border-radius: 99px; }
.part h3 { margin: 16px 0 12px; font-size: 22px; line-height: 1.25; }
.part ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.part li { display: flex; gap: 12px; font-size: 15px; }
.part li span { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 30px; padding-top: 1px; }

/* Tools */
.download { flex: 0 1 380px; border-radius: 20px; background: var(--lilac-fill); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.download .name { margin: 0; font-weight: 700; font-size: 24px; color: var(--lilac-ink); }
.download dl { margin: 0 0 6px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.download dt { color: #4E3A85; font-family: var(--mono); }
.download dd { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tool { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tool .pic { height: 170px; background: var(--lilac-soft); display: flex; align-items: center; justify-content: center; gap: 14px; }
.tool .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.tool h3 { margin: 0; font-size: 20px; }
.tool p { margin: 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--lilac-soft); color: var(--lilac-ink); }
.sheet { width: 88px; height: 116px; border: 1px solid var(--lilac-line); border-radius: 4px; background: var(--white); position: relative; }
.sheet i { position: absolute; left: 14px; top: 18px; width: 54px; height: 38px; border-radius: 3px; background: var(--lilac-fill); border: 1.5px solid var(--lilac-display); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.steps li { padding: 26px 24px; border-radius: 16px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; background: var(--lilac-fill); color: var(--lilac-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps b { font-size: 18px; }
.steps span:last-child { color: var(--muted); font-size: 15px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }

/* Client login */
.login-main { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 88px 24px; background: linear-gradient(180deg, var(--white) 0%, var(--peach-soft) 100%); }
.login-box { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 26px; }
.login-form { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; border-radius: 20px; background: var(--white); border: 1px solid #F3D3C1; box-shadow: 0 10px 30px rgba(169,81,42,0.08); }
.login-form label { font-size: 14px; font-weight: 600; }
.login-form input { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid #D9DCE1; background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; }
.login-form input:focus { outline: 2px solid var(--peach-line); border-color: var(--peach-ink); }
.login-form .btn { min-height: 52px; font-size: 16px; }
.error { display: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #9B2C2C; font-size: 14px; }
.error.show { display: block; }
.page-col { min-height: 100vh; display: flex; flex-direction: column; }

/* Project page */
.proj-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; padding-top: 56px; margin-bottom: 32px; }
.proj-grid { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 96px; }
.proj-main { flex: 999 1 560px; min-width: 0; }
.proj-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.files { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.files li { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.files .fname { font-weight: 600; }
.files .fmeta { display: block; font-size: 13px; color: var(--muted); }
.files a.dl { text-decoration: none; padding: 9px 18px; border-radius: 99px; background: var(--peach-fill); color: var(--peach-ink); font-weight: 600; font-size: 14px; }
.empty { border: 1px dashed #D9DCE1; border-radius: 18px; padding: 48px 28px; text-align: center; color: var(--muted); background: var(--peach-soft); }
.side-box { border-radius: 18px; padding: 24px 22px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.side-box h2 { margin: 0 0 4px; font-size: 16px; }
.signed { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer span:last-child { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 640px) {
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .hero-split { padding-top: 56px; }
  .card { min-height: 0; }
  .nav-links { gap: 0 18px; }
}
