/* FXaeo - coming soon / launch page
   Design system: openmail.sh-derived dark theme, sharp corners, Geist / Geist Mono. */

:root {
  --background: #050505;
  --foreground: #e5e5e5;
  --primary: #fff;
  --primary-foreground: #000;
  --secondary: #1a1a1a;
  --muted: #1a1a1a;
  --accent: #1a1a1a;
  --border: #262626;
  --card: #0a0a0a;
  /* Rule (2026-09-16, Jaymes): #6b7280 is too low-contrast to read. Never use it,
     here or on the main site. This token stays white. */
  --muted-foreground: #ffffff;
  --max: 1120px;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5.5vw + 1rem, 4.2rem); letter-spacing: -0.05em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 12px; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--foreground);
  display: inline-block;
  flex-shrink: 0;
}

.section-lead {
  max-width: 620px;
  color: var(--foreground);
  font-size: 1.05rem;
}
.section-note {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); }
.btn-block { width: 100%; padding: 14px 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 24px; width: auto; }
.site-nav {
  display: none;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-nav a { color: var(--muted-foreground); }
.site-nav a:hover { color: var(--foreground); }
.header-cta { display: none; }
.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1px; background: var(--foreground); display: block; }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-cta { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 18px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 560px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 100px 24px 40px;
}
.hero-top { max-width: 760px; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--foreground);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-credibility { font-size: 0.85rem; color: var(--muted-foreground); margin: 0; }

@media (min-width: 760px) {
  .hero { min-height: 680px; }
  /* Fixed gap instead of space-between: the previous layout let the gap between
     the hero paragraph and the CTAs grow with viewport height (up to ~134px on a
     1440x900 screen). Jaymes asked for that gap cut by 70%, so it's now a fixed
     ~40px regardless of viewport height. Mobile is unaffected (it was already ~12px). */
  .hero-body { min-height: 680px; padding: 140px 24px 56px; justify-content: flex-start; gap: 28px; }
}

/* Sections */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
  /* Keeps an anchor-linked section's heading clear of the sticky 68px header
     when a nav link scrolls straight to it. */
  scroll-margin-top: 84px;
}
.section-alt { background: var(--card); }

.why-grid, .services-grid, .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
  border: 1px solid var(--border);
}
.why-item, .service-card, .about-item {
  background: var(--background);
  padding: 28px;
}
.why-num { font-family: var(--font-mono); color: var(--muted-foreground); font-size: 0.85rem; margin-bottom: 10px; }
.why-item p:last-child, .service-card p:last-child { color: var(--muted-foreground); font-size: 0.92rem; margin: 0; }

@media (min-width: 760px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* "Who FXaeo is for": 4 items, 2x2 then 4-across, avoids a 3+1 orphan row */
@media (min-width: 760px) {
  #who-for .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  #who-for .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Platforms grid */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.platform-tile {
  background: var(--background);
  padding: 32px 20px;
  text-align: center;
}
.platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin: 0 auto 14px;
}
.platform-mark img { width: 26px; height: 26px; object-fit: contain; display: block; }
.platform-tile p { margin: 0; font-size: 0.92rem; }

/* Brand logo grid (Track Record section) reuses the platform tile/mark styling,
   with much larger icons since these marks carry more detail. Always 3 columns
   (2 rows of 3) rather than 6-across, per Jaymes's 2026-09-16 QA note. */
.brand-mark { width: 104px; height: 104px; }
.brand-mark img { width: 60px; height: 60px; }
.brand-grid { margin-bottom: 32px; }
.brand-tile { padding: 40px 20px; }

@media (min-width: 760px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .grid-6.brand-grid { grid-template-columns: repeat(3, 1fr); }
}

/* How it works */
.how-grid {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
.how-steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.how-step {
  background: var(--background);
  padding: 24px 28px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.how-step:focus-visible { outline: 2px solid var(--foreground); outline-offset: -2px; }
.how-step.is-active { background: var(--card); border-left-color: #3fb950; padding-left: 26px; }
.how-step.is-active h3 { color: #3fb950; }
.how-num { font-family: var(--font-mono); color: var(--muted-foreground); font-size: 0.85rem; margin-bottom: 8px; }
.how-step p:last-child { color: var(--muted-foreground); font-size: 0.92rem; margin: 0; }

/* Terminal slider: only the active slide is shown, dots and rows stay in sync via main.js */
.terminal-panel { display: flex; flex-direction: column; gap: 16px; }
.terminal-body { display: none; }
.terminal-body.is-active { display: block; }
.slide-dots { display: flex; gap: 10px; justify-content: center; }
.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.slide-dot.is-active { background: #3fb950; border-color: #3fb950; }

.terminal {
  border: 1px solid var(--border);
  background: #000;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-body { margin: 0; padding: 20px; white-space: pre-wrap; word-break: break-word; color: var(--foreground); }
.t-prompt { color: #fff; }
.t-muted { color: var(--muted-foreground); }
.t-ok { color: #9fd39a; }
.t-warn { color: #e0c56b; }
.t-fail { color: #d98a8a; }

@media (min-width: 900px) {
  .how-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* About */
.about-grid { margin-top: 32px; margin-bottom: 24px; }
.about-item { text-align: center; }
.about-role { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: 6px; }
.about-brand { font-size: 1.2rem; font-weight: 600; margin: 0; }
@media (min-width: 700px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ */
.faq-list { margin-top: 32px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--muted-foreground); max-width: 640px; }

/* Contact */
.contact-wrap {
  display: grid;
  gap: 40px;
}
.contact-details { list-style: none; padding: 0; margin: 24px 0; }
.contact-details li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-label { font-family: var(--font-mono); color: var(--muted-foreground); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; width: 90px; flex-shrink: 0; }

.contact-form { border: 1px solid var(--border); background: var(--card); padding: 28px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 0;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--foreground);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { font-size: 0.85rem; margin-top: 12px; min-height: 1.2em; }
.form-status.is-error { color: #d98a8a; }
.form-status.is-ok { color: #9fd39a; }
.form-success { font-size: 1rem; margin: 0; }

@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr 1fr; }
}

/* Closing CTA, above the footer */
.closing-cta { background: var(--card); text-align: center; }
.closing-cta-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.closing-cta-inner .eyebrow { justify-content: center; }
.closing-cta-inner .section-lead { max-width: 520px; }
.closing-cta-inner .btn { margin-top: 8px; }

/* Sticky bottom audit bar: dismissible for the current visit only (see main.js) */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.sticky-bar[hidden] { display: none; }
.sticky-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-bar-inner p { margin: 0; font-size: 0.92rem; }
.sticky-bar-actions { display: flex; align-items: center; gap: 14px; }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.sticky-bar-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.sticky-bar-close:hover { color: var(--foreground); }

/* Footer */
.site-footer { padding: 56px 0 0; }
.footer-inner {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--muted-foreground); font-size: 0.9rem; max-width: 380px; margin-top: 16px; }
.footer-heading { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted-foreground); margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a { color: var(--foreground); }
.footer-links a:hover { color: var(--muted-foreground); }
.footer-bottom { padding: 20px 0 32px; color: var(--muted-foreground); font-size: 0.82rem; }

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 2fr 1fr; }
}

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #052e16;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1aa851;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.whatsapp-fab:hover { background: #1ebe5a; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
