/* ======================================================================
   Atlas — fbinv.ai landing
   Built on the Fishbowl Design System (Inter + Space Mono, marketing blue,
   fishscale motif). Dark "cosmic gateway" treatment.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable.ttf') format('truetype-variations'),
       url('assets/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable-Italic.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand — Fishbowl marketing blues + the Atlas mark blue */
  --fb-brand-blue:          #137FFD;
  --fb-brand-blue-hover:    #4499FD;
  --fb-marketing-blue:      #083CF3;
  --fb-marketing-dark-blue: #0026AB;
  --atlas-blue:             #0024F0;   /* the logo mark */

  /* Curated accents — one per surface */
  --fb-accent-magenta: #E44ECB;
  --fb-accent-yellow:  #F8C912;
  --fb-accent-teal:    #39B884;

  /* Dark surfaces (Fishbowl dark theme, deepened for hero) */
  --bg-void:    #0A0E1A;   /* deep space base */
  --bg-panel:   #131A2B;
  --bg-card:    #18203440;
  --bg-menu:    #2D3B49;
  --line:       #2A3550;

  /* Content */
  --content-primary:   #FFFFFF;
  --content-secondary: #AEBED4;
  --content-tertiary:  #6C7A96;

  /* Marketing pastel rainbow (signature Fishbowl gradient) */
  --fb-rainbow: linear-gradient(90deg,#CFEEFB 0%,#DDE6F4 28%,#E6E1F1 50%,#F0DFE5 72%,#FBE5C9 100%);

  --fb-font-sans: 'Inter','SF Pro Text',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --fb-font-mono: 'Space Mono',ui-monospace,'Roboto Mono',monospace;

  --radius-card: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2,0,0,1);

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fb-font-sans);
  color: var(--content-primary);
  background: var(--bg-void);
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ── Atmosphere: starfield + drifting marketing-blue aurora ───────── */
.bg-layers { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #ffffffcc, transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, #cfe0ffaa, transparent),
    radial-gradient(1px 1px at 40% 80%, #ffffff99, transparent),
    radial-gradient(1px 1px at 85% 20%, #ffffff88, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #bcd0ff99, transparent),
    radial-gradient(1px 1px at 10% 70%, #ffffff77, transparent),
    radial-gradient(1px 1px at 90% 85%, #ffffff66, transparent);
  background-size: 600px 600px, 700px 700px, 500px 500px, 800px 800px, 650px 650px, 550px 550px, 750px 750px;
  animation: drift 120s linear infinite;
  opacity: .7;
}
@keyframes drift { to { transform: translate3d(60px,-90px,0); } }

.aurora {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  mix-blend-mode: screen;
}
.aurora--1 { width: 60vw; height: 60vw; top: -22vw; left: -10vw;
  background: radial-gradient(circle, var(--atlas-blue), transparent 65%);
  animation: float1 22s var(--ease) infinite alternate; }
.aurora--2 { width: 45vw; height: 45vw; bottom: -18vw; right: -8vw;
  background: radial-gradient(circle, var(--fb-marketing-blue), transparent 68%);
  animation: float2 28s var(--ease) infinite alternate; }
.aurora--3 { width: 30vw; height: 30vw; top: 35%; left: 55%;
  background: radial-gradient(circle, #6F115F88, transparent 70%);
  animation: float1 34s var(--ease) infinite alternate; }
@keyframes float1 { to { transform: translate(8vw,6vh) scale(1.15); } }
@keyframes float2 { to { transform: translate(-7vw,-5vh) scale(1.1); } }

/* Fishscale brand shapes — same images + placement as fb-mfe-menu,
   static and low opacity, spread further toward the edges. */
.scale { position: absolute; opacity: .13; pointer-events: none; }
.scale--tr { top: 0; right: 0; width: clamp(154px, 18vw, 322px); height: auto; }
.scale--cr { bottom: -15px; right: 0; width: 7.2vh; height: auto; }
.scale--bl { bottom: 21vh; left: 0; width: 24.4vh; height: auto; }

/* grain overlay */
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Shell ─────────────────────────────────────────────────────────── */
.wrap { position: relative; z-index: 2; width: min(90vw, var(--maxw)); margin: 0 auto; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--atlas-blue);
  display: grid; place-items: center; box-shadow: 0 0 24px #0024f077;
}
.brand__mark img { width: 22px; height: 22px; display: block; }
.brand__name { font-family: var(--fb-font-mono); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 15px; }
.nav__link { font-family: var(--fb-font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--content-secondary); transition: color var(--ease) .2s; }
.nav__link:hover { color: #fff; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 7vh 0 9vh; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fb-font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--content-secondary);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #ffffff08; backdrop-filter: blur(6px);
  animation: rise .8s var(--ease) both;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fb-accent-teal);
  box-shadow: 0 0 10px var(--fb-accent-teal); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.portal { position: relative; width: 168px; height: 168px; margin: 38px auto 30px;
  animation: rise .8s var(--ease) .05s both; }
.portal__ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--atlas-blue), var(--fb-accent-magenta), var(--fb-brand-blue-hover), var(--atlas-blue));
  filter: blur(14px); opacity: .85; animation: spin 9s linear infinite; }
.portal__core { position: absolute; inset: 16px; border-radius: 28px; background: var(--atlas-blue);
  display: grid; place-items: center; box-shadow: inset 0 0 40px #00000055, 0 0 60px #0024f0aa; }
.portal__core img { width: 64%; height: 64%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero h1 {
  font-family: var(--fb-font-sans); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 20px; animation: rise .8s var(--ease) .1s both;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--fb-brand-blue-hover), var(--fb-accent-magenta) 60%, var(--fb-accent-yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 600px; margin: 0 auto 36px; font-size: clamp(1rem,1.6vw,1.18rem);
  color: var(--content-secondary); animation: rise .8s var(--ease) .18s both; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: rise .8s var(--ease) .26s both; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fb-font-sans);
  font-weight: 600; font-size: 15px; padding: 15px 26px; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform var(--ease) .2s, box-shadow var(--ease) .25s, background var(--ease) .2s;
  border: 1px solid transparent; }
.btn--primary { background: var(--atlas-blue); color: #fff;
  box-shadow: 0 8px 30px #0024f066, 0 0 0 0 #0024f0; }
.btn--primary:hover { background: var(--fb-marketing-blue); transform: translateY(-2px);
  box-shadow: 0 12px 40px #0024f099, 0 0 0 4px #0024f033; }
.btn--primary .arrow { transition: transform var(--ease) .2s; }
.btn--primary:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: #ffffff0a; color: #fff; border-color: var(--line); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #ffffff14; transform: translateY(-2px); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Features ──────────────────────────────────────────────────────── */
.features { padding: 4vh 0 9vh; }
.section-kicker { text-align: center; font-family: var(--fb-font-mono); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--content-tertiary); margin-bottom: 34px; }
.section-kicker b { color: var(--fb-brand-blue-hover); }

.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { position: relative; padding: 30px 26px 32px; border: 1px solid var(--line);
  border-radius: var(--radius-card); background:
    linear-gradient(180deg, #ffffff0a, #ffffff03);
  overflow: hidden; transition: transform var(--ease) .3s, border-color var(--ease) .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); opacity: .8; }
.card::after { content: ""; position: absolute; top: -40%; right: -30%; width: 60%; height: 80%;
  background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0; filter: blur(30px);
  transition: opacity var(--ease) .35s; }
.card:hover::after { opacity: .35; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
  margin-bottom: 18px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--fb-font-sans); font-weight: 700; font-size: 1.18rem; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { color: var(--content-secondary); font-size: .95rem; margin: 0; }
.card--magenta { --accent: var(--fb-accent-magenta); }
.card--teal    { --accent: var(--fb-accent-teal); }
.card--yellow  { --accent: var(--fb-accent-yellow); }

/* ── Strip / CTA band ──────────────────────────────────────────────── */
.band { position: relative; margin: 0 0 9vh; padding: 48px 40px; border-radius: 20px;
  background: linear-gradient(120deg, var(--fb-marketing-dark-blue), var(--atlas-blue) 55%, #2a0bd6);
  overflow: hidden; text-align: center; }
.band::before { content: ""; position: absolute; inset: 0; opacity: .14;
  -webkit-mask: url("assets/scales-tile.svg") repeat; mask: url("assets/scales-tile.svg") repeat; background: #fff; }
.band__inner { position: relative; }
.band h2 { font-family: var(--fb-font-sans); font-weight: 800; font-size: clamp(1.6rem,3.4vw,2.4rem);
  letter-spacing: -.02em; margin: 0 0 10px; }
.band p { color: #dfe7ff; margin: 0 0 24px; }
.band .btn--primary { background: #fff; color: var(--atlas-blue); }
.band .btn--primary:hover { background: #eaf0ff; box-shadow: 0 12px 40px #00000044; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer { padding: 30px 0 50px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer .brand__name { font-size: 13px; }
.footer__meta { font-family: var(--fb-font-mono); font-size: 12px; color: var(--content-tertiary);
  letter-spacing: .03em; }
.footer__rainbow { height: 3px; width: min(90vw, var(--maxw)); border-radius: 3px; background: var(--fb-rainbow);
  margin: 0 auto 28px; opacity: .85; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .nav__link { display: none; }
  .band { padding: 36px 22px; }

  /* Scales pull tighter to the corners on tablets */
  .scale--tr { top: 16px; right: 16px; width: clamp(110px, 22vw, 180px); }
  .scale--cr { bottom: 16px; right: 16px; width: clamp(64px, 14vw, 110px); }
  .scale--bl { bottom: 16px; left: 16px; width: clamp(100px, 20vw, 160px); }
}

@media (max-width: 480px) {
  /* Phone: small, corner-hugging accents that don't crowd the content */
  .scale--tr { top: 10px; right: 10px; width: clamp(74px, 26vw, 104px); }
  .scale--cr { bottom: 10px; right: 10px; width: clamp(50px, 17vw, 72px); }
  .scale--bl { bottom: 10px; left: 10px; width: clamp(70px, 24vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
