/* Vitrimax landing — MaxAuthor Hub visual language */
:root {
  --hub-bg: #0b1020;
  --hub-bg-hero: #0f172a;
  --hub-surface: #141c2e;
  --hub-surface-elevated: #1a2540;
  --hub-border: rgba(100, 116, 139, 0.45);
  --hub-text: #f1f5f9;
  --hub-text-muted: #94a3b8;
  --hub-text-dim: #64748b;
  --hub-accent: #4f8cff;
  --hub-accent-soft: #93c5fd;
  --hub-accent-glow: rgba(79, 140, 255, 0.28);
  --hub-success: #34d399;
  --hub-radius: 1rem;
  --hub-font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.landing-mode {
  margin: 0;
  font-family: var(--hub-font);
  color: var(--hub-text);
  background: var(--hub-bg);
  line-height: 1.5;
  min-height: 100vh;
  color-scheme: dark;
}
body.landing-mode #landing { display: block; }
body.landing-mode #app { display: none !important; }
body.hub-mode #landing { display: none !important; }
body.hub-mode #app { display: grid !important; }

#landing .bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(79, 140, 255, 0.16), transparent 58%),
    linear-gradient(180deg, var(--hub-bg-hero) 0%, var(--hub-bg) 52%, #080c18 100%);
}

#landing .wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

#landing header.land-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 0;
}
#landing .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--hub-text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
#landing .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid var(--hub-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
#landing .mark img,
#landing .mark svg { width: 28px; height: 28px; display: block; }
#landing .land-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#landing .land-nav > a:not(.nav-cta) {
  color: var(--hub-text-muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}
#landing .land-nav > a:not(.nav-cta):hover { color: var(--hub-accent-soft); }
#landing .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  background: var(--hub-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px var(--hub-accent-glow);
}
#landing .nav-cta:hover { filter: brightness(1.06); }
#landing .nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hub-text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
#landing .nav-login:hover { color: var(--hub-text); }

#landing .hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: 2rem 0 3rem;
}
#landing .hero-copy { max-width: 38rem; }
#landing .brand-hero {
  display: none;
}
#landing .hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
#landing .hero h1 .accent {
  color: var(--hub-accent-soft);
}
#landing .lead {
  margin: 0 0 1.35rem;
  color: var(--hub-text-muted);
  font-size: 1.05rem;
  max-width: 36ch;
}
#landing .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  align-items: center;
}
#landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
#landing .btn-hero {
  padding: 1rem 1.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
#landing .btn-primary {
  background: var(--hub-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 140, 255, 0.22);
}
#landing .btn-primary:hover { filter: brightness(1.06); }
#landing .how-cta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-start;
}
#landing .btn-ghost {
  background: transparent;
  color: var(--hub-text);
  border-color: var(--hub-border);
}
#landing .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.55);
}
#landing .auth-note {
  margin: 0;
  color: var(--hub-text-dim);
  font-size: 0.85rem;
}
#landing .land-nav .nav-cta {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.login-gate-card .hint { margin: 0.55rem 0 0.75rem; }
.login-gate-start,
.login-gate-returning { margin-top: 0.35rem; }
.login-gate-bots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.login-gate-bots .btn { flex: 1 1 140px; text-align: center; text-decoration: none; }
.login-gate-card .btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  padding: 0.95rem 1.1rem;
  font-size: 1.02rem;
}
.login-gate-alt {
  display: inline-block;
  margin: 0.15rem 0 0.85rem;
  color: var(--hub-accent-soft, #93c5fd);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.login-gate-alt:hover { text-decoration: underline; }
.login-gate-more {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 0.75rem;
}
.login-gate-more summary {
  cursor: pointer;
  color: var(--hub-muted, #94a3b8);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}
.login-gate-more summary::-webkit-details-marker { display: none; }
.login-gate-more[open] summary { margin-bottom: 0.75rem; }
.login-gate-card label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--hub-muted, #94a3b8);
}
.login-gate-card input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
  font: inherit;
}

#landing .stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}
#landing .stage-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
#landing .phone {
  width: min(300px, 90%);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #111827;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  display: block;
  text-decoration: none;
  padding: 10px;
  box-sizing: border-box;
}
#landing .phone-live {
  height: 620px;
}
#landing .phone-live iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  pointer-events: none;
  background: #fff;
}
#landing .phone-caption {
  margin: 0;
  font-size: 0.88rem;
}
#landing .phone-caption a {
  color: var(--hub-accent-soft);
  font-weight: 600;
  text-decoration: none;
}
#landing .phone-caption a:hover { text-decoration: underline; }
#landing .window {
  position: relative;
  width: min(280px, 80%);
  aspect-ratio: 4/5;
  border-radius: 22px;
  background: linear-gradient(165deg, #1a2540, #0f172a);
  border: 1px solid var(--hub-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px var(--hub-accent-glow);
  overflow: hidden;
  padding: 1.1rem;
}
#landing .awning {
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #4f8cff, #7c5cff);
  margin-bottom: 1rem;
}
#landing .pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
#landing .pane span {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
#landing .pane span:nth-child(1) { background: rgba(79, 140, 255, 0.22); }
#landing .pane span:nth-child(2) { background: rgba(124, 92, 255, 0.18); }
#landing .shelf {
  margin-top: 0.85rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}
#landing .tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--hub-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px var(--hub-accent-glow);
}

#landing .price {
  padding: 1.5rem 0 2.5rem;
  text-align: left;
}
#landing .price-heading {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
#landing .price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.25rem;
  text-align: left;
}
#landing .price-card {
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: rgba(20, 28, 46, 0.85);
}
#landing .price-card.featured {
  border-color: rgba(79, 140, 255, 0.4);
}
#landing .price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
#landing .price-sum {
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
#landing .price-sum b {
  font-size: 2.4rem;
  color: var(--hub-text);
}
#landing .price-sum span {
  color: var(--hub-text-muted);
  font-size: 1rem;
  font-weight: 600;
}
#landing .price-trial {
  margin: 0;
  color: var(--hub-text-muted);
  font-size: 0.95rem;
}
#landing .price-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
#landing .price-feats li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--hub-text-muted);
  font-size: 0.92rem;
}
#landing .price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hub-success);
  font-weight: 800;
}

#landing .how {
  padding: 1rem 0 3rem;
}
#landing .how h2 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
#landing .how > p {
  margin: 0 0 1.25rem;
  color: var(--hub-text-muted);
}
#landing .mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 0.35rem;
}
#landing .mode-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}
#landing .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
#landing .plain-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--hub-text-muted);
  font-size: 0.95rem;
}
#landing .plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--hub-accent);
}
#landing .steps-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
#landing .steps-plain li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem 0.9rem;
  align-items: start;
  counter-increment: step;
}
#landing .steps-plain li::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--hub-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  grid-row: 1 / span 2;
}
#landing .steps-plain h3 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.02rem;
}
#landing .steps-plain p {
  margin: 0;
  color: var(--hub-text-muted);
  font-size: 0.92rem;
  grid-column: 2;
}

#landing footer.land-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--hub-border);
  color: var(--hub-text-dim);
  font-size: 0.85rem;
}
#landing footer.land-foot a {
  color: var(--hub-accent-soft);
  font-weight: 600;
  text-decoration: none;
}
#landing footer.land-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  #landing .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 0 2rem;
  }
  #landing .stage { order: -1; min-height: 240px; }
  #landing .mode-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  #landing .price-grid { grid-template-columns: 1fr; }
  #landing .land-nav > a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  #landing .actions { flex-direction: column; }
  #landing .actions .btn { width: 100%; }
  #landing .phone { width: min(260px, 82%); }
  #landing .phone-live { height: 520px; }
}
