/* ioaiai — 独立软件工作室
   Premium dark "pro-tool" studio. Signature: a variable-width pressure
   ink-stroke (what TouchPen makes) that inks itself in and marks sections. */

:root {
  --bg:        #0d0f14;   /* deep blue-charcoal, not pure black */
  --bg-soft:   #10131b;
  --surface:   #141824;
  --surface-2: #1a1f2c;
  --line:      #262c3a;
  --line-soft: #1d222e;

  --paper:     #ecebe4;   /* warm off-white — the "ink on the light side" */
  --paper-dim: #b7bcc7;
  --muted:     #7d8393;
  --faint:     #5a6070;

  --accent:    #e3a94b;   /* brass / amber — the one warm note */
  --accent-2:  #f0c375;
  --accent-soft: rgba(227,169,75,.13);

  --live:      #5fd3a3;
  --live-bg:   rgba(95,211,163,.12);

  --serif: "Noto Serif SC", Georgia, "Songti SC", serif;
  --sans:  "Noto Sans SC", -apple-system, system-ui, "PingFang SC", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 680px at 50% -10%, #171b28 0%, transparent 60%),
    radial-gradient(900px 500px at 92% 8%, rgba(227,169,75,.06) 0%, transparent 55%),
    var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---- */
.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  font-family: var(--serif); font-weight: 900; font-size: 22px;
  letter-spacing: -0.01em; display: inline-flex; align-items: baseline;
}
.brand .dot { color: var(--accent); margin-left: 1px; }
.brand.small { font-size: 18px; }
.status { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }

/* ---- hero ---- */
.hero { padding: 92px 24px 40px; max-width: 900px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 22px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .6;
}
.headline {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.08; letter-spacing: -0.01em;
  margin: 0; white-space: pre-line;
  color: var(--paper);
}
.lede {
  margin: 26px 0 0; max-width: 44ch;
  font-size: 1.12rem; line-height: 1.75; color: var(--paper-dim);
}

/* signature pressure stroke */
.stroke { margin: 40px 0 4px; height: 60px; }
.stroke svg { width: min(100%, 560px); height: 100%; display: block; overflow: visible; }
.stroke-path {
  filter: drop-shadow(0 6px 20px rgba(227,169,75,.22));
  clip-path: inset(0 0 0 0);
  animation: ink 1.5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes ink {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #201603; font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(227,169,75,.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(227,169,75,.9); }
.btn.ghost {
  background: var(--surface); color: var(--paper);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- featured showcase ---- */
.featured {
  --accent-2: color-mix(in srgb, var(--accent) 52%, #ffffff);  /* clean tint of the product's own hue */
  margin: 40px auto 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
  padding: 34px; border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.feat-kicker {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.feat-name {
  font-family: var(--serif); font-weight: 900; font-size: 2.1rem; line-height: 1.1;
  margin: 0 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.feat-tagline { margin: 6px 0 0; color: var(--paper-dim); font-size: 1.05rem; line-height: 1.6; }
.feat-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.feat-points li {
  position: relative; padding-left: 26px; color: var(--paper-dim); font-size: 14.5px; line-height: 1.5;
}
.feat-points li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--paper-dim); padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.feat-actions { margin-top: 26px; }

.feat-visual { display: flex; justify-content: center; }
.feat-visual svg {
  width: 100%; max-width: 380px; height: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}

/* ---- badges ---- */
.badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  font-weight: 500; vertical-align: middle;
}
.badge.live { color: var(--live); background: var(--live-bg); box-shadow: inset 0 0 0 1px rgba(95,211,163,.3); }
.badge.soon { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(227,169,75,.28); }
.badge.plan { color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- works index ---- */
.works { padding: 46px 24px 20px; }
.works-head { margin-bottom: 22px; }
.works-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.7rem; margin: 8px 0 0;
}
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.index > li { border-bottom: 1px solid var(--line-soft); }
.row {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 20px;
  padding: 22px 8px; color: inherit;
  transition: background .16s ease, padding .16s ease;
}
.row-no { color: var(--faint); font-size: 13px; letter-spacing: .05em; }
.row-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.row-blurb { color: var(--muted); font-size: 14px; line-height: 1.5; }
.row-tags { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.row-arr { color: var(--accent); font-size: 20px; opacity: 0; transform: translateX(-6px); transition: .16s ease; }
a.row.is-live:hover { background: var(--surface); padding-left: 16px; padding-right: 16px; }
a.row.is-live:hover .row-arr { opacity: 1; transform: translateX(0); }
a.row.is-live:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }

/* ---- footer ---- */
.site-foot { margin-top: 40px; border-top: 1px solid var(--line-soft); padding: 30px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot .mono { color: var(--faint); font-size: 12.5px; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .hero { padding: 64px 24px 28px; }
  .lede { font-size: 1.05rem; }
  .featured { grid-template-columns: 1fr; gap: 26px; padding: 26px; text-align: left; }
  .feat-visual { order: -1; }
  .feat-visual svg { max-width: 320px; }
  .feat-name { font-size: 1.8rem; }
  .row { grid-template-columns: auto 1fr; gap: 14px; }
  .row-dot { display: none; }
  .row-arr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .stroke-path { clip-path: inset(0 0 0 0); }
}
