/* tariqchat.com — Deep Frost (values from app/lib/design/tariq_colors.dart) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Regular.ttf") format("truetype"); }

:root {
  --void: #070C13;        /* voidBlack */
  --panel: #0C141C;       /* panelDark */
  --panel-mid: #152030;   /* panelMid */
  --border: #1E2934;      /* borderSubtle */
  --text-head: #F1F5FB;   /* textHeader */
  --text: #DCE3EE;        /* textNormal */
  --text-2: #9AA8BC;      /* textSecondary */
  --accent: #4490FC;      /* Frost blue; voidBlack on it = 6.20:1 */
  --accent-hover: #6AA5FD;
  --accent-text: #7DB4F5; /* accentBlue: link text on void */
  --mint: #3DD68C;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; scrollbar-color: var(--panel-mid) var(--void); }
body {
  margin: 0; color: var(--text); background: var(--void);
  font: 400 1.0625rem/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--void); }

.masthead, main, footer { width: min(42rem, 100% - 2.5rem); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.masthead img { border-radius: 10px; }
.masthead nav { display: flex; gap: 1.5rem; }
.masthead nav a { color: var(--text-2); text-decoration: none; font-size: 0.9375rem; }
.masthead nav a:hover { color: var(--text-head); }
.wordmark { font-weight: 600; letter-spacing: 0.14em; color: var(--text-head); }

.hero { padding: clamp(3rem, 9vw, 6rem) 0 3.5rem; border-bottom: 1px solid var(--border); }
h1 {
  margin: 0; color: var(--text-head); font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin: 1.25rem 0 2.25rem; max-width: 34ch; font-size: 1.25rem; color: var(--text-2); text-wrap: pretty; }

.download {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.6rem 1rem 1.35rem; border-radius: 12px;
  background: var(--accent); color: var(--void);
  font-weight: 600; font-size: 1.125rem; text-decoration: none;
  box-shadow: 0 8px 22px -10px rgb(0 0 0 / 0.7), 0 2px 5px rgb(0 0 0 / 0.45);
  transition: background-color 180ms var(--ease), transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.download:hover { background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.75), 0 3px 8px rgb(0 0 0 / 0.5); }
.download:active { transform: translateY(0); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.secondary { color: var(--text); font-weight: 600; text-decoration: none; padding: 0.5rem 0; }
.secondary:hover { color: var(--text-head); text-decoration: underline; }
.meta { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--text-2); font-variant-numeric: tabular-nums; }

section + section { border-top: 1px solid var(--border); }
section:not(.hero) { padding: 3rem 0; }
h2 { margin: 0 0 0.9rem; color: var(--text-head); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; max-width: 65ch; }
strong { color: var(--text-head); font-weight: 600; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text-head); }
.small { font-size: 0.9375rem; color: var(--text-2); }

code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9rem; }
.cmd { margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; overflow-x: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: var(--text-head); }
.hash { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem;
  padding: 1rem 1.1rem; background: var(--panel-mid); border-radius: 10px; }
.hash code { flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; color: var(--text-head);
  letter-spacing: 0.02em; line-height: 1.5; }
.copy { font: 600 0.9375rem/1 "Inter", system-ui, sans-serif; color: var(--text-head);
  background: transparent; border: 1px solid var(--text-2); border-radius: 8px; padding: 0.55rem 0.9rem; cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.copy:hover { border-color: var(--text-head); background: rgb(241 245 251 / 0.06); }

.steps, .facts { margin: 0; padding-left: 1.25rem; }
.steps li, .facts li { margin: 0 0 0.75rem; padding-left: 0.25rem; max-width: 62ch; }
.steps li::marker { color: var(--accent-text); font-weight: 600; }
.facts li::marker { color: var(--text-2); }

.platform { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.platform:first-of-type { border-top: 0; padding-top: 0.5rem; }
.platform h3 { margin: 0 0 0.25rem; color: var(--text-head); font-size: 1.125rem; font-weight: 600; }
.platform.recommended h3::after { content: "Your system"; margin-left: 0.75rem; padding: 0.15rem 0.5rem;
  font-size: 0.75rem; font-weight: 600; color: var(--void); background: var(--mint); border-radius: 999px; vertical-align: 0.15em; }
.small-btn { padding: 0.7rem 1.15rem; font-size: 1rem; margin: 0.5rem 0 1rem; }
details { margin-top: 0.25rem; }
summary { cursor: pointer; color: var(--accent-text); font-weight: 600; width: fit-content; }
summary:hover { color: var(--text-head); }
details[open] summary { margin-bottom: 1rem; }
.steps .cmd, .steps .hash { margin-top: 0.6rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.platform { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.platform:first-of-type { border-top: 0; padding-top: 0.5rem; }
.platform h3 { margin: 0 0 0.25rem; color: var(--text-head); font-size: 1.125rem; font-weight: 600; }
.platform.recommended h3::after { content: "Your system"; margin-left: 0.75rem; padding: 0.15rem 0.5rem;
  font-size: 0.75rem; font-weight: 600; color: var(--void); background: var(--mint); border-radius: 999px; vertical-align: 0.15em; }
.small-btn { padding: 0.7rem 1.15rem; font-size: 1rem; margin: 0.5rem 0 1rem; }
details { margin-top: 0.25rem; }
summary { cursor: pointer; color: var(--accent-text); font-weight: 600; width: fit-content; }
summary:hover { color: var(--text-head); }
details[open] summary { margin-bottom: 1rem; }
.steps .cmd, .steps .hash { margin-top: 0.6rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.875rem; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }
.download:focus-visible { border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
  .download:hover { transform: none; }
}
