/* ============================================================
   Mixed Reality Creators — Styles
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg:        #050509;
  --bg-soft:   #0a0a12;
  --card:      rgba(255,255,255,0.04);
  --card-h:    rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(255,255,255,0.14);

  --cyan:      #06b6d4;
  --cyan-dim:  rgba(6,182,212,0.15);
  --cyan-glow: rgba(6,182,212,0.25);
  --amber:    #f97316;
  --amber-dim:rgba(249,115,22,0.15);
  --amber-glow:rgba(249,115,22,0.3);
  --gold:    #fbbf24;

  --text:      #f0f0fa;
  --muted:     #6b7280;
  --dim:       #374151;

  --font:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', monospace;

  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --nav-h: 72px;
  --gap:   120px;
  --gutter: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { text-decoration: none; }

/* ---- Grid background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--gutter);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section        { padding: var(--gap) 0; }
.section-tight  { padding: calc(var(--gap) * 0.65) 0; }

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-body { margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}
.section-body.center-text { max-width: 580px; }

.grad-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #38bdf8 35%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  color: #fff;
  box-shadow: 0 0 28px var(--amber-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px var(--amber-glow), 0 8px 32px rgba(0,0,0,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.btn-xl {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background 0.3s, border-bottom 0.3s;
}
.nav.scrolled {
  background: rgba(5,5,9,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--gutter);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  margin-left: auto;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  color: white;
  box-shadow: 0 0 18px var(--cyan-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--amber-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5,5,9,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 28px;
  gap: 4px;
  z-index: 190;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav-link {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--text); }
.mobile-nav-link.highlight { color: var(--cyan); font-weight: 600; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 60% 0%, rgba(249,115,22,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(6,182,212,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow.g1 {
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(249,115,22,0.14) 0%, transparent 70%);
}
.hero-glow.g2 {
  width: 500px; height: 500px;
  bottom: 100px; left: -100px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
}
.hero-glow.g3 {
  width: 400px; height: 400px;
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(251,191,36,0.06) 0%, transparent 70%);
}

.hero-content {
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  margin-bottom: 28px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  max-width: 800px;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-sub strong { color: rgba(240,240,250,0.85); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---- Editor Mockup ---- */
.mockup-wrap {
  padding-bottom: 0;
  margin-top: 72px;
  position: relative;
  z-index: 1;
}

.editor-window {
  background: #09090f;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(249,115,22,0.12),
    0 -20px 60px rgba(249,115,22,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Titlebar */
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.win-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.win-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--mono);
  flex: 1;
  text-align: center;
}

.win-tabs {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.win-tab {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
}
.win-tab.active {
  background: rgba(249,115,22,0.2);
  color: #fcd34d;
}

/* Toolbar */
.win-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.toolbar-chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}
.chip-blue {
  background: rgba(249,115,22,0.15);
  border-color: rgba(249,115,22,0.3);
  color: #fcd34d;
}
.toolbar-spacer { flex: 1; }
.toolbar-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}
.toolbar-icon svg { width: 14px; height: 14px; }

/* Chat */
.win-chat {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
}
.chat-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-row.user { flex-direction: row-reverse; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.av-user {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
}
.av-ai {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
}
.av-ai svg { width: 16px; height: 16px; }

.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.65;
  max-width: 580px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.bubble-user {
  border-radius: 12px 2px 12px 12px;
  background: rgba(249,115,22,0.13);
  border-color: rgba(249,115,22,0.22);
  color: #fdba74;
}
.bubble-ai {
  border-radius: 2px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble-ai p { margin: 0; }
.bubble-ai code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 7px;
  overflow: hidden;
}
.tool-glyph { font-size: 0.68rem; opacity: 0.5; flex-shrink: 0; }
.tool-cmd {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.tool-ok {
  font-size: 0.72rem;
  color: #4ade80;
  flex-shrink: 0;
  margin-left: auto;
}

/* Composer */
.win-composer {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.2);
}
.composer-field {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.composer-placeholder {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.22);
}
.composer-btns { display: flex; align-items: center; gap: 8px; }
.cmp-btn-attach {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.cmp-btn-attach svg { width: 14px; height: 14px; }
.cmp-btn-attach:hover { border-color: var(--border-h); color: var(--text); }
.cmp-btn-send {
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}
.cmp-btn-send:hover { opacity: 0.88; }

/* ============================================================
   Plugin Intro
   ============================================================ */
.plugin-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.stat-row {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

.tool-list-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tlc-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tlc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tlc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.tlc-list li:nth-child(odd) { border-right: 1px solid var(--border); }
.tlc-list li:hover { background: var(--card); color: var(--text); }
.tlc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  opacity: 0.6;
}

/* ============================================================
   Video
   ============================================================ */
.video-wrap {
  width: min(100%, 960px);
  margin: 0 auto;
}

.video-chrome {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  background: #06060d;
}
.vc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(10,10,16,0.95);
  border-bottom: 1px solid var(--border);
}
.vc-url {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: rgba(255,255,255,0.3);
  flex: 1;
  text-align: center;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #06060d;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #06060d;
  outline: none;
}

/* ============================================================
   Features grid
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}

.feat-card {
  background: var(--bg-soft);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feat-card:hover { background: #0d0d1a; }
.feat-card-highlight {
  background: rgba(249,115,22,0.05);
}
.feat-card-highlight:hover {
  background: rgba(249,115,22,0.09);
}

.feat-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.feat-icon svg { width: 100%; height: 100%; }
.feat-icon.feat-icon-cyan { color: var(--cyan); }

.feat-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.feat-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}
.feat-card kbd {
  font-family: var(--mono);
  font-size: 0.73em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  vertical-align: middle;
}
.feat-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.25);
}

/* ============================================================
   Modes section
   ============================================================ */
.modes-section {
  background:
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(249,115,22,0.06) 0%, transparent 70%);
}

.modes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.modes-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.modes-body {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.ctx-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ctx-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--muted);
}
.ctx-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--cyan);
  flex-shrink: 0;
  min-width: 116px;
  text-align: center;
}
.ctx-chip-default {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.4);
  color: #67e8f9;
  font-weight: 700;
}
.modes-specialized {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--mono);
  line-height: 1.6;
}

.asst-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asst-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background 0.2s, border-color 0.2s;
}
.asst-card:hover { background: var(--card-h); border-color: var(--border-h); }

.asst-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ico-builder  { background: rgba(6,182,212,0.12); }
.ico-inspector{ background: rgba(249,115,22,0.12); }
.ico-debugger { background: rgba(239,68,68,0.12); }
.ico-refactor { background: rgba(251,191,36,0.12); }

.asst-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.asst-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Agent Skills
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}
.skill-card {
  background: var(--bg-soft);
  padding: 32px 28px;
  transition: background 0.2s;
}
.skill-card:hover { background: #0d0d1a; }
.skill-card-highlight {
  background: rgba(6,182,212,0.05);
}
.skill-card-highlight:hover {
  background: rgba(6,182,212,0.09);
}
.skill-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.skill-icon svg { width: 100%; height: 100%; }
.skill-icon.skill-icon-cyan { color: var(--cyan); }
.skill-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.skill-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   Workflow / Steps
   ============================================================ */
.steps-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.step {
  flex: 1;
  padding: 0 40px 0 0;
}
.step:last-child { padding-right: 0; }

.step-connector {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--cyan-dim), transparent);
  margin: 0 0;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 22px;
  position: relative;
}
.step-connector::before,
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--border);
}
.step-connector::before { right: 0; }
.step-connector::after { left: 0; }

.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.code-snippet {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--cyan);
  overflow-x: auto;
}
.cs-prefix { color: var(--muted); flex-shrink: 0; }

.provider-split {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.provider-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.provider-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.provider-label-codex {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--cyan);
}
.provider-label-claude {
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  color: #fb923c;
}
.provider-or {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  font-family: var(--mono);
  padding: 2px 0;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ============================================================
   Requirements
   ============================================================ */
.req-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
  padding: 56px 60px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.req-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.req-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 32px;
}
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.req-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.req-list svg { width: 16px; height: 16px; flex-shrink: 0; }
.req-list strong { color: var(--text); font-weight: 600; }
.req-list em { color: var(--muted); font-style: normal; font-size: 0.85em; }
.req-optional { opacity: 0.75; }

.req-right {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.req-version-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rv-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rv-num {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--mono);
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.req-compat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.rcompat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--muted);
}
.rcompat-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   What's Next
   ============================================================ */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.next-card {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  overflow: hidden;
}
.next-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.01), transparent);
  pointer-events: none;
}
.next-card:hover {
  background: var(--card-h);
  border-color: var(--border-h);
}

.next-card-icon {
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.next-card-icon svg { width: 100%; height: 100%; }
.next-card-icon-amber { color: var(--amber); opacity: 0.85; }

.next-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 14px;
}
.next-badge-amber {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.25);
  color: var(--amber);
}

.next-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.next-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: calc(var(--gap) * 1.2) 0;
}
.cta-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 22px;
}
.cta-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 44px;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-note { font-size: 0.78rem; color: var(--dim); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand { flex: 1; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 220px;
  line-height: 1.6;
}
.footer-email {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--cyan); }
.footer-cols { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--dim);
}

/* ============================================================
   Scroll animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-in-up 0.7s ease forwards;
}
.fade-in.delay-1 { animation-delay: 0.12s; }
.fade-in.delay-2 { animation-delay: 0.24s; }
.fade-in.delay-3 { animation-delay: 0.36s; }
.fade-in.delay-4 { animation-delay: 0.48s; }

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .next-grid { grid-template-columns: 1fr; max-width: 560px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .plugin-intro { grid-template-columns: 1fr; gap: 48px; }
  .plugin-intro-visual { max-width: 600px; }
  .modes-layout { grid-template-columns: 1fr; gap: 60px; }
  .req-card { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .req-right { flex-direction: row; gap: 40px; align-items: flex-start; justify-content: flex-start; min-width: auto; }
}

@media (max-width: 768px) {
  :root { --gap: 80px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: 3rem; }
  .next-grid { grid-template-columns: 1fr; max-width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 40px; }
  .step { padding-right: 0; }
  .step-connector { display: none; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { flex-wrap: wrap; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .win-toolbar { display: none; }
  .req-right { flex-direction: column; }
  .tlc-list { grid-template-columns: 1fr; }
  .tlc-list li:nth-child(odd) { border-right: none; }
}

@media (max-width: 480px) {
  :root { --gap: 64px; }
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .req-card { padding: 28px 22px; }
  .modes-title { font-size: 1.7rem; }
  .stat-row { gap: 24px; }
}
