/* squix.css — shared design system for Squix marketing pages (Tap + umbrella).
   Tokens mirror the product's "Midnight" theme so the site feels like the app. */

:root {
  --bg: #0a0b12;
  --bg-2: #0b0c15;
  --panel: #12131d;
  --panel-2: #191b27;
  --hover: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f2f3f8;
  --dim: #9aa0b4;
  --faint: #5c6178;
  --accent: #6d5dfc;
  --accent-2: #8b7bff;
  --accent-text: #ffffff;
  --accent-soft: rgba(109,93,252,0.15);
  --accent-border: rgba(109,93,252,0.42);
  --accent-glow: rgba(109,93,252,0.30);
  --ok: #5dd6a0;
  --ok-soft: rgba(93,214,160,0.14);
  --warn: #f4c15d;
  --bad: #f08a8a;
  --bad-soft: rgba(240,138,138,0.14);
  --shadow: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-sm: 0 10px 30px rgba(0,0,0,0.35);
  --maxw: 1160px;
  --radius: 18px;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(44px, 7vw, 84px) 0; }

/* ---------- shared atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--dim { color: var(--faint); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 999px; background: var(--bad); flex-shrink: 0; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 1px solid var(--bad); opacity: 0; animation: pulsering 2s ease-out infinite; }
@keyframes pulsering { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.pulse--accent { background: var(--accent); }
.pulse--accent::after { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.h-display { font-size: clamp(38px, 6.6vw, 78px); letter-spacing: -0.04em; line-height: 1.06; padding-bottom: 0.04em; }
.h2 { font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; font-weight: 650; }
.lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--dim); line-height: 1.6; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.gradient-text { background: linear-gradient(110deg, var(--text) 30%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .14s ease, background .16s, border-color .16s, box-shadow .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 32px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--hover); border-color: var(--accent-border); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- brand lockup (Squix · Tap) ---------- */
.lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mark-squix { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(150deg, #20222e, #14151f); border: 1px solid var(--border-strong); position: relative; }
.mark-squix::before { content: ''; position: absolute; inset: 6px; border-radius: 3px; border: 1.6px solid var(--text); opacity: .92; }
.mark-squix::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.brand-word { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sep { width: 1px; height: 20px; background: var(--border-strong); flex-shrink: 0; }
.mark-tap { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px var(--accent-glow); flex-shrink: 0; }
.brand-tap-word { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.product-chip { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--border); }
.site-header-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--dim); transition: color .14s, background .14s; }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); align-items: center; justify-content: center; }

/* ---------- cards / glow ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .5; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: clamp(48px, 7vw, 72px) 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 32px; }
.footer-col h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--dim); transition: color .14s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- frames for product shots ---------- */
.browser { border-radius: 14px; border: 1px solid var(--border-strong); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.browser-dots { display: flex; gap: 7px; }
.browser-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--border-strong); }
.browser-url { flex: 1; height: 24px; border-radius: 7px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 11px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); max-width: 320px; margin: 0 auto; }
.browser img, .shot-plain img, .feat-phone img, .product-hero-media img { width: 100%; height: auto; display: block; }
.shot-plain { border-radius: 14px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .brand-word, .product-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
