/*
  ESTILO: Sinal de Obra Editorial — construtivismo contemporâneo em azul técnico
  profundo e laranja de sinalização. Textura impressa, assimetria e precisão.
*/

:root {
  --navy: #07295c;
  --orange: #ff692e;
  --sand: #f4f0e8;
  --ink: #102b53;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--sand);
  font-family: "DM Sans", Arial, sans-serif;
}

.launch-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.27fr);
  background: var(--sand);
}

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

.intro-panel,
.countdown-panel {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
}

.intro-panel {
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: var(--navy);
  background: var(--sand);
}

.site-header,
.intro-footer,
.countdown-topline,
.scheduled-date {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-family: "DM Mono", monospace;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  transition: transform 180ms var(--ease-out);
}

.brand-mark:hover .brand-symbol {
  transform: rotate(-8deg);
}

.brand-mark:active .brand-symbol {
  transform: scale(0.94) rotate(-8deg);
}

.brand-symbol i {
  position: absolute;
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border: 0.22rem solid var(--orange);
}

.brand-symbol i:nth-child(1) {
  top: 0.15rem;
  left: 0.15rem;
  border-right: 0;
  border-bottom: 0;
}

.brand-symbol i:nth-child(2) {
  top: 0.15rem;
  right: 0.15rem;
  border-bottom: 0;
  border-left: 0;
}

.brand-symbol i:nth-child(3) {
  bottom: 0.15rem;
  left: 0.15rem;
  border-top: 0;
  border-right: 0;
}

.brand-symbol i:nth-child(4) {
  right: 0.15rem;
  bottom: 0.15rem;
  border-top: 0;
  border-left: 0;
}

.brand-symbol b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.34rem;
  height: 0.34rem;
  background: var(--navy);
  transform: translate(-50%, -50%);
}

.edition-label,
.footer-number,
.eyebrow,
.progress-note p,
.footer-flag,
.countdown-topline,
.countdown-heading > span,
.time-label,
.scheduled-date span,
.measure-mark,
.launch-ready-kicker {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.edition-label,
.footer-number {
  color: rgba(7, 41, 92, 0.64);
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(32rem, 100%);
  margin: auto 0;
  padding: 4rem 0 3.2rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 1.5rem;
  color: var(--orange);
}

.eyebrow-line {
  width: 2.6rem;
  height: 2px;
  background: var(--orange);
}

.intro-copy h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.25rem, 6.4vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.073em;
  line-height: 0.88;
}

.intro-copy h1 span {
  display: block;
  margin-top: 0.09em;
  color: var(--orange);
}

.intro-copy > p {
  max-width: 31rem;
  margin: 2rem 0 2.8rem;
  color: rgba(7, 41, 92, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 450;
  line-height: 1.55;
}

.progress-note {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-track {
  width: min(10rem, 30vw);
  height: 0.45rem;
  overflow: hidden;
  background: rgba(7, 41, 92, 0.12);
}

.progress-track span {
  display: block;
  width: 76%;
  height: 100%;
  background: var(--orange);
}

.progress-note p {
  margin: 0;
  color: rgba(7, 41, 92, 0.75);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.progress-note strong {
  color: var(--navy);
  font-weight: 700;
}

.intro-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(7, 41, 92, 0.16);
}

.footer-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(7, 41, 92, 0.7);
  font-size: 0.58rem;
}

.credits-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 1.15rem;
  padding-top: 0.95rem;
  color: rgba(7, 41, 92, 0.55);
  font-family: "DM Mono", monospace;
  font-size: 0.51rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.55;
}

.credits-footer a {
  color: var(--navy);
  font-weight: 700;
  text-decoration-color: rgba(255, 105, 46, 0.78);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}

.credits-footer a:hover,
.credits-footer a:focus-visible {
  color: var(--orange);
  text-decoration-color: currentColor;
}

.status-orbit {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px dashed var(--navy);
  border-radius: 50%;
}

.orange-disc {
  position: absolute;
  right: clamp(-8rem, -10vw, -3.7rem);
  bottom: clamp(4rem, 10vh, 10rem);
  width: clamp(12rem, 25vw, 20rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
}

.draft-line {
  position: absolute;
  background: rgba(7, 41, 92, 0.15);
}

.draft-line-one {
  top: 0;
  right: 22%;
  width: 1px;
  height: 21%;
}

.draft-line-two {
  right: 0;
  bottom: 15%;
  width: 18%;
  height: 1px;
}

.countdown-panel {
  color: var(--sand);
  background:
    linear-gradient(125deg, rgba(7, 41, 92, 0.13) 0%, rgba(7, 41, 92, 0.75) 100%),
    var(--navy);
}

.blueprint-art,
.blueprint-art span {
  position: absolute;
  pointer-events: none;
}

.blueprint-art {
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.045) 1px, transparent 1px);
  background-size: 14rem 14rem;
}

.blueprint-circle {
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 50%;
}

.circle-a {
  top: -23%;
  right: -16%;
  width: min(64vw, 53rem);
  height: min(64vw, 53rem);
}

.circle-b {
  top: 23%;
  right: -11%;
  width: min(44vw, 36rem);
  height: min(44vw, 36rem);
}

.blueprint-diagonal {
  right: -10%;
  bottom: 7%;
  width: 60%;
  height: 1px;
  background: rgba(244, 240, 232, 0.17);
  transform: rotate(-43deg);
  transform-origin: right center;
}

.blueprint-corner {
  right: -4rem;
  bottom: -4rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(255, 105, 46, 0.45);
  transform: rotate(45deg);
}

.countdown-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.countdown-topline {
  color: rgba(244, 240, 232, 0.86);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.live-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 105, 46, 0.15);
}

.sparkle {
  color: var(--sand);
  font-size: 1.45rem;
}

.countdown-main,
.launch-ready {
  margin: auto 0;
}

.countdown-heading {
  margin-bottom: 2.8rem;
}

.countdown-heading > span,
.launch-ready-kicker {
  color: var(--orange);
}

.countdown-heading h2,
.launch-ready h2 {
  max-width: 8ch;
  margin: 0.45rem 0 0;
  font-size: clamp(2.25rem, 4.7vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.time-grid {
  display: grid;
  max-width: 51rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 240, 232, 0.42);
  border-bottom: 1px solid rgba(244, 240, 232, 0.42);
}

.time-block {
  display: flex;
  min-height: clamp(7.5rem, 16vw, 12.8rem);
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem clamp(0.45rem, 1.8vw, 1.35rem);
  border-right: 1px solid rgba(244, 240, 232, 0.42);
}

.time-block:last-child {
  border-right: 0;
}

.time-value {
  color: var(--sand);
  font-size: clamp(2.2rem, 6.3vw, 7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.time-label {
  margin-top: 1.05rem;
  color: var(--orange);
  font-size: clamp(0.53rem, 0.8vw, 0.69rem);
}

.scheduled-date {
  gap: 1rem;
  margin-top: 1.5rem;
  color: rgba(244, 240, 232, 0.74);
}

.scheduled-date span {
  color: var(--orange);
  font-size: 0.57rem;
}

.scheduled-date strong {
  margin-right: auto;
  font-size: clamp(0.74rem, 1.2vw, 0.93rem);
  font-weight: 500;
}

.arrow-up-right {
  color: var(--orange);
  font-size: 1.45rem !important;
  line-height: 1;
}

.measure-mark {
  position: absolute;
  z-index: 2;
  color: rgba(244, 240, 232, 0.5);
}

.mark-one {
  top: 47%;
  right: 1.8rem;
  writing-mode: vertical-rl;
}

.mark-two {
  right: 2rem;
  bottom: 1.8rem;
  color: var(--orange);
  font-size: 1.4rem;
}

.launch-ready h2 {
  margin-top: 0.6rem;
}

.launch-ready p {
  margin: 1.25rem 0 0;
  color: rgba(244, 240, 232, 0.76);
  font-size: 1.1rem;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .orange-disc {
    animation: slow-drift 10s var(--ease-in-out) infinite alternate;
  }

  .intro-copy > *,
  .countdown-content > * {
    animation: fade-up 650ms var(--ease-out) both;
  }

  .intro-copy > :nth-child(2),
  .countdown-content > :nth-child(2) {
    animation-delay: 80ms;
  }

  .intro-copy > :nth-child(3),
  .countdown-content > :nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-1.3rem, -0.9rem, 0) rotate(5deg);
  }
}

@media (max-width: 980px) {
  .launch-page {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .countdown-panel {
    min-height: auto;
  }

  .intro-panel {
    min-height: 49rem;
  }

  .countdown-panel {
    min-height: 42rem;
  }

  .intro-copy {
    margin: auto 0;
  }
}

@media (max-width: 560px) {
  .intro-panel,
  .countdown-content {
    padding: 1.35rem;
  }

  .edition-label {
    display: none;
  }

  .intro-panel {
    min-height: 42rem;
  }

  .countdown-panel {
    min-height: 33rem;
  }

  .intro-copy {
    padding: 3.5rem 0 2.5rem;
  }

  .intro-copy h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

  .countdown-heading {
    margin-bottom: 1.8rem;
  }

  .countdown-heading h2 {
    font-size: 2.75rem;
  }

  .time-block {
    min-height: 6.1rem;
    padding: 0.8rem 0.3rem;
  }

  .time-value {
    font-size: clamp(2rem, 11.5vw, 3.4rem);
  }

  .time-label {
    margin-top: 0.85rem;
    font-size: 0.48rem;
    letter-spacing: 0.04em;
  }

  .scheduled-date {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
  }

  .scheduled-date strong {
    width: calc(100% - 2rem);
    font-size: 0.76rem;
  }

  .arrow-up-right {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .mark-one {
    right: 0.9rem;
  }

  .mark-two {
    right: 1.2rem;
    bottom: 1rem;
  }

  .credits-footer {
    gap: 0.35rem 0.7rem;
    font-size: 0.48rem;
  }
}
