/* Shared styles — Next Horizon Technologies app & legal pages */
:root {
  --paper:  #FBFAF7;
  --paper-2:#F4F1EA;
  --ink:    #1B1B1E;
  --muted:  #797772;
  --line:   #E7E2D8;
  --dark:   #121214;
  --accent: #E5602C;

  --display:'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 16px;
  --shadow: 0 10px 30px rgba(30,25,18,0.06);
  --wrap: 920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--accent); }

/* ---- Header ---- */
header { position: sticky; top: 0; z-index: 40; background: rgba(251,250,247,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .glyph { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); position: relative; }
.brand .glyph::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 1.5px; background: var(--accent); }
.brand .glyph::after { content: ''; position: absolute; left: 50%; bottom: 9px; width: 8px; height: 8px; transform: translateX(-50%); border-radius: 50%; background: var(--accent); }
.brand .name { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav .back { font-size: 14px; color: var(--muted); transition: color .18s; }
.nav .back:hover { color: var(--ink); }

/* ---- App masthead ---- */
.masthead { padding: 56px 0 0; }
.masthead .top { display: flex; align-items: center; gap: 18px; }
.masthead .ico { width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--ink); }
.masthead .ico svg { width: 32px; height: 32px; stroke: var(--accent); }
.masthead .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.masthead h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin-top: 2px; }
.masthead .role { color: var(--accent); font-size: 16px; margin-top: 14px; }
.masthead .store { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; }

/* ---- Sub-nav (nested links) ---- */
.subnav { margin-top: 34px; border-bottom: 1px solid var(--line); display: flex; gap: 26px; }
.subnav a { font-size: 14.5px; color: var(--muted); padding: 14px 0; border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }

/* ---- Overview ---- */
.section { padding: 50px 0; }
.lead { font-size: 18px; color: var(--ink); max-width: 640px; }
.muted { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ---- Article (legal / about) ---- */
.article { padding: 50px 0 70px; }
.article .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.article h1.title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.prose { max-width: 720px; margin-top: 28px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 22px 0 6px; }
.prose p { color: #3c3a36; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 0; padding-left: 20px; }
.prose li { color: #3c3a36; margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(229,96,44,0.35); }
.prose a:hover { border-color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.callout { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: 14.5px; color: #3c3a36; }

/* ---- Footer ---- */
footer { background: var(--paper); color: var(--muted); padding: 34px 0; font-size: 13px; border-top: 1px solid var(--line); margin-top: 30px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
.foot .name { font-family: var(--display); color: var(--ink); font-size: 14px; }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-top: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.6; max-width: 760px; }
