/* FurFoxAI — landing page. */

.landing-body {
  background: var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 3, 15, 0.88);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #0c0616;
  border: 3px solid var(--line-2);
  box-shadow: 3px 3px 0 var(--shadow);
}

.brand__mark svg {
  width: 28px;
  height: 28px;
}

.brand__text {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--shadow);
}

.brand__text sup {
  color: var(--pink);
  font-size: 0.72em;
  vertical-align: super;
}

.brand:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.12s steps(2);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.api-status i {
  width: 9px;
  height: 9px;
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(110, 231, 168, 0.16), 0 0 12px rgba(110, 231, 168, 0.55);
  animation: blink 1.8s steps(1) infinite;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 0;
  border-bottom: 3px solid var(--line);
  background:
    radial-gradient(ellipse 60% 55% at 74% 18%, rgba(109, 40, 217, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(9, 3, 17, 0.4), var(--bg) 88%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__stars {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='%23d8b4fe'%3E%3Crect x='14' y='22' width='2' height='2'/%3E%3Crect x='62' y='12' width='2' height='2'/%3E%3Crect x='118' y='34' width='2' height='2'/%3E%3Crect x='158' y='18' width='3' height='3'/%3E%3Crect x='36' y='74' width='2' height='2'/%3E%3Crect x='94' y='62' width='3' height='3'/%3E%3Crect x='142' y='88' width='2' height='2'/%3E%3Crect x='18' y='130' width='3' height='3'/%3E%3Crect x='76' y='118' width='2' height='2'/%3E%3Crect x='126' y='146' width='2' height='2'/%3E%3Crect x='168' y='112' width='2' height='2'/%3E%3Crect x='52' y='162' width='2' height='2'/%3E%3C/g%3E%3Cg fill='%23ff9ecb'%3E%3Crect x='96' y='26' width='2' height='2'/%3E%3Crect x='28' y='102' width='2' height='2'/%3E%3Crect x='150' y='64' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.75;
  animation: twinkle 5s steps(2) infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.42;
  }
}

.hero__moon {
  position: absolute;
  top: 44px;
  right: 8%;
  width: clamp(64px, 8vw, 110px);
  filter: drop-shadow(0 0 26px rgba(216, 180, 254, 0.25));
}

.hero__castle {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: min(1040px, 96%);
  transform: translateX(-50%);
  opacity: 0.62;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.18));
}

.hero__fog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg) 88%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding-bottom: 88px;
}

.hero__copy {
  padding-top: 12px;
}

.hero__title {
  margin: 22px 0 0;
  font-family: var(--font-pixel);
  font-size: clamp(23px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--shadow);
}

.hero__title .accent-text {
  position: relative;
  color: var(--violet-soft);
  text-shadow: 5px 5px 0 #2c0e4d;
  white-space: nowrap;
}

.hero__lede {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
}

.hero__lede b {
  color: var(--text);
  font-weight: 700;
}

.hero__lede code {
  padding: 2px 6px;
  background: #0b0515;
  border: 2px solid var(--line);
  color: var(--lav);
  font-size: 0.9em;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__badges li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  padding: 10px 14px;
  background: rgba(13, 6, 23, 0.72);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(4, 1, 10, 0.6);
}

.hero__badges b {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--violet-soft);
  line-height: 1.4;
}

.hero__badges span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 18px;
  color: var(--dim);
  font-size: 15px;
}

.hero__note code {
  color: var(--lav);
}

/* ---------- auth card ---------- */

.auth-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1c0d31, #10071e 62%);
  border-color: var(--line-2);
  box-shadow: 10px 10px 0 rgba(4, 1, 10, 0.85), 0 0 0 2px #050109,
    0 0 60px rgba(124, 58, 237, 0.15);
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.04);
  margin: 4px;
}

.auth-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--line);
  background: rgba(8, 3, 15, 0.62);
}

.auth-card__portrait {
  position: relative;
  display: grid;
  place-items: center;
  height: 176px;
  overflow: hidden;
  border-bottom: 3px solid var(--line-2);
  background:
    linear-gradient(rgba(168, 85, 247, 0.09) 1px, transparent 1px) 0 0 / 100% 12px,
    linear-gradient(90deg, rgba(168, 85, 247, 0.09) 1px, transparent 1px) 0 0 / 12px 100%,
    radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.38), transparent 65%),
    #0d0618;
}

.auth-card__portrait::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 210px;
  height: 26px;
  transform: translateX(-50%);
  background: rgba(168, 85, 247, 0.18);
  border: 2px solid rgba(216, 180, 254, 0.22);
}

.auth-card__portrait img {
  position: relative;
  z-index: 1;
  width: 138px;
  height: 138px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 rgba(4, 1, 10, 0.55));
  animation: bob 2.4s steps(2) infinite;
}

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

.auth-card__level {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--violet);
  color: #150622;
  border: 2px solid #e2ccff;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.auth-card__body {
  padding: 24px 26px 26px;
}

.auth-card__body h2 {
  font-family: var(--font-pixel);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--shadow);
}

.auth-card__body > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.auth-form {
  margin-top: 18px;
}

.auth-form .form-label {
  margin-top: 0;
}

.auth-form .form-input {
  font-size: 19px;
  letter-spacing: 0.04em;
}

.auth-form .btn {
  margin-top: 14px;
}

.auth-form .form-error:empty {
  display: none;
}

.auth-card__secure {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
}

.auth-card__secure svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--violet-soft);
}

.auth-card__secure b {
  display: block;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.auth-card__secure span span {
  display: block;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.35;
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: #0a0413;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 28px;
  white-space: nowrap;
}

.ticker span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticker i {
  color: var(--violet);
  font-style: normal;
  font-size: 14px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: 92px 0;
}

.section--line {
  border-top: 3px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-head__copy h2 {
  margin-top: 18px;
  font-family: var(--font-pixel);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--shadow);
}

.section-head__copy p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.section-head__side {
  flex: none;
  padding-bottom: 6px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 24px 22px 26px;
  background: rgba(19, 10, 34, 0.75);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 rgba(4, 1, 10, 0.7);
}

.feature:hover {
  border-color: var(--line-3);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: #0b0515;
  border: 3px solid var(--line-2);
  color: var(--violet-soft);
  box-shadow: 4px 4px 0 var(--shadow);
}

.feature__icon svg {
  width: 30px;
  height: 30px;
}

.feature h3 {
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--text);
}

.feature p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 3px solid var(--line);
  background: rgba(13, 6, 23, 0.68);
  box-shadow: 8px 8px 0 rgba(4, 1, 10, 0.75);
}

.step {
  position: relative;
  padding: 34px 30px 36px;
}

.step + .step {
  border-left: 3px solid var(--line);
}

.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-pixel);
  font-size: 26px;
  line-height: 1;
  color: var(--violet);
  text-shadow: 3px 3px 0 #2c0e4d;
}

.step h3 {
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-transform: uppercase;
}

.step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.step code {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  background: #080310;
  border: 2px solid var(--line);
  color: var(--lav);
  font-size: 14px;
  word-break: break-all;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(168, 85, 247, 0.3), transparent 68%),
    #0a0413;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23d8b4fe' opacity='.4'%3E%3Crect x='20' y='30' width='2' height='2'/%3E%3Crect x='120' y='18' width='3' height='3'/%3E%3Crect x='190' y='70' width='2' height='2'/%3E%3Crect x='70' y='112' width='2' height='2'/%3E%3Crect x='160' y='150' width='3' height='3'/%3E%3Crect x='34' y='188' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.8;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta__copy h2 {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--shadow);
}

.cta__copy p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: none;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 54px 0 40px;
  background: #06020c;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 2px solid var(--line);
}

.site-footer__brand p {
  max-width: 340px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 16px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--pink-soft);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-footer__bottom b {
  color: var(--violet-soft);
  font-weight: 700;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-bottom: 64px;
  }
  .hero__copy {
    max-width: 680px;
  }
  .auth-card {
    width: min(520px, 100%);
  }
  .hero__castle {
    opacity: 0.5;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step + .step {
    border-left: 0;
    border-top: 3px solid var(--line);
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .section {
    padding: 68px 0;
  }
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    min-height: 70px;
    gap: 12px;
  }
  .api-status {
    display: none;
  }
  .site-header__right {
    gap: 0;
  }
  .brand__text {
    font-size: 13px;
  }
  .brand__mark {
    width: 38px;
    height: 38px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero__title {
    font-size: clamp(20px, 6.9vw, 30px);
  }
  .hero__badges li {
    min-width: 96px;
    padding: 8px 11px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .auth-card__body {
    padding: 20px 18px 22px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head__side {
    display: none;
  }
  .section-head__copy h2 {
    font-size: 20px;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
