:root {
  --ink: #171717;
  --muted: #6d6b67;
  --canvas: #f6f4ef;
  --paper: #fffdf9;
  --line: #d9d5cd;
  --acid: #c8ff52;
  --violet: #8069ff;
  --orange: #ffab7a;
  --shadow: 0 22px 60px rgba(38, 32, 17, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.025em;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .26;
  pointer-events: none;
}
.ambient-one { top: -22vw; right: -14vw; background: var(--acid); }
.ambient-two { bottom: 7vh; left: -25vw; background: #d9ceff; }

.site-header, .section-shell, .site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -0.055em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: -0.06em;
}
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 620; }
.site-header nav > a { color: #57534e; }

.button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(23,23,23,.12); }
.button-primary { background: var(--acid); }
.button-dark { background: var(--ink); color: white; border-color: var(--ink); }
.button-small { min-height: 39px; padding: 0 14px; font-size: 13px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; border: 0; background: none; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-button { padding: 0; }

.hero { min-height: 670px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 72px; padding: 80px 0 92px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--violet); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(46px, 6vw, 78px); line-height: .96; letter-spacing: -.085em; }
h1 em { font-style: normal; color: var(--violet); }
.hero-description { max-width: 540px; color: #484541; font-size: 18px; line-height: 1.62; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.hero-notes span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); color: #54504b; font-size: 12px; font-weight: 650; }

.hero-visual { position: relative; min-height: 470px; }
.window-card { position: absolute; border: 1px solid rgba(23,23,23,.2); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.upload-window { top: 12px; left: 0; width: 88%; transform: rotate(-2.7deg); overflow: hidden; }
.window-topline { height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; color: #625e58; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.window-dots { display: inline-flex; gap: 4px; }
.window-dots i, .preview-bar span, .project-modal-toolbar span { width: 7px; height: 7px; border-radius: 50%; background: #d7d0c9; }
.window-status { margin-left: auto; color: #3d6021; font-size: 10px; }
.drop-zone { margin: 16px; padding: 38px 18px; border: 1.5px dashed #aba49a; border-radius: 12px; text-align: center; }
.drop-zone strong { display: block; margin-top: 13px; font-size: 15px; }
.drop-zone small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.zip-icon { width: 44px; height: 52px; margin: 0 auto; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--acid); font-size: 11px; font-weight: 850; }
.build-window { right: -3%; top: 209px; z-index: 2; width: 250px; padding: 20px; transform: rotate(3.4deg); }
.mini-label { margin-bottom: 15px; color: var(--violet); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 750; }
.build-window p { margin: 11px 0; color: #55504a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.build-window p span { color: #487928; font-weight: 850; }
.preview-window { right: 6%; bottom: 5px; z-index: 3; width: 286px; overflow: hidden; transform: rotate(-3.5deg); }
.preview-bar { height: 29px; display: flex; gap: 4px; align-items: center; padding-left: 12px; background: #eeebe5; }
.preview-content { min-height: 164px; padding: 20px; background: #282723; color: white; }
.preview-content p { margin-bottom: 17px; color: var(--acid); font-size: 18px; font-weight: 780; letter-spacing: -.05em; }
.preview-pills { display: flex; gap: 6px; margin-bottom: 18px; }
.preview-pills b { width: 36px; height: 7px; border-radius: 99px; background: #77716b; }
.preview-pills b:first-child { background: var(--orange); }
.preview-block { height: 24px; border-radius: 6px; background: #49463f; }
.preview-block.short { width: 66%; margin-top: 9px; }
.preview-url { padding: 10px 13px; background: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.route-line { position: absolute; border: 1.5px dashed #b3ada5; transform-origin: left center; }
.route-one { top: 181px; left: 41%; width: 40%; transform: rotate(35deg); }
.route-two { top: 316px; left: 34%; width: 39%; transform: rotate(3deg); }

.signal-strip { padding: 18px max(24px, calc((100% - 1180px) / 2)); display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--ink); color: white; }
.signal-strip p { margin: 0; font-size: 15px; font-weight: 720; }
.signal-tags { display: flex; gap: 20px; color: #bdbab5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.how-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; padding: 132px 0; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4vw, 57px); line-height: 1; letter-spacing: -.075em; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 8px 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.step-number { grid-row: span 2; color: var(--violet); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 800; }
.steps h3 { margin: 0; font-size: 20px; letter-spacing: -.045em; }
.steps p { margin: 0; max-width: 510px; color: #5d5852; line-height: 1.58; font-size: 15px; }

.showcase-section { padding: 18px 0 126px; }
.showcase-topline { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 42px; }
.project-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-preview { position: relative; min-height: 268px; padding: 20px; overflow: hidden; }
.preview-label { position: relative; z-index: 2; color: rgba(255,255,255,.78); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .04em; }
.calculator-preview { background: linear-gradient(145deg, #4f3d71, #22212a); }
.calculator-top { position: absolute; top: 70px; left: 24px; right: 24px; display: flex; flex-direction: column; gap: 5px; color: white; text-align: right; }
.calculator-top span { font-size: 36px; font-weight: 760; letter-spacing: -.06em; }
.calculator-top small { color: #bca8ef; font-size: 14px; }
.calculator-row { position: relative; top: 137px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 7px; }
.calculator-row b, .calculator-row i { height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.12); color: white; font-size: 13px; font-style: normal; }
.calculator-row i { background: #c8ff52; color: #23211e; }
.note-preview { background: #d8eec7; }
.note-preview .preview-label, .list-preview .preview-label { color: #4b5540; }
.note-window { position: absolute; left: 20px; right: 20px; bottom: 20px; min-height: 176px; padding: 22px; border-radius: 13px; background: #fffdf7; box-shadow: 0 12px 30px rgba(53, 72, 42, .14); transform: rotate(-3deg); }
.note-dot { display: block; width: 16px; height: 16px; margin-bottom: 18px; border-radius: 50%; background: #ffab7a; }
.note-line { display: block; height: 9px; width: 70%; margin-bottom: 10px; border-radius: 6px; background: #d6d2c9; }
.note-line.wide { width: 91%; background: #272622; }
.note-line.short { width: 43%; }
.note-chip { margin-top: 20px; display: inline-block; padding: 7px 9px; border-radius: 8px; background: #e6d7ff; color: #5d447c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.list-preview { background: #f1cf8a; }
.list-card { position: absolute; right: 17px; bottom: 17px; left: 17px; min-height: 180px; padding: 17px; border: 1px solid rgba(23,23,23,.22); border-radius: 12px; background: #fffaf0; }
.list-head { display: flex; gap: 9px; align-items: center; padding-bottom: 13px; border-bottom: 1px solid #ded6ca; font-size: 13px; }
.list-head span { width: 18px; height: 18px; border-radius: 6px; background: var(--violet); }
.list-item { display: grid; grid-template-columns: 12px 1fr 28px; gap: 8px; align-items: center; height: 37px; border-bottom: 1px solid #ece5db; }
.list-item i { width: 10px; height: 10px; border: 1px solid #38352e; border-radius: 3px; }
.list-item b { height: 7px; border-radius: 7px; background: #c9c2b8; }
.list-item em { height: 7px; border-radius: 7px; background: #e9e3d8; }
.project-meta { min-height: 174px; padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-category { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.project-meta h3 { margin-bottom: 7px; font-size: 24px; letter-spacing: -.06em; }
.project-meta p:last-child { margin-bottom: 0; max-width: 250px; color: #5f5a54; font-size: 14px; line-height: 1.5; }
.icon-button { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 18px; transition: background .18s ease, color .18s ease; }
.icon-button:hover { background: var(--ink); color: white; }
.prototype-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; }

.boundary-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; padding: 100px 0 130px; }
.boundary-table { border-top: 1px solid var(--ink); }
.boundary-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.boundary-row span { color: var(--muted); }
.boundary-row strong { font-weight: 700; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; padding: 28px 0 34px; border-top: 1px solid var(--line); color: #57524c; font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer .brand { color: var(--ink); }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(19,18,16,.46); backdrop-filter: blur(5px); }
.modal { position: fixed; top: 50%; left: 50%; z-index: 21; width: min(560px, calc(100% - 34px)); max-height: min(780px, calc(100vh - 34px)); overflow: auto; padding: 34px; border: 1px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.28); transform: translate(-50%, -50%); }
.modal h2 { margin-bottom: 18px; font-size: 42px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 24px; line-height: 1; }
.modal-description { margin-bottom: 24px; color: #5a554f; line-height: 1.55; font-size: 15px; }
#upload-form { display: grid; gap: 16px; }
#upload-form label { display: grid; gap: 8px; color: #514c45; font-size: 13px; font-weight: 720; }
#upload-form input, #upload-form select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #bdb7ae; border-radius: 10px; background: white; color: var(--ink); }
.file-label input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.file-label > span { min-height: 55px; padding: 0 14px; display: flex; justify-content: space-between; align-items: center; border: 1px dashed #989087; border-radius: 10px; background: #faf8f4; font-size: 14px; }
.file-label b { color: var(--muted); font-size: 11px; }
.form-submit { margin-top: 6px; }
.project-modal-screen { margin: 22px 0 18px; overflow: hidden; border: 1px solid #ccc5bb; border-radius: 14px; background: #282724; }
.project-modal-toolbar { height: 34px; padding: 0 13px; display: flex; gap: 5px; align-items: center; background: #efebe5; }
.project-modal-toolbar b { margin-left: auto; color: #777068; font-size: 10px; }
.project-modal-placeholder { min-height: 220px; display: grid; place-items: center; padding: 28px; color: #e4dfd5; text-align: center; line-height: 1.6; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; max-width: calc(100% - 32px); padding: 13px 17px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; box-shadow: 0 10px 40px rgba(0,0,0,.24); font-size: 13px; font-weight: 700; transform: translateX(-50%); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 54px; }
  .hero-visual { min-height: 410px; width: min(520px, 100%); }
  .how-section, .boundary-section { grid-template-columns: 1fr; gap: 38px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card-featured { grid-column: span 2; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, .section-shell, .site-footer { width: min(100% - 32px, 1180px); }
  .site-header { height: 70px; }
  .site-header nav > a { display: none; }
  h1 { font-size: 49px; }
  .hero { min-height: auto; padding: 46px 0 67px; }
  .hero-description { font-size: 16px; }
  .hero-visual { min-height: 340px; transform: scale(.9); transform-origin: top left; width: 111%; margin-bottom: -32px; }
  .build-window { right: -7%; }
  .signal-strip { align-items: flex-start; flex-direction: column; }
  .signal-tags { gap: 12px; flex-wrap: wrap; }
  .showcase-topline { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .project-preview { min-height: 248px; }
  .boundary-row { grid-template-columns: 1fr; gap: 6px; }
  .modal { padding: 28px 21px; }
  .modal h2 { font-size: 35px; }
}
