/* =================================================================
   Tailor — Portfolio LP
   Style direction: Sartorial Tech / Navy & Gold editorial luxury
   Brand tokens lifted from the actual WinForms demo
   (navy #1B2A4A, gold #C9A84C, scissors mark, "Your PC, Tailored.")
   ================================================================= */

:root {
  /* --- palette --- */
  --navy-900: #0d1628;
  --navy-800: #16233f;
  --navy-700: #1b2a4a; /* brand navy (from $cNavy) */
  --navy-600: #283c66;
  --navy-500: #3a527f;

  --gold-600: #b08f38;
  --gold-500: #c9a84c; /* brand gold (from $cGold) */
  --gold-400: #ddc275;
  --gold-200: #efe2b8;

  --paper: #f6f3ea;
  --paper-2: #efeadd;
  --card: #ffffff;

  --ink: #14130d;
  --ink-soft: #3a3a40;
  --muted: #76757d;
  --line: rgba(27, 42, 74, 0.12);

  /* category accents (from $catAccent) */
  --c-setup: #30b0c7;
  --c-os: #007aff;
  --c-account: #af52de;
  --c-app: #34c759;
  --c-net: #5856d6;
  --c-remove: #ff3b30;
  --c-orange: #ff9500;

  /* --- typography --- */
  --font-sans: "Hiragino Sans", "Yu Gothic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Georgia", "Times New Roman", "Hiragino Mincho ProN", serif;
  --font-mono: "SFMono-Regular", "Consolas", "Menlo", monospace;

  --text-hero: clamp(2.7rem, 1.4rem + 5.6vw, 6rem);
  --text-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  --text-h3: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem);
  --text-lead: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* --- spacing / motion --- */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --dur: 280ms;
  --dur-slow: 700ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 18px 50px -24px rgba(13, 22, 40, 0.45);
  --shadow-float: 0 40px 90px -40px rgba(13, 22, 40, 0.65);
}

/* =================================================================
   base
   ================================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: var(--text-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 1rem 0 1.2rem;
}
.section-title .gold { color: var(--gold-600); font-style: italic; }

.section-lead {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: var(--text-lead);
}

/* stitch divider motif (needle & thread brand cue) */
.stitch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: var(--gold-500);
}
.stitch::before, .stitch::after {
  content: "";
  height: 0;
  flex: 1;
  max-width: 220px;
  border-top: 2px dashed rgba(176, 143, 56, 0.5);
}
.stitch span { font-size: 1.1rem; transform: rotate(-12deg); }

/* =================================================================
   header / nav
   ================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(13, 22, 40, 0);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 22, 40, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand .mark { color: var(--gold-500); font-size: 1.15rem; transform: translateY(-1px); }
.brand .demo-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 999px;
  padding: 0.15em 0.6em;
  align-self: center;
  margin-left: 0.2rem;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--gold-400); }

/* =================================================================
   hero
   ================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(201, 168, 76, 0.14), transparent 55%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  color: #fff;
  overflow: hidden;
  padding: 8rem 0 4rem;
}
/* tailored pinstripe texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.028) 0 1px,
    transparent 1px 13px
  );
  opacity: 0.9;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 38rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 1.4rem 0;
}
.hero h1 .accent {
  color: var(--gold-500);
  font-style: italic;
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 8px, transparent 8px 14px);
  transform: scaleX(0);
  transform-origin: left;
  animation: stitchIn 0.9s var(--ease) 0.5s forwards;
}
@keyframes stitchIn { to { transform: scaleX(1); } }

.hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-lead);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-400);
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  margin-bottom: 2.2rem;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.34);
  background: rgba(201, 168, 76, 0.07);
  border-radius: 999px;
  padding: 0.4em 0.95em;
}

/* hero floating window mock */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1600px;
}
.hero-stage .app-window {
  transform: rotateY(-13deg) rotateX(4deg);
  box-shadow: var(--shadow-float);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotateY(-13deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-13deg) rotateX(4deg) translateY(-14px); }
}

/* =================================================================
   WinForms app window — faithful HTML/CSS recreation
   (mirrors kitting-admin-demo.ps1 layout: gold accent line, navy
   title, stage tabs, summary card, module rows with accent dots +
   checkboxes, progress bar, output log, slide-to-restart)
   ================================================================= */
.app-window {
  width: min(360px, 82vw);
  background: #f3f3f8;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(13, 22, 40, 0.18);
  font-size: 12px;
  color: #1c1c1e;
  text-align: left;
}
.aw-accent { height: 4px; background: var(--gold-500); }
.aw-head { padding: 0.85rem 1rem 0.6rem; background: #fff; }
.aw-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-700);
  letter-spacing: 0.01em;
}
.aw-client { color: #8e8e93; font-size: 0.72rem; margin-top: 0.15rem; }
.aw-tabs { display: flex; gap: 6px; padding: 0.6rem 1rem; background: #f3f3f8; }
.aw-tab {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.74rem;
}
.aw-tab.active { background: var(--c-os); color: #fff; }
.aw-tab.idle { background: #d2d2da; color: #64646e; }
.aw-body { padding: 0 1rem 0.9rem; }
.aw-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  margin-bottom: 0.6rem;
}
.aw-summary .num { font-size: 1.5rem; font-weight: 800; color: var(--c-os); line-height: 1; }
.aw-summary .num small { font-size: 0.6rem; color: #8e8e93; font-weight: 600; margin-left: 0.25rem; }
.aw-summary .status { color: var(--c-app); font-weight: 600; font-size: 0.78rem; }
.aw-cat { font-weight: 700; font-size: 0.74rem; color: #3c3c43; margin: 0.55rem 0 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.aw-cat .dot { width: 8px; height: 8px; border-radius: 50%; }
.aw-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}
.aw-row .bar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 24px; border-radius: 2px; }
.aw-row .chk {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--c-app);
  background: var(--c-app);
  display: grid; place-items: center;
  color: #fff; font-size: 0.62rem; flex: none;
  margin-left: 0.3rem;
}
.aw-row .nm { font-size: 0.8rem; }
.aw-row .ov { color: #8e8e93; font-size: 0.66rem; margin-left: auto; font-family: var(--font-mono); }
.aw-progress { height: 6px; border-radius: 3px; background: #e6e6ee; overflow: hidden; margin: 0.7rem 0 0.4rem; }
.aw-progress i { display: block; height: 100%; width: 100%; background: var(--c-app); border-radius: 3px; }
.aw-run {
  background: var(--c-app);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  padding: 0.7rem;
  font-size: 0.86rem;
  margin-bottom: 0.6rem;
}
.aw-log {
  background: #f7f7fc;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.7;
}
.aw-log .lh { color: #8e8e93; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.06em; }
.aw-log .ok { color: var(--c-app); }
.aw-log .done { color: var(--c-app); font-weight: 700; }
.aw-slide {
  margin-top: 0.6rem;
  background: #e6e6ec;
  border-radius: 22px;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
}
.aw-slide .knob {
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  margin-left: 3px; display: grid; place-items: center; color: var(--c-remove);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.aw-slide .txt { margin: 0 auto; color: #8c8c96; font-size: 0.74rem; padding-right: 1.5rem; }

/* =================================================================
   problem section
   ================================================================= */
.section { padding: var(--space-section) 0; }

.problem { background: var(--paper); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.8rem;
}
.pcard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.pcard .pnum {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold-600);
  letter-spacing: 0.12em;
}
.pcard h3 { font-size: var(--text-h3); margin: 0.6rem 0 0.55rem; font-weight: 700; }
.pcard p { color: var(--ink-soft); font-size: var(--text-sm); }

/* =================================================================
   solution
   ================================================================= */
.solution {
  background:
    radial-gradient(100% 60% at 0% 0%, rgba(201,168,76,0.1), transparent 50%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.solution .section-lead { color: rgba(255,255,255,0.78); }
.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.scard {
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.scard:hover { border-color: rgba(201, 168, 76, 0.6); transform: translateY(-5px); }
.scard .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-400);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.scard h3 { font-size: var(--text-h3); margin-bottom: 0.6rem; color: var(--gold-200); }
.scard p { color: rgba(255,255,255,0.72); font-size: var(--text-sm); }

/* edition split (admin / user) */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.edition {
  border-radius: var(--radius);
  padding: 1.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.edition .tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--navy-900);
  background: var(--gold-500);
  border-radius: 999px;
  padding: 0.2em 0.85em;
  display: inline-block;
  margin-bottom: 0.9rem;
}
.edition h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.edition ul { list-style: none; }
.edition li { color: rgba(255,255,255,0.72); font-size: var(--text-sm); padding: 0.28rem 0 0.28rem 1.3rem; position: relative; }
.edition li::before { content: "—"; color: var(--gold-500); position: absolute; left: 0; }

/* =================================================================
   features (GUI showcase)
   ================================================================= */
.features { background: var(--paper-2); }
.feat-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 2.5rem;
}
.feat-mock { display: flex; justify-content: center; }
.feat-mock .app-window {
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.feat-list { display: flex; flex-direction: column; gap: 1.4rem; }
.feat-item { display: flex; gap: 1rem; }
.feat-item .fi-ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--navy-700);
  color: var(--gold-400);
  font-size: 1.15rem;
}
.feat-item h3 { font-size: var(--text-h3); margin-bottom: 0.25rem; }
.feat-item p { color: var(--ink-soft); font-size: var(--text-sm); }

.mock-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

/* module taxonomy chips */
.modules-band { margin-top: 3.5rem; }
.mod-cats { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.3rem; }
.mod-cat {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-sm);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1em;
}
.mod-cat .d { width: 9px; height: 9px; border-radius: 50%; }

/* =================================================================
   interactive demo (try it in-page)
   ================================================================= */
.trydemo { background: var(--paper); }
.td-stage {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.8rem;
  align-items: start;
}

/* control panel — navy card for depth */
.td-panel {
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.td-field { margin-bottom: 1.4rem; }
.td-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold-200);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.td-count {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
}

.td-clients { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.td-client {
  font: inherit;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.45em 1em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.td-client:hover { border-color: rgba(201, 168, 76, 0.5); color: #fff; }
.td-client.active {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
  font-weight: 700;
}

.td-modules { display: flex; flex-direction: column; gap: 0.4rem; }
.td-modules.td-locked, .td-clients.td-locked { opacity: 0.55; pointer-events: none; }
.td-catlabel {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: var(--text-xs); font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  margin: 0.75rem 0 0.15rem;
}
.td-catlabel:first-child { margin-top: 0; }
.td-catlabel .d { width: 8px; height: 8px; border-radius: 50%; }
.td-mod {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.td-mod:hover { border-color: rgba(201, 168, 76, 0.4); }
.td-mod:not(.on) { opacity: 0.6; }
.td-mod .td-box {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  font-size: 0.65rem; color: #fff;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.td-mod.on .td-box { background: var(--c-app); border-color: var(--c-app); }
.td-mod .td-name { font-size: var(--text-sm); flex: 1; }
.td-ov { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--gold-400); }

.td-run {
  width: 100%;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--navy-900);
  background: var(--gold-500);
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.4rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.td-run:hover { background: var(--gold-400); }
.td-run:active { transform: scale(0.985); }
.td-run:disabled { opacity: 0.55; cursor: default; }
.td-hint {
  margin-top: 0.9rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* window side */
.td-windowwrap { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.td-window {
  width: min(380px, 100%);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--line);
}
.td-rows { min-height: 56px; }
.td-empty {
  color: #8e8e93; font-size: 0.78rem; text-align: center;
  padding: 1.3rem 0;
}
.td-window .aw-log { max-height: 156px; overflow-y: auto; }
.td-window .aw-run { transition: background var(--dur) var(--ease); }
.td-logline.info { color: #8e8e93; }
.td-windowwrap .mock-caption { margin-top: 0; }

@media (max-width: 860px) {
  .td-stage { grid-template-columns: 1fr; }
  .td-windowwrap { order: -1; }
}

/* =================================================================
   tech stack
   ================================================================= */
.tech { background: var(--navy-900); color: #fff; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.8rem;
}
.tcard {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  background: rgba(255,255,255,0.02);
  transition: background var(--dur) var(--ease);
}
.tcard:hover { background: rgba(201,168,76,0.07); }
.tcard .tk { font-family: var(--font-mono); color: var(--gold-400); font-size: var(--text-xs); letter-spacing: 0.1em; }
.tcard h3 { font-size: 1.15rem; margin: 0.45rem 0 0.4rem; }
.tcard p { color: rgba(255,255,255,0.62); font-size: var(--text-sm); }

/* =================================================================
   design philosophy
   ================================================================= */
.design { background: var(--paper); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.dcard {
  border-left: 3px solid var(--gold-500);
  padding: 0.4rem 0 0.4rem 1.4rem;
}
.dcard h3 { font-size: var(--text-h3); margin-bottom: 0.5rem; }
.dcard p { color: var(--ink-soft); font-size: var(--text-sm); }
.dcard code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  color: var(--navy-700);
}

/* =================================================================
   why demo
   ================================================================= */
.whydemo {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(201,168,76,0.12), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.whydemo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.whydemo .section-lead { color: rgba(255,255,255,0.8); }
.demo-points { display: flex; flex-direction: column; gap: 1.1rem; }
.demo-point {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.demo-point .badge {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 800; font-size: 0.8rem;
}
.demo-point h3 { font-size: 1.02rem; margin-bottom: 0.2rem; color: var(--gold-200); }
.demo-point p { font-size: var(--text-sm); color: rgba(255,255,255,0.72); }

/* =================================================================
   dev notes (工夫・苦労)
   ================================================================= */
.devnotes { background: var(--paper-2); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; margin-top: 2.8rem; }
.ncard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
}
.ncard .label {
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 700;
}
.ncard h3 { font-size: var(--text-h3); margin: 0.5rem 0 0.6rem; }
.ncard p { color: var(--ink-soft); font-size: var(--text-sm); }

/* =================================================================
   footer
   ================================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
  text-align: center;
}
.site-footer .brand { justify-content: center; margin-bottom: 1rem; }
.site-footer .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-400);
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
}
.site-footer .meta { font-size: var(--text-xs); letter-spacing: 0.05em; line-height: 2; }
.site-footer .meta a { color: var(--gold-400); }

/* =================================================================
   reveal animation
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* =================================================================
   responsive
   ================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stage { order: -1; }
  .hero-stage .app-window { transform: none; animation: none; }
  .feat-layout, .whydemo-inner { grid-template-columns: 1fr; }
  .feat-mock { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .editions { grid-template-columns: 1fr; }
  .stitch::before, .stitch::after { max-width: 70px; }
  .hero { padding-top: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
