:root {
  --ink: #14232d;
  --muted: #64737b;
  --paper: #f5f8f7;
  --white: #ffffff;
  --line: #d9e3e1;
  --teal: #0fa898;
  --teal-dark: #087a70;
  --amber: #e4a33a;
  --coral: #ed6b52;
  --navy: #102d3b;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", "Noto Sans SC", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 76px; padding: 0 clamp(22px, 5vw, 78px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(245, 248, 247, .94); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px);
}
.brand, .footer-brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 36px; height: 36px; display: block; flex: 0 0 36px; object-fit: cover; border-radius: 50%; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--coral); font-weight: 900; font-size: 19px; border-radius: 9px; transform: rotate(-7deg); }
.brand strong, .footer-brand strong { display: block; letter-spacing: -.04em; font-size: 15px; }
.brand small, .footer-brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .03em; margin-top: 2px; }
.main-nav { display: flex; gap: clamp(16px, 3vw, 36px); margin-left: 8%; }
.main-nav a { color: #53646a; font-size: 13px; font-weight: 700; }
.main-nav a:hover { color: var(--teal-dark); }
.admin-link { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 800; }
.admin-link svg { width: 16px; height: 16px; }

.hero-shell { position: relative; overflow: hidden; min-height: 445px; padding: clamp(58px, 8vw, 108px) clamp(22px, 8vw, 120px) 82px; color: white; background: var(--navy); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); align-items: center; gap: 50px; }
.hero-shell::before { content: ""; position: absolute; inset: 0; background: rgba(10, 38, 51, .72); pointer-events: none; }
.hero-copy, .hero-art, .hero-stats { position: relative; z-index: 1; }
.hero-copy { max-width: 690px; }
.eyebrow, .section-kicker { font: 500 11px var(--mono); letter-spacing: .12em; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: #a7ded7; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #43d4ae; box-shadow: 0 0 0 4px rgba(67, 212, 174, .16); }
h1 { max-width: 740px; margin: 20px 0 18px; font-size: clamp(34px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy > p { max-width: 580px; margin: 0; color: #c5d5d9; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 17px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 800; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: var(--navy); background: #e7f7f3; }
.button-primary:hover { background: white; }
.button-quiet { color: white; border-color: rgba(255,255,255,.3); }
.button-quiet:hover { border-color: white; background: rgba(255,255,255,.08); }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; color: #92b0b7; font: 11px var(--mono); flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: #7ad6c6; }
.hero-art { min-height: 270px; background: url("assets/laptop.jpg") center / cover; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: 25px 25px 0 rgba(12, 26, 33, .25); }
.hero-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(13, 41, 50, .42); }
.hero-art-label { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; color: #d7eeea; font: 10px var(--mono); letter-spacing: .08em; }
.hero-art-note { position: absolute; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 11px; color: white; font-size: 12px; line-height: 1.35; }
.hero-art-note b { color: #a8ebdf; font-weight: 700; }
.note-key { width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); border-radius: 7px; font: 16px var(--mono); }
.hero-stats { position: absolute; bottom: 23px; left: clamp(22px, 8vw, 120px); display: flex; gap: 28px; }
.hero-stat { display: flex; gap: 9px; align-items: baseline; }
.hero-stat strong { font-size: 18px; }
.hero-stat span { color: #9db5b9; font: 10px var(--mono); letter-spacing: .06em; }

.notice-bar { display: flex; align-items: center; gap: 18px; padding: 13px clamp(22px, 8vw, 120px); color: #547078; background: #e8f0ee; border-bottom: 1px solid #d3e1dd; font-size: 12px; }
.notice-label { color: var(--teal-dark); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.notice-arrow { margin-left: auto; color: var(--coral); font-size: 20px; }

.section-band { padding: 88px clamp(22px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 35px; }
.section-kicker { color: var(--teal-dark); }
h2 { margin: 9px 0 0; font-size: clamp(25px, 3vw, 39px); letter-spacing: -.05em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.platform-card { min-height: 280px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.platform-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -55px; top: -62px; border: 28px solid rgba(15, 168, 152, .08); }
.platform-card.amber::after { border-color: rgba(228, 163, 58, .12); }
.platform-head { display: flex; justify-content: space-between; align-items: start; }
.platform-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 9px; background: #e2f5f1; color: var(--teal-dark); }
.platform-card.amber .platform-icon { background: #fff3db; color: #a96c04; }
.platform-icon svg { width: 23px; height: 23px; }
.platform-tag { color: var(--muted); font: 10px var(--mono); letter-spacing: .04em; }
.platform-card h3 { margin: 23px 0 8px; font-size: 22px; letter-spacing: -.045em; }
.platform-card p { margin: 0; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.platform-meta { display: flex; gap: 12px; margin-top: auto; padding-top: 26px; color: #60777e; font: 10px var(--mono); }
.platform-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.download-button, .beta-button { min-height: 37px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.download-button { color: white; background: var(--teal-dark); }
.platform-card.amber .download-button { background: #9d6507; }
.download-button:hover { filter: brightness(1.12); }
.beta-button { color: var(--ink); border: 1px solid var(--line); }
.beta-button:hover { background: #eef4f2; }
.download-button svg, .beta-button svg { width: 14px; height: 14px; }

.tutorial-band { background: #eef3f1; }
.tutorial-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: end; }
.segmented { display: flex; background: #dfe9e6; padding: 3px; border-radius: 6px; }
.segment { border: 0; background: transparent; color: #617278; padding: 8px 12px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.segment.is-active { color: var(--navy); background: white; box-shadow: 0 1px 3px rgba(18, 50, 59, .12); }
.search-box { min-width: 190px; height: 35px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: white; border-radius: 5px; }
.search-box svg { width: 15px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 12px; background: transparent; }
.tutorial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tutorial-card { padding: 19px; min-height: 180px; background: white; border: 1px solid var(--line); border-radius: 7px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.tutorial-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(25, 55, 63, .08); }
.tutorial-index { display: flex; justify-content: space-between; color: #789097; font: 10px var(--mono); }
.tutorial-index svg { width: 14px; height: 14px; color: var(--coral); }
.tutorial-card h3 { margin: 22px 0 8px; font-size: 15px; letter-spacing: -.02em; }
.tutorial-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tutorial-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.tutorial-category { color: var(--teal-dark); font: 10px var(--mono); }
.tutorial-duration { color: #87979a; font: 10px var(--mono); }
.empty-state { grid-column: 1 / -1; padding: 35px; border: 1px dashed #b7c9c5; color: var(--muted); text-align: center; font-size: 13px; }

.command-band { background: #fffdf8; }
.command-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.command-card { padding: 18px; border: 1px solid #eadfca; border-radius: 7px; background: #fff; }
.command-card h3 { margin: 0 0 7px; font-size: 14px; }
.command-card p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.command-line { display: flex; align-items: center; gap: 7px; background: #14232d; border-radius: 5px; padding: 9px; color: #d6f6e9; }
.command-line code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font: 10px var(--mono); }
.copy-button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 4px; color: white; background: rgba(255,255,255,.12); }
.copy-button:hover { background: rgba(255,255,255,.25); }
.copy-button svg { width: 14px; height: 14px; }

.site-footer { padding: 30px clamp(22px, 8vw, 120px); display: flex; gap: 28px; align-items: center; background: #e9efed; color: var(--muted); font-size: 11px; }
.footer-brand { margin-right: auto; color: var(--ink); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 10px var(--mono); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; padding: 12px 15px; color: white; background: var(--navy); border-radius: 6px; box-shadow: 0 8px 28px rgba(12, 35, 43, .22); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .main-nav { margin-left: 0; }
  .hero-shell { grid-template-columns: 1fr; padding-bottom: 104px; }
  .hero-art { min-height: 220px; max-width: 570px; width: 100%; }
  .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { height: 68px; }
  .main-nav { display: none; }
  .admin-link span { display: none; }
  .hero-shell { min-height: 620px; padding-top: 52px; }
  h1 { font-size: 39px; }
  .hero-art { min-height: 190px; }
  .hero-stats { left: 22px; right: 22px; gap: 16px; justify-content: space-between; }
  .hero-stat { display: block; }
  .hero-stat strong { display: block; }
  .hero-stat span { display: block; margin-top: 4px; }
  .notice-bar { align-items: start; gap: 10px; }
  .notice-bar > span:nth-child(2) { line-height: 1.45; }
  .section-band { padding-top: 60px; padding-bottom: 60px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 13px; }
  .platform-grid, .tutorial-grid, .command-grid { grid-template-columns: 1fr; }
  .tutorial-controls { margin-top: 22px; justify-content: start; }
  .search-box { flex: 1; }
  .site-footer { display: block; }
  .site-footer p { margin: 20px 0; line-height: 1.6; }
}
