/* ============================================
   Trasi — tokens
   ============================================ */
:root{
  --bg:        #0A1918;
  --bg-soft:   #0E211F;
  --mint:      #79D9AA;
  --mint-dim:  #4C8F76;
  --coral:     #F0704C;
  --lavender:  #C9A8F5;
  --text:      #EAF3EF;
  --text-dim:  #9FB6B0;
  --line:      rgba(234, 243, 239, 0.10);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;
}

*{ box-sizing: border-box; }

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

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================
   Background layers
   ============================================ */
#network{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #0F2622 0%, #0A1918 55%, #08120F 100%);
}

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

/* ============================================
   Stage / layout
   ============================================ */
.stage{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 5vh;
}

/* ---- Mark ---- */
.mark-row{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.logomark{
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.stroke-s{
  stroke: var(--mint);
  stroke-width: 24;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw-s 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.dot{
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: pop-dot 0.5s ease-out 1.5s forwards;
}
.dot--lavender{ fill: var(--lavender); animation-delay: 1.55s; }
.dot--coral{ fill: var(--coral); animation-delay: 1.7s; }

@keyframes draw-s{
  to{ stroke-dashoffset: 0; }
}
@keyframes pop-dot{
  0%{ opacity: 0; transform: scale(0.2); }
  70%{ opacity: 1; transform: scale(1.15); }
  100%{ opacity: 1; transform: scale(1); }
}

.wordmark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ---- Eyebrow ---- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mint);
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  opacity: 0.9;
}

.eyebrow-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(240, 112, 76, 0.6);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping{
  0%   { box-shadow: 0 0 0 0 rgba(240, 112, 76, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(240, 112, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 112, 76, 0); }
}

/* ---- Headline ---- */
.headline{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  background: linear-gradient(100deg, var(--text) 40%, var(--mint) 70%, var(--lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline-cursor{
  display: inline-block;
  width: 0.09em;
  height: 0.72em;
  margin-left: 0.12em;
  background: var(--coral);
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}

/* ---- Subline ---- */
.subline{
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 34rem;
  margin: 0 0 2.4rem;
}

/* ---- Notify form ---- */
.notify{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 26rem;
  text-align: left;
  margin: 0 0 0.9rem;
}

.field-label{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0.3rem 0 -0.1rem;
}
.field-label:first-child{ margin-top: 0; }

.notify input,
.notify textarea{
  width: 100%;
  background: rgba(234, 243, 239, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  resize: vertical;
}

.notify input{ border-radius: 999px; }

.notify input::placeholder,
.notify textarea::placeholder{ color: var(--text-dim); }

.notify input:focus,
.notify textarea:focus{
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(121, 217, 170, 0.18);
}

.notify button{
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #08120F;
  background: var(--mint);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.notify button:hover{ background: #8FE3B7; transform: translateY(-1px); }
.notify button:focus-visible{
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

.notify-feedback{
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--lavender);
  margin: 0 0 2.4rem;
}

/* ---- Footer ---- */
.foot{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.7;
}
.foot-sep{ opacity: 0.5; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 520px){
  .notify button{ width: 100%; }
  .wordmark{ font-size: 1.6rem; }
  .logomark{ width: 46px; height: 46px; }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce){
  .stroke-s{ animation: none; stroke-dashoffset: 0; }
  .dot{ animation: none; opacity: 1; }
  .eyebrow-dot{ animation: none; }
  .headline-cursor{ animation: none; opacity: 1; }
}
