/* TorQ-Haus — Shared Styles */

:root {
  --bg:             #0E1218;
  --card:           #161C25;
  --raised:         #1E2535;
  --border:         #2A3545;
  --blue:           #1C69D4;
  --blue-light:     #4A8EE8;
  --blue-faint:     rgba(28,105,212,0.10);
  --success:        #34C759;
  --danger:         #E05252;
  --warning:        #E8A020;
  --text-primary:   #FFFFFF;
  --text-secondary: #A8B4C4;
  --text-tertiary:  #5A6A7E;
  --radius-lg:      20px;
  --max-width:      1100px;

  /* Type — Barlow (body) + Barlow Condensed (display), with system fallback */
  --font-body:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', sans-serif;

  /* Elevation — soft depth instead of relying only on 1px borders */
  --shadow-card: 0 1px 1px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.18);
  --shadow-lift: 0 18px 44px rgba(0,0,0,0.40);
  --glow-blue:   0 18px 50px rgba(28,105,212,0.30);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section   { padding: 104px 0; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,18,24,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: var(--max-width);
  margin: 0 auto; padding: 0 20px;
}
.nav-logo                   { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: 0.2px; }
.nav-logo span:first-child  { color: var(--blue); }
.nav-logo span:last-child   { color: var(--text-primary); }
.nav-links                  { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a                { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover          { color: var(--text-primary); }
.nav-cta                    { background: var(--blue) !important; color: #fff !important; padding: 8px 18px; border-radius: 8px; font-weight: 700 !important; }
.nav-menu-btn               { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease;
  border: none; text-align: center;
}
.btn-primary   { background: var(--blue); color: #fff; box-shadow: var(--glow-blue); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 22px 56px rgba(28,105,212,0.42); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ── Official store badges ── used as-is per Google/Apple brand rules.
   Sized by height; each badge image includes its own clear space. */
.store-badge-official { display: inline-flex; transition: transform 0.2s; }
/* 0.65in (~62px) — well above Google's 0.3in minimum. */
.store-badge-official img { height: 0.65in; width: auto; display: block; }
.store-badge-official:hover { transform: translateY(-2px); }

/* "Coming soon on iOS" chip — deliberately NOT Apple's download badge, since
   that would imply the app is already available. Matched to the badge height. */
.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  height: 0.65in; padding: 0 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
}
.coming-soon svg { width: 17px; height: 17px; flex-shrink: 0; }
.coming-soon strong { color: var(--text-primary); font-weight: 800; }

/* ── Typography ── */
.label       { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-light); }
.headline    { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; line-height: 1.0; letter-spacing: -0.5px; text-transform: uppercase; }
.subheadline { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -0.2px; }
/* Feature-page section titles (defined per-page) inherit the display face */
.fb-title    { font-family: var(--font-display); }

/* ── Rev mark ── matches the app's tachometer "rev" icon (not a red dot).
   Sized in em so it tracks the surrounding text size at each use. */
.rev-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

/* ── Badge ── */
.badge      { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-blue { background: var(--blue-faint); color: var(--blue-light); border: 1px solid rgba(28,105,212,0.25); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.footer-brand p  { font-size: 13px; color: var(--text-tertiary); margin-top: 10px; line-height: 1.6; }
.footer-col h4   { font-size: 11px; font-weight: 700; color: var(--text-tertiary); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a    { font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: var(--max-width); margin: 28px auto 0;
  padding: 20px 20px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-tertiary);
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 20px; gap: 16px; z-index: 99;
  }
  .nav-menu-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
