/* ============================================
   RealEngineersOS — Theme
   Dark technical aesthetic · JetBrains Mono + DM Sans
   ============================================ */

:root {
  --bg: #07080f;
  --bg-02: #0c0f1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --fg-subtle: #64748b;
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --accent-border: rgba(45, 212, 191, 0.25);
  --red: #f87171;
  --amber: #fbbf24;
  --border: rgba(148, 163, 184, 0.1);
  --border-bright: rgba(148, 163, 184, 0.18);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'DM Sans', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-subtle); border-radius: 3px; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-os {
  color: var(--accent);
}

/* ---- Section label ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex;
  align-items: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(45, 212, 191, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(45, 212, 191, 0.04) 0%, transparent 60%);
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 4px;
  line-height: 1.3;
  max-width: 90px;
}

.hero-stat-div {
  width: 1px;
  height: 40px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* ---- Profile Card ---- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #2dd4bf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.profile-role {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 2px;
}

.profile-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 4px 8px;
  border-radius: 4px;
}

.profile-projects-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}

.profile-project {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.profile-project:last-of-type { border-bottom: none; }

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.project-dot-a { background: #60a5fa; }
.project-dot-b { background: #a78bfa; }

.project-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.project-detail {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 3px;
  line-height: 1.4;
}

.profile-ai-section {
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
}

.ai-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.ai-text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ---- Lens Card ---- */
.lens-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 20px 24px;
}

.lens-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}

.lens-match {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.lens-score {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.lens-desc {
  font-size: 13px;
  color: var(--fg-muted);
}

.lens-bars { display: flex; flex-direction: column; gap: 10px; }

.lens-bar-row { display: flex; align-items: center; gap: 10px; }

.lens-bar-label {
  font-size: 12px;
  color: var(--fg-muted);
  width: 120px;
  flex-shrink: 0;
}

.lens-bar {
  flex: 1;
  height: 4px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.lens-fill {
  height: 100%;
  border-radius: 2px;
}

.lens-fill-hi { background: var(--accent); }
.lens-fill-mid { background: #fbbf24; }

/* ---- Problem ---- */
.problem {
  background: var(--bg-02);
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner { max-width: 1280px; margin: 0 auto; }

.problem-header { margin-bottom: 56px; }

.problem-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 560px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px;
}

.problem-card-current { border-color: rgba(148, 163, 184, 0.2); }

.problem-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.current { color: var(--fg-subtle); }
.re { color: var(--accent); }

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.problem-item:last-child { border-bottom: none; }

.problem-icon { flex-shrink: 0; margin-top: 2px; }

.problem-item-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 5px;
}

.problem-item-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ---- How ---- */
.how {
  background: var(--bg);
  padding: 100px 40px;
}

.how-inner { max-width: 1280px; margin: 0 auto; }

.how-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 520px;
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.step-visual { min-height: 100px; }

/* Artifact tiles */
.step-visual-1 { display: flex; flex-direction: column; gap: 8px; }

.artifact-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(45, 212, 191, 0.07);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 10px 12px;
}

.artifact-icon { flex-shrink: 0; }

.artifact-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* AI parse block */
.step-visual-2 { display: flex; flex-direction: column; gap: 10px; }

.ai-parse-block {
  background: rgba(45, 212, 191, 0.05);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 12px;
}

.ai-parse-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.ai-parse-line {
  height: 8px;
  background: rgba(45, 212, 191, 0.2);
  border-radius: 4px;
  margin-bottom: 6px;
  width: 100%;
}

.ai-parse-line-sm { width: 70%; }

.profile-preview-mini {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 12px;
}

.ppm-header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ppm-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  margin: 0 4px 4px 0;
}

/* Verify block */
.step-visual-3 { display: flex; flex-direction: column; }

.verify-block {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 14px;
}

.verify-header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

.verify-row:last-child { border-bottom: none; }

/* ---- Outcomes ---- */
.outcomes {
  background: var(--bg-02);
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-inner { max-width: 1280px; margin: 0 auto; }

.outcomes-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 480px;
  margin-bottom: 56px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px;
}

.outcome-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.outcome-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.outcome-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- Manifesto ---- */
.manifesto {
  background: var(--bg);
  padding: 100px 40px;
}

.manifesto-inner { max-width: 860px; margin: 0 auto; }

.manifesto-quote {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--fg);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 20px;
}

.manifesto-attr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  padding-left: 28px;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.manifesto-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 36px;
  margin-left: 28px;
}

.manifesto-text {
  padding-left: 28px;
}

.manifesto-text p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.manifesto-text p:last-child { margin-bottom: 0; }

/* ---- Closing ---- */
.closing {
  background: var(--bg-02);
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing-headline {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

.closing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Footer ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.footer-os { color: var(--accent); }

.footer-tagline {
  font-size: 13px;
  color: var(--fg-subtle);
  flex: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

.footer-sep { color: var(--fg-subtle); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 100px 24px 60px; }
  .hero-right { order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .problem { padding: 72px 24px; }
  .how { padding: 72px 24px; }
  .outcomes { padding: 72px 24px; }
  .manifesto { padding: 72px 24px; }
  .closing { padding: 72px 24px; }
  .footer { padding: 36px 24px; }
  .hero-stat-row { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 32px; }
  .manifesto-quote { font-size: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
