/* Public landing + login — dark, AI-native aesthetic. Self-contained (does not
   depend on the portal tokens). Adapted from the oceanus-fundamental landing
   style. Scoped to body.landing so it never bleeds into the authed app.
   (Replaced the prior orphaned landing-v2 stylesheet, 2026-06-25.) */

body.landing {
  --ld-bg: #0b0c0f;
  --ld-surface: #14161d;
  --ld-surface-2: #1a1d26;
  --ld-text: #e7e9ee;
  --ld-text-dim: #a0a4ad;
  --ld-text-mute: #6b6f78;
  --ld-border: rgba(255, 255, 255, 0.07);
  --ld-border-strong: rgba(255, 255, 255, 0.12);
  --ld-radius: 14px;
  margin: 0;
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.landing a { color: inherit; text-decoration: none; }
body.landing * { box-sizing: border-box; }

/* ---- Background art ---- */
.ld-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(138, 180, 255, 0.10), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(192, 132, 252, 0.07), transparent 60%),
    radial-gradient(700px 500px at 15% 40%, rgba(93, 209, 255, 0.06), transparent 65%);
}
.ld-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 30%, transparent 75%);
}
.ld-shell { position: relative; z-index: 1; }

/* ---- Nav ---- */
.ld-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 22px 32px; }
.ld-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.ld-brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #5b8cff, #c084fc); box-shadow: 0 0 18px rgba(138, 180, 255, 0.35); }
.ld-logo { height: 30px; width: auto; display: block; }
.ld-logo-sm { height: 18px; width: auto; display: inline-block; vertical-align: middle; }
.ld-brand-tag { color: var(--ld-text-mute); font-size: 13px; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--ld-border-strong); }
.ld-nav-right { display: flex; align-items: center; gap: 10px; }
.ld-link { color: var(--ld-text-dim); font-size: 13.5px; padding: 6px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.ld-link:hover { color: var(--ld-text); background: rgba(255, 255, 255, 0.04); }

/* ---- Buttons ---- */
.ld-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; border: 1px solid var(--ld-border-strong); background: transparent; color: var(--ld-text); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ld-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.22); }
.ld-btn.primary { background: linear-gradient(135deg, #5b8cff 0%, #8a6cff 100%); border-color: transparent; color: #fff; }
.ld-btn.primary:hover { background: linear-gradient(135deg, #6b9cff 0%, #9a7cff 100%); transform: translateY(-1px); }
.ld-btn.lg { padding: 13px 24px; font-size: 15px; }
.ld-btn .arrow { transition: transform .2s; }
.ld-btn:hover .arrow { transform: translateX(3px); }

/* ---- Hero ---- */
.ld-hero { max-width: 1000px; margin: 0 auto; padding: 72px 32px 40px; text-align: center; }
.ld-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--ld-border-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.02); font-size: 12px; color: var(--ld-text-dim); font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; margin-bottom: 26px; }
.ld-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.ld-h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; }
.ld-h1 .grad { background: linear-gradient(110deg, #8ab4ff 0%, #c084fc 45%, #5dd1ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-lede { font-size: 17px; color: var(--ld-text-dim); max-width: 700px; margin: 0 auto 32px; }
.ld-hero-cta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ld-hero-note { margin-top: 16px; color: var(--ld-text-mute); font-size: 12.5px; font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---- Console preview ---- */
.ld-console { max-width: 1000px; margin: 56px auto 0; padding: 0 32px; }
.ld-console-frame { border: 1px solid var(--ld-border); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%), var(--ld-surface); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7); overflow: hidden; }
.ld-console-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ld-border); background: rgba(255, 255, 255, 0.015); }
.ld-console-dots { display: flex; gap: 6px; }
.ld-console-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.ld-console-tabs { display: flex; gap: 6px; margin-left: 12px; flex-wrap: wrap; }
.ld-console-tab { font-size: 11.5px; color: var(--ld-text-mute); padding: 4px 10px; border-radius: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.ld-console-tab.active { background: rgba(138, 180, 255, 0.10); color: #b8cfff; }
.ld-console-body { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 320px; }
@media (max-width: 880px) { .ld-console-body { grid-template-columns: 1fr; } }
.ld-chat { padding: 22px 24px; border-right: 1px solid var(--ld-border); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 880px) { .ld-chat { border-right: 0; border-bottom: 1px solid var(--ld-border); } }
.ld-chat-msg { font-size: 13.5px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; max-width: 88%; }
.ld-chat-msg.user { align-self: flex-end; background: rgba(138, 180, 255, 0.10); border: 1px solid rgba(138, 180, 255, 0.25); color: #e3ecff; }
.ld-chat-msg.assist { align-self: flex-start; background: var(--ld-surface-2); border: 1px solid var(--ld-border); }
.ld-chat-action { align-self: flex-start; font-size: 12px; color: #4ade80; font-family: "JetBrains Mono", ui-monospace, monospace; }
.ld-side { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; background: rgba(255, 255, 255, 0.01); }
.ld-side-label { font-size: 11px; color: var(--ld-text-mute); text-transform: uppercase; letter-spacing: 0.08em; font-family: "JetBrains Mono", ui-monospace, monospace; }
.ld-side-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ld-text-dim); }
.ld-side-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ld-border-strong); color: var(--ld-text-dim); }

/* ---- Feature sections ---- */
.ld-section { max-width: 1100px; margin: 0 auto; padding: 80px 32px 0; }
.ld-section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.ld-kicker { font-size: 12.5px; color: #8ab4ff; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.ld-h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.ld-sub { color: var(--ld-text-dim); font-size: 16px; margin: 0; }
.ld-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ld-card { border: 1px solid var(--ld-border); border-radius: var(--ld-radius); background: var(--ld-surface); padding: 22px; transition: border-color .15s, transform .15s; }
.ld-card:hover { border-color: var(--ld-border-strong); transform: translateY(-2px); }
.ld-card-icon { font-size: 22px; margin-bottom: 12px; }
.ld-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.ld-card p { font-size: 14px; color: var(--ld-text-dim); margin: 0; }

/* ---- Flow steps ---- */
.ld-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ld-flow-step { border: 1px solid var(--ld-border); border-radius: var(--ld-radius); background: var(--ld-surface); padding: 20px; }
.ld-flow-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: #8ab4ff; margin-bottom: 10px; }
.ld-flow-step h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.ld-flow-step p { font-size: 13.5px; color: var(--ld-text-dim); margin: 0; }

/* ---- Final CTA + footer ---- */
.ld-cta { max-width: 860px; margin: 90px auto 0; padding: 56px 32px; text-align: center; border: 1px solid var(--ld-border); border-radius: 20px; background: linear-gradient(180deg, rgba(138, 180, 255, 0.06), transparent 60%), var(--ld-surface); }
.ld-cta h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em; }
.ld-cta p { color: var(--ld-text-dim); margin: 0 0 26px; }
.ld-foot { max-width: 1240px; margin: 80px auto 0; padding: 28px 32px 40px; border-top: 1px solid var(--ld-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ld-foot-left { display: flex; align-items: center; gap: 10px; color: var(--ld-text-mute); font-size: 13px; }
.ld-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ld-foot-links a { color: var(--ld-text-mute); font-size: 13px; }
.ld-foot-links a:hover { color: var(--ld-text-dim); }
.ld-foot-mono { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--ld-text-mute); font-size: 12px; }

/* ---- Auth (login) card ---- */
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: 100%; max-width: 400px; background: var(--ld-surface); border: 1px solid var(--ld-border-strong); border-radius: 18px; padding: 34px 32px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.auth-sub { color: var(--ld-text-mute); font-size: 13px; font-family: "JetBrains Mono", ui-monospace, monospace; margin-bottom: 26px; }
.auth-card h1 { font-size: 20px; font-weight: 600; margin: 0 0 20px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; color: var(--ld-text-dim); margin-bottom: 6px; }
.auth-field input { width: 100%; padding: 11px 13px; font-size: 15px; border-radius: 10px; border: 1px solid var(--ld-border-strong); background: var(--ld-bg); color: var(--ld-text); }
.auth-field input:focus { outline: none; border-color: #8ab4ff; box-shadow: 0 0 0 3px rgba(138, 180, 255, 0.18); }
.auth-submit { width: 100%; justify-content: center; padding: 12px; margin-top: 6px; }
.auth-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #fca5a5; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 18px; }
.auth-back { display: block; text-align: center; margin-top: 22px; color: var(--ld-text-mute); font-size: 13px; }
.auth-back:hover { color: var(--ld-text-dim); }
.auth-langs { display: flex; gap: 14px; justify-content: center; margin-top: 14px; }
.auth-langs a { color: var(--ld-text-mute); font-size: 12.5px; }
.auth-langs a:hover { color: var(--ld-text-dim); }
.auth-langs a.is-active { color: #8ab4ff; }

.ld-langs { display: inline-flex; gap: 12px; align-items: center; }
.ld-langs a { color: var(--ld-text-dim); font-size: 13px; }
.ld-langs a:hover { color: var(--ld-text); }
.ld-langs a.is-active { color: #8ab4ff; }
