/* Router landing — page body. Chrome (nav/footer/buttons) lives in chrome.css. */

.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; }

/* ============ HERO ============ */
.r-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: 170px 24px 120px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.r-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.r-hero-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 50% 50%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 80%, #fff 100%);
}
.r-hero-inner { position: relative; z-index: 2; max-width: 1240px; text-align: center; display: flex; flex-direction: column; align-items: center; }

.r-eyebrow {
  font-family: var(--font-dm-mono); font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.r-title {
  margin: 34px 0 0;
  font-family: var(--font-sora); font-weight: 600;
  font-size: clamp(40px, 11.5vw, 184px); line-height: 0.98; letter-spacing: -0.055em;
  color: var(--ink);
}
.r-line { display: block; white-space: nowrap; }

/* "textured" letters: a slow-moving painterly gradient in the Apotsa palette
   clipped to the glyph, framed by an editor-style selection box */
.tx {
  position: relative; display: inline-block;
  color: transparent;
  background:
    radial-gradient(circle at 20% 25%, #F0AE3C 0 14%, transparent 34%),
    radial-gradient(circle at 75% 30%, #9DB5FF 0 16%, transparent 40%),
    radial-gradient(circle at 40% 75%, #1747FF 0 12%, transparent 36%),
    radial-gradient(circle at 85% 80%, #EECDBB 0 18%, transparent 42%),
    linear-gradient(135deg, #E1F0F4, #F6F5F3 40%, #DCE4FF);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  animation: tx-flow 9s ease-in-out infinite alternate;
}
.tx-2 { animation-duration: 11s; animation-delay: -3s; }
.tx-3 { animation-duration: 8s; animation-delay: -5s; }
@keyframes tx-flow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 40%; }
  100% { background-position: 30% 100%; }
}
.tx .box {
  position: absolute; inset: 0.04em -0.04em 0.02em; border: 1.5px solid rgba(16, 21, 34, 0.55);
  pointer-events: none; animation: box-blink 7s ease-in-out infinite;
}
.tx-2 .box { animation-delay: -2.3s; }
.tx-3 .box { animation-delay: -4.6s; }
.tx .box b { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid rgba(16, 21, 34, 0.7); }
.tx .box b:nth-child(1) { left: -5px; top: -5px; }
.tx .box b:nth-child(2) { right: -5px; top: -5px; }
.tx .box b:nth-child(3) { left: -5px; bottom: -5px; }
.tx .box b:nth-child(4) { right: -5px; bottom: -5px; }
@keyframes box-blink {
  0%, 8% { opacity: 0; transform: scale(1.06); }
  14%, 70% { opacity: 1; transform: scale(1); }
  78%, 100% { opacity: 0; transform: scale(1); }
}

.r-sub {
  margin: 40px 0 0; max-width: 640px;
  font-family: var(--font-dm-sans-h2); font-weight: 400;
  font-size: clamp(18px, 1.9vw, 24px); line-height: 1.4; color: var(--ink);
}
.r-form-wrap { width: 100%; max-width: 580px; margin-top: 36px; }
.r-form {
  display: flex; gap: 6px; padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 21, 34, 0.06);
}
.r-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 0 18px; font-family: var(--font-dm-sans-h2); font-size: 17px; color: var(--ink);
}
.r-form input::placeholder { color: var(--muted); }
.r-form:focus-within { border-color: rgba(23, 71, 255, 0.45); box-shadow: 0 0 0 4px rgba(23, 71, 255, 0.08), 0 10px 30px rgba(16, 21, 34, 0.06); }
.r-form .btn { border-radius: 10px; }
.form-note { min-height: 22px; margin: 12px 0 0; font-family: var(--font-dm-sans-h2); font-size: 14px; color: var(--green); }

/* ============ COLLAB OVERLAY ============ */
.r-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.r-cursor { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.r-cursor svg { width: 18px; height: 18px; fill: var(--ink); }
.r-cursor span {
  margin-left: 12px; padding: 5px 9px; background: var(--ink); color: #fff;
  font-family: var(--font-dm-mono); font-size: 12px; letter-spacing: 0.08em;
}
.c-1 { left: 6%; top: 82%; animation: drift-1 14s ease-in-out infinite; }
.c-2 { right: 10%; top: 30%; animation: drift-2 12s ease-in-out infinite; }
.c-2 svg { fill: var(--blue); } .c-2 span { background: var(--blue); }
.c-3 { left: 9%; top: 28%; animation: drift-3 16s ease-in-out infinite; }
.c-3 svg { fill: var(--gold-deep); } .c-3 span { background: var(--gold-deep); }
.c-4 { right: 18%; top: 86%; animation: drift-1 13s ease-in-out infinite reverse; }
@keyframes drift-1 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(60px, -40px); } 66% { transform: translate(-30px, -80px); } }
@keyframes drift-2 { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-90px, 50px); } 70% { transform: translate(-30px, 110px); } }
@keyframes drift-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(80px, 60px); } }

.r-code {
  position: absolute; right: 2%; bottom: 14%; margin: 0;
  font-family: var(--font-dm-mono); font-size: 13px; line-height: 1.75;
  color: rgba(16, 21, 34, 0.24); text-transform: uppercase; letter-spacing: 0.02em;
}

/* ============ SECTION HEADING ============ */
.r-h2 {
  margin: 14px auto 0; max-width: 760px; text-align: center;
  font-family: var(--font-sora); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05; letter-spacing: -0.035em; color: var(--ink);
}

/* ============ CTA ============ */
.r-cta { padding: 100px 24px 24px; background: #fff; }
.r-cta-card {
  max-width: 1200px; margin: 0 auto; padding: 72px 32px; text-align: center; border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(23, 71, 255, 0.10), rgba(23, 71, 255, 0) 70%),
    radial-gradient(ellipse 40% 60% at 15% 100%, rgba(240, 174, 60, 0.14), rgba(240, 174, 60, 0) 70%),
    var(--bg-cream);
  border: 1px solid var(--line-2);
}
.r-cta-card .r-h2 { margin-top: 0; }
.r-cta-card p { margin: 16px auto 32px; max-width: 520px; font-family: var(--font-dm-sans-h2); font-size: 18px; color: var(--muted); line-height: 1.5; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .r-code { display: none; }
}
@media (max-width: 900px) {
  .r-cursor { display: none; }
}
@media (max-width: 600px) {
  .r-hero { padding: 130px 16px 80px; }
  .r-form { flex-direction: column; }
  .r-form input { height: 48px; }
  .tx .box b { width: 7px; height: 7px; }
  .tx .box b:nth-child(1) { left: -4px; top: -4px; }
  .tx .box b:nth-child(2) { right: -4px; top: -4px; }
  .tx .box b:nth-child(3) { left: -4px; bottom: -4px; }
  .tx .box b:nth-child(4) { right: -4px; bottom: -4px; }
  .r-cta { padding: 64px 16px 16px; }
  .r-cta-card { padding: 56px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tx, .tx .box, .r-cursor { animation: none; }
  .tx .box { opacity: 1; }
}
