/* Aurink 聽筆 — ink-wash on rice paper */

:root {
  --paper: #f7f4ee;
  --paper-warm: #f2eee5;
  --ink: #1a1a1a;
  --ink-soft: #4a4a48;
  --ink-faint: #8a877f;
  --hairline: rgba(26, 26, 26, 0.14);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* rice-paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-left: 6px;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
  overflow: hidden;
}

.hero-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-size: clamp(340px, 56vw, 720px);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  width: 100%;
  text-align: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.wave-wrap {
  margin: 48px auto 0;
  max-width: 760px;
  height: 150px;
}

#inkwave {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s;
}

.mic-btn:hover { transform: translateY(-1px); }
.mic-btn:active { transform: translateY(0); }

.mic-btn.live { background: #000; }

.mic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.7;
}

.mic-btn.live .mic-dot {
  background: #e4572e;
  opacity: 1;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.6); }
}

.mic-note {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- sections ---------- */

.section { padding: 120px 24px; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section .kicker { margin-bottom: 20px; }

.section h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 56px;
}

.section-lede {
  max-width: 560px;
  margin: -32px 0 56px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.rule {
  max-width: 1120px;
  margin: 0 auto;
  height: 1px;
  background: var(--hairline);
}

/* privacy triple */

.triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.triple-num {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.triple-item h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.triple-item p {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.card {
  background: var(--paper);
  padding: 40px 32px 44px;
  transition: background 0.25s;
}

.card:hover { background: var(--paper-warm); }

.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* models */

.models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.model {
  background: var(--paper);
  padding: 44px 36px 48px;
  transition: background 0.25s;
}

.model:hover { background: var(--paper-warm); }

.model-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.model h3 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.model h3 em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-faint);
}

.model-size {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 14px;
}

.model p {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* platforms */

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.platform {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.platform-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.platform-spec {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* footer */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 96px 24px 64px;
  text-align: center;
}

.footer-mark {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 24px;
}

.footer-story {
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.footer-line {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

/* entrance animation */

.section-inner > *, .hero-inner > * {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .triple { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 88px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .wave-wrap { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-inner > *, .hero-inner > * { animation: none; }
  .mic-btn.live .mic-dot { animation: none; }
}
