/* agentsea teaser — a planet of light rising over a dark sea. Restraint first: one subject, one light, slow motion. */
:root {
  color-scheme: dark;
  --bg: #04050a;
  --text: #f3f6fb;
  --text-2: #a3adc2;
  --text-3: #5f6880;
  --lagoon: #5fd6ff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --h: 70svh;                                  /* horizon line */
  --w: min(50vmin, 620px);                     /* planet diameter */
  --rise: 0.6;                                 /* share of the planet above the horizon */
}
@media (max-width: 700px) { :root { --h: 63svh; --w: 80vw; } }
@media (max-height: 640px) and (min-width: 701px) { :root { --h: 72svh; --w: 46vmin; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { min-height: 100svh; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------------ scene */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#dust { position: absolute; left: 0; top: 0; width: 100%; height: var(--h); }
.sky { position: absolute; inset: 0 0 auto; height: var(--h); opacity: 0; animation: fade 3.2s var(--out) 0.4s forwards;
  background:
    radial-gradient(calc(var(--w) * 1.5) calc(var(--w) * 0.9) at 50% 100%, rgba(58, 116, 255, 0.34), rgba(21, 49, 173, 0.12) 45%, transparent 72%),
    radial-gradient(120vw 60svh at 50% 0%, rgba(14, 22, 52, 0.9), transparent 70%); }

.above { position: absolute; inset: 0 0 auto; height: var(--h); overflow: hidden; }
.planet { position: absolute; left: 50%; width: var(--w); aspect-ratio: 1; top: calc(var(--h) - var(--w) * var(--rise)); margin-left: calc(var(--w) / -2);
  opacity: 0; transform: translateY(calc(var(--w) * 0.28)); animation: rise 3.4s var(--out) 0.5s forwards; }
.planet .sphere { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 calc(var(--w) * 0.06) rgba(90, 150, 255, 0.45)); }
.halo { position: absolute; inset: -32%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 170, 255, 0.42), rgba(58, 116, 255, 0.16) 52%, transparent 75%); animation: breathe 9s ease-in-out infinite; }
.band { animation: drift linear infinite; }
.b1 { animation-duration: 26s; }
.b2 { animation-duration: 34s; animation-direction: reverse; }
.b3 { animation-duration: 44s; }
.b4 { animation-duration: 56s; animation-direction: reverse; }

.sea { position: absolute; left: 0; right: 0; top: var(--h); bottom: 0; overflow: hidden; background: linear-gradient(180deg, #0a1638 0%, #060a1d 22%, #04050a 70%); }
.reflection { position: absolute; left: 50%; width: var(--w); aspect-ratio: 1; margin-left: calc(var(--w) / -2); top: calc(var(--w) * (var(--rise) - 1)); transform: scaleY(-1); opacity: 0; filter: blur(2.5px) saturate(1.1);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.6) 42%, transparent 80%);
  mask-image: linear-gradient(0deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.6) 42%, transparent 80%);
  animation: reflect 3s var(--out) 1.6s forwards; }
.reflection .sphere { width: 100%; height: 100%; display: block; }
.shimmer { position: absolute; inset: 0; }
.shimmer i { position: absolute; left: 50%; height: 1px; border-radius: 1px; background: linear-gradient(90deg, transparent, rgba(190, 230, 255, 0.55), transparent); opacity: 0; animation: glint 7s ease-in-out infinite; }
.shimmer i:nth-child(1) { top: 3%; width: calc(var(--w) * 0.7); margin-left: calc(var(--w) * -0.35); animation-delay: 1.8s; }
.shimmer i:nth-child(2) { top: 7%; width: calc(var(--w) * 0.45); margin-left: calc(var(--w) * -0.1); animation-delay: 3.4s; }
.shimmer i:nth-child(3) { top: 11%; width: calc(var(--w) * 0.35); margin-left: calc(var(--w) * -0.4); animation-delay: 5s; }
.shimmer i:nth-child(4) { top: 16%; width: calc(var(--w) * 0.25); margin-left: calc(var(--w) * -0.05); animation-delay: 2.6s; }
.shimmer i:nth-child(5) { top: 22%; width: calc(var(--w) * 0.18); margin-left: calc(var(--w) * -0.2); animation-delay: 6.2s; }
.shimmer i:nth-child(6) { top: 29%; width: calc(var(--w) * 0.12); margin-left: calc(var(--w) * 0.02); animation-delay: 4.2s; }

.horizon { position: absolute; left: 0; right: 0; top: var(--h); height: 1px; transform: scaleX(0); animation: draw 2s var(--out) 0.15s forwards;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 170, 255, 0.25) 18%, rgba(225, 246, 255, 0.95) 50%, rgba(120, 170, 255, 0.25) 82%, transparent 100%);
  box-shadow: 0 0 18px 1px rgba(95, 214, 255, 0.45), 0 0 60px 4px rgba(58, 116, 255, 0.25); }

.grain { position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay; animation: grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"); }
.vignette { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 55%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }

/* ------------------------------------------------------------------ chrome */
.top { position: fixed; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: clamp(18px, 3vw, 32px) clamp(20px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; letter-spacing: -0.03em; }
.brand-mark { width: 24px; height: 24px; }
.top-link { font-size: 13.5px; color: var(--text-2); letter-spacing: 0.01em; transition: color 0.3s; }
.top-link:hover { color: var(--text); }

.copy { position: fixed; z-index: 2; left: 0; right: 0; top: calc(var(--h) - var(--w) * var(--rise) - clamp(18px, 4svh, 44px)); transform: translateY(-100%); text-align: center; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2); }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--lagoon); box-shadow: 0 0 10px 2px rgba(95, 214, 255, 0.6); animation: live 2.8s ease-in-out infinite; }
.title { margin: 0; font-weight: 600; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.045em; padding-bottom: 0.06em; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #c9e6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 20px auto 0; max-width: 620px; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; color: var(--text-2); letter-spacing: -0.005em; text-wrap: pretty; }

.cta { position: fixed; z-index: 2; left: 0; right: 0; top: calc(var(--h) + clamp(30px, 7svh, 72px)); display: flex; justify-content: center; gap: 12px; padding: 0 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: background 0.35s var(--out), border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--out); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-light { background: #f3f6fb; color: #04050a; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 40px -12px rgba(120, 180, 255, 0.55); }
.btn-light:hover { background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 48px -10px rgba(120, 180, 255, 0.75); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(8, 12, 28, 0.35); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(16, 24, 52, 0.5); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.bottom { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: clamp(16px, 2.6vw, 28px) clamp(20px, 4vw, 48px); font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }
.bottom-right { display: inline-flex; align-items: center; gap: 10px; }
.bottom-right i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

@media (max-width: 700px) {
  .br { display: none; }
  .cta { flex-direction: column; align-items: center; }
  .btn { width: min(100%, 320px); }
  .bottom { flex-direction: column; align-items: center; gap: 6px; }
}

/* ------------------------------------------------------------------ motion */
.defs { position: absolute; }
.d1 { --d: 1.5s; } .d2 { --d: 1.7s; } .d3 { --d: 1.95s; } .d4 { --d: 2.2s; } .d5 { --d: 2.4s; }
.in { opacity: 0; transform: translateY(14px); animation: in 1.4s var(--out) var(--d, 0s) forwards; }
@keyframes in { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes reflect { to { opacity: 0.34; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-200px); } }
@keyframes breathe { 0%, 100% { opacity: 0.8; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes glint { 0%, 100% { opacity: 0; transform: translateX(-6%); } 45%, 55% { opacity: 0.9; } 50% { transform: translateX(6%); } }
@keyframes live { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}
