/* Tianmu Creations - polished black lacquer with gold, after the logo. */
/* Playfair Display: the logo's elegant high-contrast style, with strokes sturdy enough
   to read on black (Bodoni's hairlines vanished - changed 18 Sept). */
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #050506;
  --lacquer-1: #16161a;
  --lacquer-2: #0a0a0c;
  --edge: rgba(255, 255, 255, 0.07);
  --edge-light: rgba(255, 255, 255, 0.12);
  --text: #dcdce0;
  --muted: #9b9ba3;
  --gold-dark: #9c7a41;
  --gold: #c9a96a;
  --gold-light: #f0dea8;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--black); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* The lacquer: a bright sheen falling from above, a long diagonal reflection like
     light across polished paint, and a faint warm glow lower down. */
  background:
    radial-gradient(ellipse 120% 55% at 50% -12%, rgba(255, 255, 255, 0.11), transparent 62%),
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.028) 46%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.028) 54%, transparent 62%),
    radial-gradient(ellipse 90% 30% at 50% 100%, rgba(201, 169, 106, 0.05), transparent 70%),
    linear-gradient(180deg, #0b0b0d 0%, var(--black) 38%, #070708 100%);
  background-attachment: fixed;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff3d0; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 5, 6, 0.72);
  border-bottom: 1px solid var(--edge);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.mark { height: 38px; width: auto; }
.brand img.word { height: 15px; width: auto; }
.site-header nav a { color: var(--muted); font-size: 15px; letter-spacing: 0.04em; margin-left: 28px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--gold-light); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; font-weight: 600; }
.gold {
  background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold-light) 48%, var(--gold) 72%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--text); max-width: 42em; }
.muted { color: var(--muted); }
.eyebrow { font: 600 13px var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

/* Sections */
section { padding: 88px 0; }
.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(201, 169, 106, 0.45), transparent); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero .logo-mark { width: min(230px, 50vw); height: auto; display: block; margin: 0 auto 34px; filter: drop-shadow(0 18px 40px rgba(201, 169, 106, 0.12)); }
.hero .logo-word { width: min(640px, 88vw); height: auto; display: block; margin: 0 auto 30px; }

/* Lacquered panels */
.panel {
  background: linear-gradient(180deg, var(--lacquer-1), var(--lacquer-2));
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--edge-light), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
/* Each panel catches the light along its top edge, like a lacquered surface. */
.panel::before {
  content: '';
  position: absolute; inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.panel h3 { color: var(--gold-light); margin-bottom: 8px; }
.panel p { margin: 0; color: #c4c4ca; }

/* Product card on the home page */
.product { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.product img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }

/* Screenshot */
.shot { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--edge); }

/* Buttons and the install box */
.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  color: #16120a;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -10px rgba(201, 169, 106, 0.5);
}
.button:hover { color: #000; filter: brightness(1.06); }
.button.ghost { color: var(--gold-light); background: transparent; border: 1px solid rgba(201, 169, 106, 0.45); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

.install {
  display: flex; align-items: center; gap: 14px;
  max-width: 560px; margin: 28px auto 0; padding: 14px 16px 14px 22px;
  font: 16px var(--mono); color: #eaeaea; text-align: left;
  background: #0d0d0f; border: 1px solid var(--edge-light); border-radius: 12px;
}
.install code { flex: 1; overflow-x: auto; white-space: nowrap; }
.install code::before { content: '$ '; color: var(--gold); }
.install button {
  font: 600 13px var(--sans); color: var(--gold-light); background: transparent; cursor: pointer;
  border: 1px solid rgba(201, 169, 106, 0.4); border-radius: 8px; padding: 7px 12px;
}

/* Lists and tables */
ul.asks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.asks li { padding: 16px 20px; border-left: 2px solid var(--gold-dark); background: rgba(255, 255, 255, 0.025); border-radius: 0 10px 10px 0; font-style: italic; color: #d4d4d9; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
td code, p code, li code { font-family: var(--mono); font-size: 0.92em; color: var(--gold-light); }
.yes { color: #9fdc9f; }
.not-yet { color: var(--muted); }
.table-scroll { overflow-x: auto; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
ol.steps li { counter-increment: step; }
ol.steps li::before { content: counter(step); display: block; font: 500 40px var(--serif); color: var(--gold); margin-bottom: 4px; }

.principle { font: 500 clamp(24px, 3.2vw, 34px)/1.45 var(--serif); color: var(--text); max-width: 26em; margin: 0 auto; }
.tagline { font: 600 clamp(28px, 4vw, 44px)/1.2 var(--serif); margin: 0 0 12px; }
.product + .product { margin-top: 26px; }
.product .app-icon { width: min(220px, 60%); height: auto; margin: 0 auto; display: block; border-radius: 22%; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9); }

/* Footer */
footer { border-top: 1px solid var(--edge); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer img { height: 26px; width: auto; vertical-align: middle; margin-right: 10px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .install { font-size: 14px; }
  .install code { white-space: normal; word-break: break-all; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .brand img.word { display: none; }
  .site-header nav a { margin-left: 18px; }
  .panel { padding: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .install button { transition: filter 0.2s, color 0.2s; }
}
