/* Landing page — public hero for scitex-orochi.com (todo#92) */
:root {
  --bg: #1a1d21;
  --surface: #222529;
  --surface-2: #2a2d31;
  --border: #35393f;
  --text: #d1d2d3;
  --text-muted: #8a8f97;
  --accent: #4a9eff;
  --accent-hover: #3a8eef;
  --success: #2ecc71;
}

* {
  box-sizing: border-box;
}

body.landing {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: block; /* override simple.css flex centering */
  align-items: initial;
  justify-content: initial;
}

.landing-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Top nav */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #f8f7f5;
  font-size: 1.05rem;
  text-decoration: none;
}
.landing-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.landing-nav-actions {
  display: flex;
  gap: 10px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 56px;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(74, 158, 255, 0.18);
}
.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 16px;
  color: #f8f7f5;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Invite-request form — replaces the Option A mailto CTA so incoming
 * requests land in the InviteRequest model instead of an inbox. The
 * form sits below the hero; the Request-invite button scrolls to it. */
.invite-request-form {
  margin: 28px auto 0;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px 22px;
  text-align: left;
}
.invite-request-form h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.invite-request-hint {
  margin: 0 0 12px;
  font-size: 13px;
  opacity: 0.72;
}
.invite-required {
  color: #f5a623;
  margin-left: 2px;
}
.invite-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.invite-field-row label {
  font-size: 12px;
  opacity: 0.8;
}
.invite-field-row input,
.invite-field-row textarea {
  background: #0b0b0b;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 7px 10px;
  font: inherit;
}
.invite-field-row input:focus,
.invite-field-row textarea:focus {
  outline: none;
  border-color: #4ecdc4;
}
.invite-request-form .lbtn {
  margin-top: 6px;
}

/* Buttons (landing-scoped so they don't clash with simple.css .btn) */
.lbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
  min-height: 44px;
}
.lbtn:hover {
  background: var(--surface-2);
  border-color: #4a4f56;
}
.lbtn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f8f7f5;
}
.lbtn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.lbtn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: left;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 158, 255, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  color: #f8f7f5;
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Join / sign-in section */
.join {
  margin-top: 56px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.join h2 {
  color: #f8f7f5;
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.join p {
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
}
.join-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.join-form input[type="text"] {
  flex: 1 1 200px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.95rem;
  min-height: 44px;
}
.join-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
.landing-foot {
  margin-top: 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.landing-foot a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
}
.landing-foot a:hover {
  color: var(--accent);
}
.landing-foot .copyright {
  margin-top: 10px;
  opacity: 0.7;
}

/* Join helper text link */
.join-new {
  margin-top: 16px;
}
.join-new a {
  color: var(--accent);
  text-decoration: none;
}
.join-new a:hover {
  text-decoration: underline;
}

/* Messages */
.landing-msgs {
  max-width: 480px;
  margin: 0 auto 16px;
  text-align: center;
}
.landing-msgs .msg-error {
  color: #e74c3c;
}
.landing-msgs .msg-success {
  color: var(--success);
}

/* Responsive */
@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p.lead {
    font-size: 1rem;
  }
  .landing-wrap {
    padding: 20px 18px 48px;
  }
  .landing-nav {
    margin-bottom: 32px;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero-logo {
    width: 80px;
    height: 80px;
  }
  .hero {
    padding: 16px 0 40px;
  }
  .join {
    padding: 22px 16px;
    margin-top: 40px;
  }
  .lbtn {
    font-size: 0.9rem;
  }
  /* Prevent iOS zoom on input focus */
  .join-form input[type="text"] {
    font-size: 16px;
  }
}
