/* The home page, as on the original azyl.ai: one screen, the harbor mark, the decoding tagline.
   (The top bar comes from bar.css and the side panels from panels.css.) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #1A1917;
  --blue:    #DCFF2E;
  --silver:  #D6D2CA;
  --ghost:   #F3F1EC;
  --rule:    #282623;
  --dim:     #4A4741;
  --muted:   #6E6A63;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ghost);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  height: 100vh;
  display: grid;
  /* the first row is where the top bar floats */
  grid-template-rows: 64px 1fr 52px;
  padding: 0 52px;
}

/* the harbor mark doubles as the way in to the founder panel */
.mark-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
}
.mark-btn:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 6px;
}
.mark-btn .arc-path { transition: stroke 0.4s; }
.mark-btn:hover .arc-path { stroke: var(--ghost); }
.mark-btn:hover .arc-dot { filter: drop-shadow(0 0 9px rgba(220,255,46,0.75)); }

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Arc draws in cleanly */
.arc-path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawArc 1.4s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}
@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}
.arc-dot {
  filter: drop-shadow(0 0 5px rgba(220,255,46,0.45));
  opacity: 0;
  transform-origin: center;
  transform: scale(0);
  animation: dotPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 1.9s forwards;
}
@keyframes dotPop {
  to { opacity: 1; transform: scale(1); }
}

/* ── WORDMARK ── */
.wordmark-row {
  display: flex;
  align-items: baseline;
}
.wordmark-azyl {
  font-size: 58px;
  font-weight: 100;
  letter-spacing: 16px;
  color: var(--ghost);
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.wordmark-ai {
  font-size: 26px;
  font-weight: 200;
  color: var(--blue);
  letter-spacing: 0;
  margin-left: 2px;
}

/* ── TAGLINE ── */
.tagline-wrap {
  min-height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.tagline-text {
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--silver);
  opacity: 0.85;
  white-space: pre;
}
.tagline-text .ch { visibility: hidden; }
.tagline-text .ch.on { visibility: visible; }
/* a character mid-decode flickers in lime before settling */
.tagline-text .ch.scr { visibility: visible; color: var(--blue); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── SCROLL CUE ── */
footer { display: flex; align-items: center; justify-content: center; }
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s;
  opacity: 0;
  animation: cueIn 1s ease 2.6s forwards;
}
.scroll-cue:hover, .scroll-cue.lit { color: var(--silver); }
.scroll-cue:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }
.scroll-cue svg { animation: bob 2.4s ease-in-out 3.6s infinite; }
@keyframes cueIn { to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* the founder panel's edge, eased in by scrolling before the panel opens */
.peek {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 64px;
  background: #201F1C;
  border-left: 1px solid var(--rule);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  pointer-events: none;
  z-index: 50;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
  .logo-wrap, .tagline-wrap, .arc-path, .arc-dot, .scroll-cue {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}

@media (max-width: 600px) {
  .page { padding: 0 28px; }
  .wordmark-azyl { font-size: 40px; letter-spacing: 10px; }
  .wordmark-ai { font-size: 20px; }
  .tagline-text { font-size: 12px; letter-spacing: 0.5px; }
}
