/* RockV — صفحهٔ «در حال ساخت»
   No build step: this file is served as-is by nginx. Fonts are self-hosted
   (visitors in Iran cannot count on Google Fonts). */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  color-scheme: dark;

  --bg: #07060d;
  --ink: #f6f3ff;
  --muted: #bdb5da;
  --faint: #8f87ad;

  --sun-1: #ffd23f;
  --sun-2: #ff7a2f;
  --sun-3: #ff2e7e;

  --tape: #ffc400;
  --tape-ink: #0b0a10;
  --amber-ink: #ffd666;

  --card: rgba(12, 9, 24, 0.6);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius: 14px;

  --font-fa: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-display: "Anton", "Vazirmatn", Impact, "Arial Narrow", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-fa);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--sun-1);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ───────────────────────── scene: sky, content, city ───────────────────────── */

.scene {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #06050c 0%,
    #0a0717 34%,
    #170a2d 56%,
    #3b0f4a 74%,
    #85204f 89%,
    #c93a58 100%
  );
}

.stars {
  position: absolute;
  inset: 0 0 40% 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #e9e3ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 160px 60px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 230px 170px, #ffd9e8 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 300px 90px, #fff 50%, transparent 51%);
  background-size: 320px 220px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
  animation: stars-breathe 7s ease-in-out infinite alternate;
}

@keyframes stars-breathe {
  from { opacity: 0.45; }
  to { opacity: 0.8; }
}

/* ───────────────────────── header ───────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  padding-top: max(20px, env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 4px 14px rgba(255, 122, 47, 0.35));
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-word b {
  font-weight: 400;
  color: var(--sun-1);
}

.domain {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* ───────────────────────── hero ───────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 5vh, 64px) var(--gutter) clamp(20px, 4vh, 40px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--amber-ink);
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.35);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tape);
  box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 196, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, 0); }
}

.wordmark {
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.6rem, 19vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  animation: rise 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wordmark .rock {
  color: var(--ink);
  text-shadow: 0 0 46px rgba(255, 46, 126, 0.28);
}

.wordmark .v {
  margin-inline-start: 0.03em;
  background: linear-gradient(180deg, var(--sun-1) 8%, var(--sun-2) 55%, var(--sun-3) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 122, 47, 0.4));
}

.tagline {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.12rem, 2.7vw, 1.5rem);
  line-height: 1.6;
  animation: rise 0.8s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lead {
  max-width: 36rem;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  animation: rise 0.8s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.build {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  width: min(100%, 740px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.build li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.build li:nth-child(1) { animation-delay: 0.3s; }
.build li:nth-child(2) { animation-delay: 0.38s; }
.build li:nth-child(3) { animation-delay: 0.46s; }

.build svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--sun-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build .t {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.5;
}

.build strong {
  font-weight: 700;
  font-size: 0.98rem;
}

.build .t span {
  font-size: 0.85rem;
}

.build .is-active .t span { color: var(--amber-ink); }
.build .is-soon .t span { color: var(--faint); }
.build .is-soon svg { stroke: var(--faint); }

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

/* ───────────────────────── city ───────────────────────── */

/* The art keeps everything important in its lower ~70%, so the top can be
   cropped on wide screens (the SVG slices from the bottom). */
.city {
  position: relative;
  height: clamp(170px, min(25vw, 33vh), 380px);
  flex: none;
}

.city-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Sun glow. Lives here rather than in the SVG, whose top gets cropped. */
.city::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: min(1000px, 150vw);
  height: 170%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 122, 47, 0.32), rgba(255, 46, 126, 0.12) 55%, transparent);
  pointer-events: none;
}

.city .tw { animation: twinkle 5s ease-in-out infinite; }
.city .tw2 { animation-delay: -1.2s; animation-duration: 6.5s; }
.city .tw3 { animation-delay: -2.7s; animation-duration: 4.2s; }
.city .tw4 { animation-delay: -3.9s; animation-duration: 7.5s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.15; }
  55% { opacity: 0.15; }
}

.city .blink { animation: blink 1.6s steps(1, end) infinite; }
.city .blink2 { animation-delay: -0.8s; }

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.15; }
}

.city .hook {
  transform-box: view-box;
  transform-origin: 1045px 164px;
  animation: sway 6s ease-in-out infinite alternate;
}

@keyframes sway {
  from { transform: rotate(-1.6deg); }
  to { transform: rotate(1.6deg); }
}

/* ───────────────────────── caution tape ───────────────────────── */

/* The wrapper clips the rotated, over-wide tape so nothing spills past the
   page edge (in RTL that would open a horizontal scroll to the left). */
.tape-wrap {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 22px 0;
  overflow: hidden;
}

.tape {
  position: relative;
  direction: ltr;
  margin: 0 -3%;
  padding: 9px 0;
  overflow: hidden;
  transform: rotate(-1.4deg);
  background: var(--tape);
  color: var(--tape-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--tape-ink) 0 10px, var(--tape) 10px 20px);
}

.tape::before { top: 0; }
.tape::after { bottom: 0; }

.tape-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 4px 0;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.4;
  animation: marquee 48s linear infinite;
}

.tape-track .en {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.tape-track i {
  width: 9px;
  height: 9px;
  background: var(--tape-ink);
  transform: rotate(45deg);
  flex: none;
}

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

/* ───────────────────────── footer ───────────────────────── */

.foot {
  padding: 16px var(--gutter) max(26px, env(safe-area-inset-bottom));
  text-align: center;
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--muted);
}

.foot p {
  margin: 0;
}

.foot-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}

/* A drawn rule, not "·": in Vazirmatn a middle dot reads like the Persian zero «۰». */
.foot .sep {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-inline: 0.7em;
  vertical-align: -0.1em;
  background: currentColor;
  opacity: 0.45;
}

.foot .nowrap,
.foot .credit a {
  white-space: nowrap;
}

.foot .credit a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.foot .credit a:hover {
  opacity: 0.7;
}

.foot .legal {
  max-width: 1100px;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--faint);
}

@media (min-width: 1000px) {
  .foot-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ───────────────────────── 404 ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 26px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--tape-ink);
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2));
  box-shadow: 0 8px 28px rgba(255, 122, 47, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 122, 47, 0.45);
}

.code {
  margin: 14px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 10rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--sun-1), var(--sun-2) 55%, var(--sun-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 680px) {
  .build {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    gap: 10px;
  }

  .build li {
    padding: 12px 14px;
  }

  .domain {
    display: none;
  }
}

@media (max-height: 640px) and (min-width: 681px) {
  .build {
    margin-top: 20px;
  }

  .city {
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
