/* Oxyo (oxyo.si) — Super Intelligence Design System */
:root {
  color-scheme: dark;
  --bg: #05070e;
  --bg-elev: #0b101d;
  --panel: rgba(14, 20, 36, 0.78);
  --panel-solid: #0f1628;
  --border: rgba(148, 163, 184, 0.14);
  --border-hi: rgba(99, 102, 241, 0.45);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(124, 92, 255, 0.22), transparent),
              radial-gradient(ellipse 60% 40% at 85% 15%, rgba(34, 211, 238, 0.12), transparent),
              var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Top Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 14, 0.76);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-orb {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: conic-gradient(from 140deg, #22d3ee, #7c5cff, #ec4899, #22d3ee);
  box-shadow: 0 0 28px rgba(124, 92, 255, 0.55);
  position: relative;
}

.brand-orb::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  background: #070a14;
}

.brand-tld {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cff 0%, #4f46e5 55%, #0ea5e9 100%);
  border-color: rgba(124, 92, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(124, 92, 255, 0.5);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 9px;
}

/* Hero */
.hero {
  padding: 84px 0 60px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.32);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 66px);
  line-height: 1.07;
  letter-spacing: -0.035em;
  margin: 0 auto 22px;
  max-width: 920px;
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff 15%, #a78bfa 55%, #22d3ee 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

/* Interactive Demo Showcase */
.showcase {
  margin: 28px auto 80px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 24, 0.8);
  overflow-x: auto;
}

.tab-btn {
  padding: 15px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.05);
}

.showcase-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.demo-card {
  background: #080c17;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
}

.demo-card.highlight {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: inset 0 0 32px rgba(34, 211, 238, 0.05);
}

.demo-badge {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.badge-bad {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.badge-good {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

/* Feature Grid */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hi);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.14) 0%, rgba(14, 20, 36, 0.9) 100%);
  box-shadow: 0 16px 48px rgba(124, 92, 255, 0.22);
}

.plan-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.price-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
}

.price-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price-sub {
  font-size: 13px;
  color: var(--muted);
  min-height: 38px;
  margin-bottom: 16px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  font-size: 13.5px;
}

.price-list li {
  padding: 6px 0;
  display: flex;
  gap: 8px;
  color: #cbd5e1;
}

.price-list li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 64px;
  color: var(--muted);
  font-size: 13.5px;
}

/* Workspace App Layout (`/app`) */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  height: 100vh;
  overflow: hidden;
}

.sidebar, .inspector {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.inspector {
  border-right: none;
  border-left: 1px solid var(--border);
}

.chat-stage {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: rgba(5, 7, 14, 0.7);
}

.chat-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.5px;
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.26), rgba(34, 211, 238, 0.14));
  border-color: rgba(124, 92, 255, 0.45);
}

.msg-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verified-pill {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
}

.composer-wrap {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.composer-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #070b15;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.composer-box textarea {
  width: 100%;
  min-height: 56px;
  max-height: 180px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  resize: vertical;
  outline: none;
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.3s ease;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #060913;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

pre.code-snip {
  background: #050811;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
  font-size: 12px;
  color: #a5f3fc;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3, .showcase-body {
    grid-template-columns: 1fr;
  }
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .chat-stage {
    height: 82vh;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
