/* OCP Nexus Landing Page */
:root {
  --bg: #080810;
  --bg2: #0d0d1f;
  --bg3: #12122a;
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --border: rgba(255,255,255,0.07);
  --card: rgba(255,255,255,0.04);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; color: var(--accent); }
.logo-text strong { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 16px; flex-shrink: 0; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.badge {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 60%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-n { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-l { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--dark { background: var(--bg2); }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

/* ── FEATURES GRID ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.feature-card--accent {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, transparent 100%);
  border-color: rgba(99,102,241,0.2);
  grid-column: span 2;
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  color: var(--text-muted);
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── COMPARE TABLE ───────────────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.th-nexus { color: var(--accent) !important; }
.compare-table tbody tr:hover { background: var(--card); }
.yes { color: #22c55e; font-weight: 700; }
.no { color: #ef4444; }
.part { color: #f59e0b; }

/* ── MODES ───────────────────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.mode-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.mode-card--featured {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, transparent 100%);
}
.mode-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}
.mode-icon { font-size: 40px; margin-bottom: 16px; margin-top: 8px; }
.mode-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.mode-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.mode-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.mode-list li {
  color: var(--text-muted);
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}
.mode-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.mode-price {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.mode-price strong { color: var(--text); font-size: 24px; }

/* ── PRICING ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card--featured {
  border-color: rgba(99,102,241,0.5);
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, var(--card) 100%);
}
.pricing-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}
.pricing-tier { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.pricing-price { font-size: 16px; color: var(--text-muted); margin-bottom: 4px; }
.pricing-amount { font-size: 48px; font-weight: 800; color: var(--text); }
.pricing-per { font-size: 14px; }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* ── DOWNLOAD ────────────────────────────────────────────────────── */
.download-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.download-card:hover { border-color: var(--accent); transform: translateX(4px); }
.dl-icon { width: 48px; height: 48px; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-name { font-size: 17px; font-weight: 700; }
.dl-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.dl-version { font-size: 12px; color: var(--accent); margin-top: 4px; }
.dl-arrow { font-size: 24px; color: var(--accent); flex-shrink: 0; }
.install-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
  text-align: center;
}
.install-note a { color: var(--accent); text-decoration: none; }
.install-note a:hover { text-decoration: underline; }
.install-note code { background: var(--card); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: #a5b4fc; }

.dl-group { max-width: 700px; margin: 0 auto; }
.dl-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.dl-group-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dl-group-badge--prof { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.dl-group-badge--student { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.download-card--featured { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.05); }
.download-card--featured:hover { border-color: var(--accent); }
.download-card--disabled { opacity: 0.45; cursor: default; pointer-events: none; position: relative; }
.dl-badge-soon {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, var(--bg) 100%); }
.cta-box {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-box h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.cta-box > p { color: var(--text-muted); margin-bottom: 36px; font-size: 17px; }
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.demo-form input {
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.demo-form input:focus { border-color: var(--accent); }
.demo-form input::placeholder { color: var(--text-muted); }
.demo-sub { font-size: 14px; color: var(--text-muted); }
.demo-sub a { color: var(--accent); text-decoration: none; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-brand .logo-icon { font-size: 28px; color: var(--accent); }
.footer-brand .logo-text { font-size: 20px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 60px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30,30,50,0.95);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .feature-card--accent { grid-column: span 1; }
  .stat { padding: 0 20px; }
  .stat-n { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { flex-wrap: wrap; gap: 36px; }
  .hero h1 { letter-spacing: -1px; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 13px; }
}
