/* landing.css - Public start page. */

:root {
  --landing-ink: #ffffff;
  --landing-muted: rgba(255, 255, 255, 0.74);
  --landing-panel: rgba(8, 12, 49, 0.72);
  --landing-panel-strong: rgba(7, 11, 42, 0.9);
  --landing-line: rgba(255, 255, 255, 0.18);
  --landing-accent: #00c7d9;
  --landing-accent-soft: rgba(0, 199, 217, 0.18);
  --landing-warm: #f4d35e;
  --landing-font: "Aptos Display", "Aptos", "Source Sans 3", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--landing-ink);
  font-family: var(--landing-font);
  background-color: #080b2f;
  background-image:
    linear-gradient(115deg, rgba(4, 7, 32, 0.95) 0%, rgba(4, 7, 32, 0.68) 44%, rgba(6, 9, 42, 0.35) 100%),
    url("../images/landing-background.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  body {
    background-image:
      linear-gradient(115deg, rgba(4, 7, 32, 0.95) 0%, rgba(4, 7, 32, 0.68) 44%, rgba(6, 9, 42, 0.35) 100%),
      image-set(
        url("../images/landing-background.webp") type("image/webp"),
        url("../images/landing-background.png") type("image/png")
      );
  }
}

body::before,
body::after {
  position: fixed;
  pointer-events: none;
  content: "";
  z-index: 0;
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 199, 217, 0.22), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(244, 211, 94, 0.14), transparent 20rem);
  mix-blend-mode: screen;
}

body::after {
  width: 34rem;
  height: 34rem;
  right: -12rem;
  bottom: -15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.landing-shell,
.landing-topbar,
.landing-details,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-topbar-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.24));
}

.landing-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* .landing-logo-link:hover {
  opacity: 0.84;
  transform: translateY(-1px);
} */

.landing-version {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 11, 42, 0.48);
}

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 208px);
  min-height: calc(100svh - 208px);
  margin: 0 auto;
  padding: 24px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: center;
  transition: align-items 0.2s ease;
}

body.workflow-visible .landing-shell {
  min-height: auto;
  align-items: stretch;
}

.hero-panel,
.timer-preview,
.detail-card {
  border: 1px solid var(--landing-line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.hero-panel {
  min-height: 520px;
  padding: clamp(24px, 3.4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 36px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--landing-panel);
}

.landing-side {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.workflow-visible .landing-side {
  justify-content: flex-start;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-brand div {
  display: grid;
  gap: 4px;
}

.brand-kicker {
  color: var(--landing-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-brand strong {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.03em;
}

.hero-content {
  max-width: 680px;
  padding-top: clamp(32px, 4.5vw, 58px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #bff8ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 199, 217, 0.42);
  border-radius: 999px;
  background: var(--landing-accent-soft);
}

.landing-title,
.hero-content h1 {
  margin: 0;
  max-width: 680px;
  color: var(--landing-ink);
  font-size: clamp(2.55rem, 5.5vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.landing-subtitle {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--landing-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-start,
.btn-secondary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-start {
  min-width: 210px;
  color: #04122d;
  border: 0;
  background:
    linear-gradient(135deg, #ffffff 0%, #d9fbff 48%, var(--landing-accent) 100%);
  box-shadow: 0 18px 40px rgba(0, 199, 217, 0.22);
}

.btn-secondary {
  color: var(--landing-ink);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.btn-start:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-start:focus-visible,
.btn-secondary:focus-visible,
.landing-logo-link:focus-visible,
.landing-footer a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

.btn-start:hover {
  box-shadow: 0 24px 46px rgba(0, 199, 217, 0.3);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.timer-preview {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 32px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)),
    var(--landing-panel-strong);
  overflow: hidden;
  will-change: transform;
  transition: padding 0.65s ease, border-radius 0.65s ease;
}

body.workflow-visible .timer-preview {
  padding: clamp(16px, 1.8vw, 20px);
  border-radius: 24px;
}

.timer-preview::before {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 199, 217, 0.23), transparent 15rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.timer-preview > * {
  position: relative;
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--landing-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-status {
  padding: 7px 10px;
  color: #05202a;
  border-radius: 999px;
  background: var(--landing-warm);
}

.preview-time {
  margin: 44px 0 20px;
  font-size: clamp(3.1rem, 5.2vw, 4.9rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  transition: margin 0.65s ease, font-size 0.65s ease;
}

body.workflow-visible .preview-time {
  margin: 18px 0 12px;
  font-size: clamp(2.15rem, 3.55vw, 3.05rem);
}

.preview-progress {
  height: 14px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: height 0.65s ease, padding 0.65s ease;
}

body.workflow-visible .preview-progress {
  height: 10px;
  padding: 2px;
}

.preview-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4d35e, #00c7d9);
  box-shadow: 0 0 28px rgba(0, 199, 217, 0.32);
}

.preview-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  transition: gap 0.65s ease, margin 0.65s ease;
}

body.workflow-visible .preview-meta {
  gap: 8px;
  margin-top: 12px;
}

.preview-meta div {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  transition: padding 0.65s ease, border-radius 0.65s ease;
}

body.workflow-visible .preview-meta div {
  padding: 8px 10px;
  border-radius: 15px;
}

.preview-meta span,
.detail-number {
  display: block;
  color: var(--landing-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-meta strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  max-height: 4.8rem;
  overflow: hidden;
  transition: max-height 0.55s ease, margin 0.55s ease, opacity 0.35s ease;
}

body.workflow-visible .preview-note {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

.landing-details {
  width: 100%;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-12px);
  transition: max-height 0.62s ease, margin 0.62s ease, opacity 0.32s ease, transform 0.5s ease, visibility 0.62s step-end;
}

body.workflow-visible .landing-details {
  max-height: 900px;
  margin: 35px 0 0;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition: max-height 0.62s ease, margin 0.62s ease, opacity 0.38s ease 0.12s, transform 0.5s ease 0.08s, visibility 0s step-start;
}

.workflow-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body.workflow-visible .workflow-title {
  opacity: 1;
  transform: translateY(0);
}

.workflow-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.detail-card {
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(7, 11, 42, 0.62);
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.45s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

body.workflow-visible .detail-card {
  opacity: 1;
  transform: translateY(0);
}

body.workflow-visible .detail-card:nth-child(1) {
  transition-delay: 0.12s;
}

body.workflow-visible .detail-card:nth-child(2) {
  transition-delay: 0.2s;
}

body.workflow-visible .detail-card:nth-child(3) {
  transition-delay: 0.28s;
}

body.workflow-visible .detail-card:nth-child(4) {
  transition-delay: 0.36s;
}

.detail-card h3 {
  margin: 6px 0 4px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.detail-card p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.86rem;
  line-height: 1.36;
}

.detail-number {
  color: #bff8ff;
}

.landing-footer {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  text-align: center;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.landing-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .landing-topbar {
    margin-top: 18px;
  }

  .landing-shell {
    min-height: auto;
    padding-top: 20px;
    grid-template-columns: 1fr;
  }

  body.workflow-visible .landing-shell {
    align-items: start;
  }

  .hero-panel {
    min-height: auto;
  }

  .landing-side {
    min-height: auto;
  }

  .hero-content {
    padding-top: 42px;
  }

  .timer-preview {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .landing-topbar,
  .landing-shell,
  .landing-footer {
    width: min(100% - 24px, 1180px);
  }

  .landing-topbar {
    margin-top: 12px;
  }

  .landing-topbar-logo {
    height: 38px;
  }

  .landing-version {
    font-size: 0.7rem;
  }

  .landing-shell {
    padding: 12px 0 18px;
    gap: 14px;
  }

  .hero-panel,
  .timer-preview,
  .detail-card {
    border-radius: 24px;
  }

  .landing-brand {
    align-items: flex-start;
  }

  .brand-kicker {
    font-size: 0.68rem;
  }

  .hero-content {
    padding-top: 42px;
  }

  .landing-title,
  .hero-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .landing-subtitle {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .btn-start,
  .btn-secondary {
    width: 100%;
  }

  .preview-time {
    margin-top: 32px;
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  body.workflow-visible .preview-time {
    margin-top: 20px;
    font-size: clamp(2.45rem, 11vw, 3.3rem);
  }

  .preview-meta {
    grid-template-columns: 1fr;
  }

  body.workflow-visible .preview-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.workflow-visible .preview-meta div {
    padding: 9px 8px;
  }

  body.workflow-visible .preview-meta span {
    font-size: 0.64rem;
  }

  body.workflow-visible .preview-meta strong {
    font-size: 0.9rem;
  }

  .detail-card {
    padding: 15px 16px;
  }

  .landing-footer {
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-start,
  .btn-secondary,
  .timer-preview,
  .preview-time,
  .preview-progress,
  .preview-meta,
  .preview-meta div,
  .preview-note,
  .landing-details,
  .workflow-title,
  .detail-card {
    transition: none;
  }

  .workflow-title,
  .detail-card {
    transform: none;
  }
}

.landing-version.is-beta {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(7, 11, 42, 0.48);
  cursor: pointer;
}

.landing-version.is-beta:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(7, 11, 42, 0.62);
}

.landing-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(8px);
}

.landing-popup-content {
  width: min(560px, 100%);
  padding: 28px 32px;
  color: var(--color-text);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.landing-popup-content h2 {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 1.28rem;
}

.landing-popup-content p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.landing-popup-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.landing-popup-buttons .btn-start {
  min-width: auto;
  min-height: 44px;
  padding: 10px 22px;
}

/* ── Coming-soon tag ─────────────────────────────────────── */

.coming-soon {
  color: var(--landing-warm);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
