/* FlipStackOS Landing Page */

:root {
  --bg: #0c0c14;
  --surface: #12121e;
  --surface-2: #1a1a2e;
  --border: #252540;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --text: #e8e8f0;
  --text-dim: #7a7a99;
  --green: #22c55e;
  --red: #ef4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}
.nav-logo strong { color: var(--accent); }
.nav-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(245,158,11,0.25);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

/* HERO */
.hero {
  padding: 8rem 2rem 5rem;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* WIDGET CARD */
.hero-widget { display: flex; justify-content: flex-end; }
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.06);
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.widget-dots { display: flex; gap: 6px; }
.widget-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.widget-dots span:first-child { background: #ef4444; }
.widget-dots span:nth-child(2) { background: var(--accent); }
.widget-dots span:last-child { background: #22c55e; }
.widget-title { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.widget-address {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
}
.widget-strategy {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.widget-strategy strong { color: var(--accent); }
.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.widget-metric {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.widget-metric.highlight {
  border-color: var(--accent);
  background: rgba(245,158,11,0.06);
}
.metric-label { display: block; font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem; }
.metric-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.widget-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
.score-label { font-size: 0.72rem; color: var(--text-dim); }
.score-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #22c55e;
}
.score-badge span { font-size: 0.7rem; font-weight: 500; color: var(--text-dim); }
.widget-risk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.risk-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.widget-risk strong { color: var(--text); }
.widget-exit {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px;
  background: rgba(34,197,94,0.05);
}
.exit-label { font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; }
.exit-badge { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.82rem; font-weight: 700; color: #22c55e; }

/* DEMO STRIP */
.demo-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem;
}
.demo-inner { max-width: 1100px; margin: 0 auto; }
.demo-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.demo-flow { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.flow-step { display: flex; align-items: center; gap: 0.75rem; }
.flow-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.flow-text { font-size: 0.85rem; color: var(--text); }
.flow-arrow { color: var(--text-dim); }

/* FEATURES */
.features { padding: 6rem 2rem; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(245,158,11,0.3); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.feature-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

/* PROCESS */
.process { padding: 5rem 2rem; background: var(--surface); border-top: 1px solid var(--border); }
.process-inner { max-width: 1100px; margin: 0 auto; }
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
  padding-top: 0.2rem;
}
.step-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.step-content p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; max-width: 500px; }

/* CLOSING */
.closing { padding: 7rem 2rem; }
.closing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.closing-sub { font-size: 1.05rem; color: var(--text-dim); max-width: 480px; margin: 0 auto; }
.closing-cta {
  display: inline-block;
  margin-top: 2.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.closing-cta:hover { opacity: 0.88; }

/* NAVY override for strategy tabs (reversed text on dark bg) */
#navy-palette ~ .strategy-tabs .strategy-tab.active { background: var(--accent); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.footer-brand strong { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* MOBILE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-widget { justify-content: flex-start; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-headline { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .step-num { font-size: 1.8rem; }
  .demo-flow { gap: 1rem; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}