/* ===================================================
   FocusPoint Marketing Site — style.css
   =================================================== */

/* --- Custom Properties --- */
:root {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --surface-glass: rgba(30, 41, 59, 0.6);
  --border: #334155;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #a5b4fc;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
  white-space: nowrap;
  background: var(--primary);
  color: var(--white);
}
.btn--lg { font-size: 1.05rem; padding: 0.9rem 2rem; }
.btn--sm { font-size: 0.875rem; padding: 0.55rem 1.25rem; }
.btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

/* --- Section Title --- */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: baseline; gap: 0.4rem; }
.nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav__byline {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
}
.hero__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.06); }
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero__accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ===================================================
   PROBLEMS
   =================================================== */
.problems {
  padding: 6rem 0;
  background: var(--bg);
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(165, 180, 252, 0.08);
}
.card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===================================================
   QUOTES
   =================================================== */
.quotes {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.quotes__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.quotes__track::-webkit-scrollbar { height: 4px; }
.quotes__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.quote-card {
  flex: 0 0 min(340px, 80vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-card p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.quote-card footer { margin-top: auto; }
.quote-card cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===================================================
   KAI
   =================================================== */
.kai {
  padding: 8rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.kai__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.kai__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(165,180,252,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.kai h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.kai__text {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.kai__text--highlight {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  margin-bottom: 1.25rem;
}
.kai__text--muted { color: var(--text-dim); }

/* ===================================================
   BENEFITS
   =================================================== */
.benefits {
  padding: 6rem 0;
  background: var(--bg);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s;
}
.benefit:hover { border-color: var(--accent); }
.benefit h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.benefit p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===================================================
   QUOTE BAR
   =================================================== */
.quote-bar {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  text-align: center;
}
.quote-bar__content {
  max-width: 760px;
  margin: 0 auto;
}
.quote-bar__content p {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.quote-bar__content cite {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===================================================
   FAQ
   =================================================== */
.faq {
  padding: 6rem 0;
  background: var(--bg);
}
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq__item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===================================================
   CTA
   =================================================== */
.cta {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}
.cta__inner { max-width: 560px; }
.cta h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cta__btn {
  gap: 0.5rem;
  min-width: 180px;
}
.cta__btn svg { flex-shrink: 0; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}
.cta__note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer__brand {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer__brand strong { color: var(--white); font-weight: 700; }
.footer__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer__links a {
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 640px) {
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__btn { width: 100%; max-width: 280px; }
  .nav__inner { padding: 0.6rem 1rem; }
  .nav__byline { display: none; }
}
