/*
 * focussort.css — Shared design system for focussort.com
 * Fonts loaded by each page individually (Google Fonts)
 */

/* ═══════════════════════════════════════════
   RESET & TOKENS
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c-bg:       #000;
  --c-surface:  rgba(255,255,255,0.04);
  --c-surface-2:rgba(255,255,255,0.07);
  --c-border:   rgba(255,255,255,0.08);
  --c-border-2: rgba(255,255,255,0.14);
  --c-text:     #fff;
  --c-text-1:   #fff;
  --c-text-2:   rgba(255,255,255,0.55);
  --c-text-3:   rgba(255,255,255,0.35);
  --c-blue:     #0066FF;
  --c-cyan:     #00D4FF;
  --c-purple:   #7B2FBE;
  --c-green:    #00D68F;
  --c-red:      #FF3B5C;
  --grad-primary: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  --grad-text:    linear-gradient(135deg, #fff 0%, var(--c-cyan) 100%);
  --grad-glow:    radial-gradient(ellipse at center, rgba(0,102,255,0.3) 0%, transparent 70%);
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow-card: 0 0 0 1px var(--c-border), 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(0,102,255,0.25);
  --font:      'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h:     68px;
  --max-w:     1200px;
}
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after { max-width: 100%; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: rgba(0,102,255,0.35); color: #fff; }

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-blue {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-muted { color: var(--c-text-2); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes mesh-drift {
  0%   { transform: translate(0%, 0%); }
  33%  { transform: translate(3%, -2%); }
  66%  { transform: translate(-2%, 3%); }
  100% { transform: translate(0%, 0%); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.22,1,0.36,1);
  white-space: nowrap;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(0,102,255,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,102,255,0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--c-surface-2);
  color: var(--c-text);
  border: 1px solid var(--c-border-2);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.btn-lg  { padding: 16px 32px; font-size: 16px; }
.btn-xl  { padding: 18px 40px; font-size: 17px; }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
/* On inner pages, start scrolled */
.nav.always-scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--c-text);
  background: var(--c-surface-2);
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0,214,143,0.1);
  border: 1px solid rgba(0,214,143,0.25);
  color: var(--c-green);
}
.nav-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-glow 2s infinite;
}
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-badge { display: none; }
  .nav-actions .btn { font-size: 14px; padding: 10px 18px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 998;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  border-top: 1px solid var(--c-border);
  overflow-y: auto;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.2s;
  min-height: 56px;
}
.nav-mobile-overlay a:hover, .nav-mobile-overlay a:active { color: var(--c-text); }
.nav-mobile-cta { margin-top: 24px; }

/* ═══════════════════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════════════════ */
.page-header {
  padding: calc(var(--nav-h) + 80px) 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-header-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  will-change: transform;
}
.page-header-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,102,255,0.6) 0%, transparent 70%);
  top: -200px; left: -150px;
}
.page-header-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.4) 0%, transparent 70%);
  bottom: -150px; right: -100px;
}
.page-header-content { position: relative; z-index: 2; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--c-text-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   COMING SOON
═══════════════════════════════════════════ */
.coming-soon-section {
  min-height: calc(100vh - var(--nav-h) - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.coming-soon-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
}
.coming-soon-icon {
  font-size: 56px;
  margin-bottom: 24px;
  display: block;
}
.coming-soon-card h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.coming-soon-card p {
  color: var(--c-text-2);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.coming-soon-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .coming-soon-card { padding: 40px 24px; }
}

/* ═══════════════════════════════════════════
   SECTION HEADINGS (shared)
═══════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--c-text-2);
  max-width: 580px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #000;
  border-top: 1px solid var(--c-border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
.footer-logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--c-text-3);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-3);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: rgba(0,102,255,0.15);
  border-color: rgba(0,102,255,0.3);
  color: var(--c-cyan);
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--c-text-2);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--c-text); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--c-text-3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 13px;
  color: var(--c-text-3);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--c-text-2); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-header { padding: calc(var(--nav-h) + 48px) 24px 48px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .footer { padding: 48px 0 32px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  .btn-xl { padding: 15px 28px; font-size: 15px; }
  .btn-lg  { padding: 14px 24px; font-size: 15px; }
}
@media (max-width: 390px) {
  :root { --nav-h: 60px; }
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}
@media (hover: none) and (pointer: coarse) {
  .btn:hover { transform: none; box-shadow: none; }
  .btn-primary:hover { box-shadow: none; }
  .footer-social a:hover { background: var(--c-surface-2); border-color: var(--c-border); color: var(--c-text-3); }
}
