/* Palette from the Tidal Prompt icon and ProOfferStyle. */
:root {
  --navy: #020a1e;
  --navy-2: #051434;
  --navy-3: #0a2a5c;
  --teal: #00c2d1;
  --aqua: #1ae6db;
  --ripple: #0a8cff;
  --text: #eaf6ff;
  --muted: #9fb3c8;
  --line: rgba(160, 200, 255, 0.14);
  --card: rgba(14, 32, 66, 0.62);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: ui-rounded, system-ui, -apple-system, "PingFang SC", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1, h2, h3, .lede { text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--navy-2); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(2, 10, 30, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang { color: var(--aqua); }
@media (max-width: 640px) { .site-nav .optional { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 70% 60% at 72% 70%, rgba(0, 194, 209, 0.22), transparent 70%),
    linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 55%, var(--navy) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } }
.app-icon { width: 104px; height: 104px; border-radius: 23px; box-shadow: 0 18px 50px rgba(0, 194, 209, 0.28); }
.hero h1 { font-size: clamp(44px, 7vw, 72px); margin: 22px 0 12px; }
.lede { font-size: clamp(20px, 2.4vw, 24px); color: var(--text); max-width: 34em; }
.sub { color: var(--muted); max-width: 36em; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 194, 209, 0.14); color: var(--aqua);
  font-size: 14px; font-weight: 600;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px;
}
/* Black on accent, as in the app: white on teal is unreadable. */
.button.primary { background: var(--aqua); color: #000; box-shadow: 0 6px 14px rgba(10, 140, 255, 0.3); }
.button.primary:hover { background: #fff; color: #000; }
.button.secondary { border: 1px solid var(--line); color: var(--text); }
.button.secondary:hover { border-color: var(--aqua); color: var(--text); }

/* Terminal illustration (plain HTML, not a device frame or screenshot). */
.terminal {
  position: relative;
  border-radius: 20px; overflow: hidden;
  background: #0b0f17; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 4, 15, 0.6);
  font: 14px/1.65 ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
.terminal .tabs { display: flex; gap: 6px; padding: 10px 12px; background: #121826; border-bottom: 1px solid var(--line); font-family: system-ui, -apple-system, sans-serif; font-size: 13px; }
.terminal .tab { padding: 4px 12px; border-radius: 8px; color: var(--muted); }
.terminal .tab.active { background: rgba(26, 230, 219, 0.14); color: var(--text); }
.terminal pre { margin: 0; padding: 18px 20px 120px; color: #d7e3f4; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 480px) { .terminal { font-size: 12px; } .terminal pre { padding: 14px 14px 112px; } }
.terminal .p { color: var(--aqua); }
.terminal .d { color: #6f8399; }
.terminal .ok { color: #7ee2a8; }
.cursor { display: inline-block; width: 0.6em; background: var(--aqua); color: transparent; }

.notice {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(30, 44, 70, 0.92); border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif; font-size: 14px; line-height: 1.4;
}
.notice img { width: 40px; height: 40px; border-radius: 9px; }
.notice b { display: block; font-size: 14px; }
.notice span { color: var(--muted); font-size: 13px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--aqua); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
:lang(zh) .eyebrow { letter-spacing: 0.12em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.glyph {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--teal), var(--ripple));
  color: #fff; font: 700 18px/1 ui-monospace, Menlo, monospace;
}

.band { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy) 100%); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 700; }
.fine { color: var(--muted); font-size: 14px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 30px; }
.plan.pro { border: 2px solid var(--aqua); background: rgba(0, 194, 209, 0.08); }
.plan .price { font: 700 34px/1.1 ui-rounded, system-ui, sans-serif; margin: 4px 0 18px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 22px; }
@media (max-width: 480px) { .prices { grid-template-columns: 1fr; } }
.prices div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.prices b { display: block; font: 700 22px/1.2 ui-rounded, system-ui, sans-serif; }
.prices span { color: var(--muted); font-size: 14px; }
.trial { border-radius: 14px; padding: 14px 16px; background: rgba(26, 230, 219, 0.1); margin-bottom: 18px; }

/* Long-form pages */
.page { padding: 56px 0 88px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); }
.prose h2 { font-size: 26px; margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
.prose td:nth-child(2), .prose th:nth-child(2) { white-space: nowrap; }
.updated { color: var(--muted); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.summary ul { margin: 0; padding-left: 20px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details > :not(summary) { color: var(--muted); }
details > p:first-of-type { margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer p { max-width: 900px; }
