/* Cygnus AI — site styles. Page layout lives inline in index.html; this file adds
   the page basics, the moving background, animations and phone adjustments. */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F5F3EF; }
img { max-width: 100%; }
a { color: #A84E15; }
a:hover { color: #7A380E; }
a:focus-visible { outline: 2px solid #A84E15; outline-offset: 3px; border-radius: 6px; }

/* ---------- moving orange background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.b1 { width: 640px; height: 640px; background: #F4B98A; opacity: 0.45; top: -220px; right: -180px; }
.b2 { width: 500px; height: 500px; background: #F7D9BF; opacity: 0.6;  top: 38%;    left: -220px; }
.b3 { width: 540px; height: 540px; background: #F4B98A; opacity: 0.3;  bottom: -240px; right: 12%; }

/* ---------- scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hover lift (after reveal so it wins) ---------- */
.lift { transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease-out; }
.lift:hover, .js .lift.reveal.in:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(80, 50, 20, 0.4) !important; }
a.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
a.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(120, 60, 20, 0.45); filter: brightness(1.03); }

/* ---------- floating glass top bar ---------- */
/* At the top of the page the bar is a full-width band; once you scroll it
   contracts into the floating rounded bar. Vertical padding stays the same in
   both states so nothing below it moves. */
header.bar {
  transition:
    top 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    margin-left 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    padding 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-radius 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
header.bar.scrolled {
  top: 12px !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding: 10px 8px 10px 14px !important;
  border-radius: 20px !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 1px 0 rgba(28, 26, 23, 0.05), 0 18px 40px -22px rgba(80, 50, 20, 0.45) !important;
}
@media (prefers-reduced-motion: reduce) { header.bar { transition: none; } }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover { color: #A84E15 !important; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: #E8792E; transform: scaleX(0); transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none !important; } }

/* ---------- video embed ---------- */
.video-frame { position: relative; margin-top: 32px; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #1F1C18; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .cta-long { display: none !important; }
  .cta-short { display: inline !important; }
  .panel { padding: 28px 20px !important; }
  .panel-book { padding: 36px 22px 0 !important; }
  .stat { font-size: 42px !important; }
  .bignum { font-size: 46px !important; }
  .blob { filter: blur(70px); }
  .b1 { width: 420px; height: 420px; }
  .b2 { width: 340px; height: 340px; }
  .b3 { width: 360px; height: 360px; }
}
