/* timeserial.com — brand palette
   navy #041b34 · deep #1e3668 · blue #1c75bc · cyan #4cbbec / #3fc7f4 · white */

:root {
  --navy: #041b34;
  --deep: #1e3668;
  --blue: #1c75bc;
  --cyan: #4cbbec;
  --cyan-bright: #3fc7f4;
  --ink: #eaf2fb;
  --muted: #9fb6d4;
  --amber: #f5a623;
  --maxw: 640px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 50% -10%, #0a2a4d 0, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #06223f 45%, var(--deep) 100%);
  background-color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft moving aurora glow built from the brand blues */
.bg-aurora {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 20% 25%, rgba(76, 187, 236, 0.18), transparent 60%),
    radial-gradient(38vmax 38vmax at 82% 18%, rgba(28, 117, 188, 0.20), transparent 62%),
    radial-gradient(46vmax 46vmax at 70% 88%, rgba(63, 199, 244, 0.12), transparent 60%);
  filter: blur(8px);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* Subtle grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 75%);
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 7vh 24px 4vh;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow:
    0 18px 50px rgba(4, 27, 52, 0.55),
    0 0 0 1px rgba(76, 187, 236, 0.18) inset;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.wordmark {
  margin-top: 22px;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  padding: 7px 15px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(76, 187, 236, 0.08);
  border: 1px solid rgba(76, 187, 236, 0.28);
  border-radius: 999px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 0 rgba(63, 199, 244, 0.7);
  animation: pulse 2s infinite;
}

.pulse-amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
  animation: pulse-amber 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 199, 244, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(63, 199, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 199, 244, 0); }
}

@keyframes pulse-amber {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.headline {
  margin: 20px 0 0;
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #cfe3f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtext {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 13px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(63, 199, 244, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(63, 199, 244, 0.42);
}

.cta-arrow { transition: transform 0.18s ease; }
.cta:hover .cta-arrow { transform: translateX(3px); }

.langbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
}

.langbar a {
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.langbar a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.langbar a[aria-current="true"] {
  color: #fff;
  background: rgba(76, 187, 236, 0.16);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 14px 16px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(159, 182, 212, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora, .logo, .card, .pulse, .pulse-amber { animation: none; }
}
