/* Public landing — separate from panel Inter stack */
:root {
  --land-bg0: #0f1114;
  --land-bg1: #1a1512;
  --land-fg: #f4efe8;
  --land-muted: rgba(244, 239, 232, 0.68);
  --land-accent: #ff6a4c;
  --land-accent-soft: rgba(255, 106, 76, 0.18);
  --land-line: rgba(244, 239, 232, 0.12);
  --land-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --land-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

.landing {
  min-height: 100vh;
  margin: 0;
  color: var(--land-fg);
  font-family: var(--land-body);
  background:
    radial-gradient(ellipse 90% 60% at 12% -10%, rgba(255, 106, 76, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(255, 160, 90, 0.12), transparent 50%),
    linear-gradient(165deg, var(--land-bg0) 0%, var(--land-bg1) 48%, #12151a 100%);
  background-attachment: fixed;
}

.landing__wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.landing__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 12px;
}

.landing__nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--land-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--land-fg);
  text-decoration: none;
}

.landing__nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.landing__nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.9rem;
}

.landing__nav-links a {
  color: var(--land-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing__nav-links a:hover {
  color: var(--land-fg);
}

.landing__nav-cta {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.landing__hero {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 72px;
  position: relative;
}

.landing__hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 76, 0.22), transparent 68%);
  pointer-events: none;
  animation: land-glow 8s ease-in-out infinite alternate;
}

@keyframes land-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-24px, 18px) scale(1.08); opacity: 1; }
}

.landing__hero-logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  margin: 0 0 20px;
  background: rgba(255, 255, 255, 0.08);
  animation: land-rise 0.7s ease-out both;
}

.landing__brand {
  font-family: var(--land-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  max-width: 12ch;
  animation: land-rise 0.7s ease-out both;
}

.landing__headline {
  font-family: var(--land-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 18ch;
  animation: land-rise 0.7s ease-out 0.08s both;
}

.landing__sub {
  margin: 0 0 36px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--land-muted);
  animation: land-rise 0.7s ease-out 0.14s both;
}

.landing__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  animation: land-rise 0.7s ease-out 0.2s both;
}

.landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 4px;
  font-family: var(--land-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.landing__btn--primary {
  background: var(--land-accent);
  color: #191919;
}

.landing__btn--primary:hover {
  background: #ff8268;
  transform: translateY(-1px);
}

.landing__btn--ghost {
  color: var(--land-fg);
  border-color: var(--land-line);
  background: transparent;
}

.landing__btn--ghost:hover {
  border-color: rgba(244, 239, 232, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.landing__steps {
  padding: 56px 0 24px;
  border-top: 1px solid var(--land-line);
}

.landing__steps-title {
  font-family: var(--land-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.landing__steps-sub {
  margin: 0 0 28px;
  color: var(--land-muted);
  max-width: 36rem;
  line-height: 1.5;
}

.landing__steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.landing__steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 14px;
  align-items: start;
}

.landing__step-num {
  font-family: var(--land-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--land-accent);
  line-height: 1.2;
}

.landing__step-title {
  font-weight: 600;
  margin: 0 0 4px;
}

.landing__step-body {
  margin: 0;
  color: var(--land-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing__icp,
.landing__flow,
.landing__pricing {
  padding: 56px 0 24px;
  border-top: 1px solid var(--land-line);
}

.landing__price-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 36rem;
}

.landing__price-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--land-fg);
  font-size: 0.98rem;
  line-height: 1.45;
}

.landing__price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--land-accent);
}

.landing__icp-grid,
.landing__flow-grid {
  display: grid;
  gap: 16px;
}

.landing__icp-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing__flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing__icp-card,
.landing__mock {
  border: 1px solid var(--land-line);
  border-radius: 10px;
  padding: 18px 18px 20px;
  background: rgba(255, 255, 255, 0.03);
}

.landing__mock-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--land-muted);
  margin-bottom: 12px;
}

.landing__mock-bubble {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px 10px 10px 4px;
  background: rgba(255, 106, 76, 0.16);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 92%;
}

.landing__mock-bubble--out {
  margin-left: auto;
  border-radius: 10px 10px 4px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.landing__mock-card {
  padding: 12px 0 0;
}

.landing__docs {
  margin-top: 28px;
}

.landing__docs a {
  color: var(--land-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.landing__docs a:hover {
  border-bottom-color: var(--land-accent);
}

.landing__footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--land-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  font-size: 0.82rem;
}

.landing__footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--land-display);
  font-weight: 700;
  color: var(--land-muted);
}

.landing__footer-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
}

.landing__footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.landing__footer a {
  color: var(--land-muted);
  text-decoration: none;
}

.landing__footer a:hover {
  color: var(--land-fg);
}

.landing__docs-token {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 16px 0 28px;
}

.landing__docs-token .landing__step-body {
  margin: 0;
  max-width: 36rem;
}

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

.landing__nav {
  gap: 16px;
  flex-wrap: wrap;
}

.landing__lang-wrap {
  display: inline-flex;
}

.landing__lang {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--land-fg);
  border: 1px solid var(--land-line);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--land-body);
  font-size: 0.82rem;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.landing__prose {
  padding: 28px 0 8px;
  max-width: 720px;
}

.landing__prose h1 {
  font-family: var(--land-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.landing__prose h2 {
  font-family: var(--land-display);
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.landing__prose p,
.landing__lead {
  color: var(--land-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.landing__lead {
  font-size: 1.02rem;
}

.landing__code {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 12px;
  border: 1px solid var(--land-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--land-fg);
  resize: vertical;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}

.landing__status-grid {
  margin: 8px 0 24px;
}

.landing__status-value {
  font-family: var(--land-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.landing__status-ok { color: #86efac; font-weight: 700; }
.landing__status-down { color: #fca5a5; font-weight: 700; }

.landing__incidents {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.landing__incidents li {
  padding: 12px 0;
  border-bottom: 1px solid var(--land-line);
  color: var(--land-muted);
  font-size: 0.95rem;
}

.landing__incident-body {
  margin-top: 6px;
  color: var(--land-muted);
}

.landing__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.landing__auth {
  max-width: 420px;
  margin: 32px auto 48px;
}

.landing__card {
  border: 1px solid var(--land-line);
  border-radius: 12px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
}

.landing__auth-logo {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.08);
}

.landing__auth-forgot {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.landing__auth-forgot a {
  color: var(--land-accent);
  text-decoration: none;
}

.landing__auth-title {
  font-family: var(--land-display);
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.landing__auth-sub {
  color: var(--land-muted);
  line-height: 1.5;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.landing__error {
  color: #fca5a5;
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.landing__ok {
  color: #bbf7d0;
  line-height: 1.5;
  margin: 0 0 8px;
  font-size: 1rem;
}

.landing__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.landing__tab {
  flex: 1;
  background: transparent;
  color: var(--land-muted);
  border: 1px solid var(--land-line);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--land-body);
  font-size: 0.88rem;
  cursor: pointer;
}

.landing__tab[aria-pressed="true"] {
  color: var(--land-fg);
  border-color: rgba(244, 239, 232, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.landing-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--land-muted);
  font-size: 0.85rem;
}

.landing-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--land-line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--land-fg);
  font-family: var(--land-body);
  font-size: 0.98rem;
}

.landing-field input:focus {
  outline: 2px solid var(--land-accent);
  outline-offset: 1px;
}

.landing-field small {
  color: var(--land-muted);
  font-size: 0.8rem;
}

.landing__note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--land-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--land-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.landing-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--land-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 8px 0 16px;
}

.landing-check a,
.landing__auth-foot a {
  color: var(--land-accent);
  text-decoration: none;
}

.landing__btn--wide {
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
}

.landing__auth-foot {
  margin: 22px 0 0;
  color: var(--land-muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--land-line);
  border-radius: 8px;
  background: #1a1512;
  color: var(--land-muted);
  font-size: 0.88rem;
}
.cookie-banner[hidden] { display: none; }

@media (max-width: 860px) {
  .landing__icp-grid,
  .landing__flow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing {
    background-attachment: scroll;
  }
  .landing__wrap {
    padding: 0 max(18px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
  .landing__hero { min-height: auto; padding: 36px 0 56px; }
  .landing__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .landing__nav-links {
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    font-size: 0.88rem;
    padding-bottom: 4px;
  }
  .landing__nav-links a,
  .landing__lang-wrap {
    flex-shrink: 0;
  }
  .landing__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .landing__ctas .landing__btn {
    width: 100%;
  }
  .landing-field input,
  .landing__lang,
  .landing__tab {
    font-size: 16px;
  }
  .landing__footer {
    gap: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__hero::before,
  .landing__hero-logo,
  .landing__brand,
  .landing__headline,
  .landing__sub,
  .landing__ctas {
    animation: none;
  }
}
