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

:root {
  --bg0: #ffffff;
  --bg1: #f8faff;
  --bg2: #f0f4ff;
  --bg3: #e8eeff;
  --bg4: #d0d8f0;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-dim: #dbeafe;
  --blue-glow: rgba(37, 99, 235, 0.08);
  --blue-glow2: rgba(37, 99, 235, 0.15);
  --green: #16a34a;
  --green-glow: rgba(22, 163, 74, 0.1);
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.1);
  --orange: #ea580c;
  --orange-glow: rgba(234, 88, 12, 0.1);
  --text: #0a0f2e;
  --text2: #1e2d5a;
  --text3: #5b6a9a;
  --border: rgba(0, 0, 0, 0.07);
  --border2: rgba(37, 99, 235, 0.2);
  --shadow: 0 4px 24px rgba(10, 15, 46, 0.08);
  --shadow-hover: 0 16px 48px rgba(10, 15, 46, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text2); }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--green);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--border2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

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

section { padding: 90px 0; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, height .3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(10, 15, 46, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  transition: height .3s;
}

nav.scrolled .nav-inner {
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 20px; height: 20px; fill: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text3);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
}
.btn-ghost:hover { color: var(--text); }

.btn-green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.btn-green:hover {
  background: rgba(22, 163, 74, 0.18);
  color: var(--green);
}

/* ── HERO ── */
#hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* dot-grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* floating shapes */
.hero-shape {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: 60px;
  right: -60px;
  opacity: 0.12;
  animation: float1 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 180px;
  height: 180px;
  bottom: 80px;
  left: -40px;
  opacity: 0.08;
  animation: float2 10s ease-in-out infinite;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  top: 200px;
  left: 42%;
  opacity: 0.07;
  animation: float1 7s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(16px) rotate(-6deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--border2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s infinite;
}

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

.hero-title {
  margin-bottom: 20px;
}

.hero-title .accent {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text3);
  margin-top: 4px;
}

/* ── TERMINAL MOCKUP ── */
.terminal {
  background: #1e2a45;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-hover);
}

.terminal-header {
  background: #253452;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }

.term-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

.term-line { display: flex; gap: 10px; }
.term-prompt { color: #60a5fa; flex-shrink: 0; }
.term-cmd { color: #e2e8f0; }
.term-output { color: rgba(255,255,255,0.45); padding-left: 20px; }
.term-output.ok { color: #4ade80; }
.term-output.info { color: #60a5fa; }
.term-output.bot { color: #c084fc; }
.term-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #3b82f6;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

/* ── FEATURES ── */
#features { background: var(--bg1); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

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

.feature-card {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue-dim);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
  color: var(--blue);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.feature-card p { font-size: 0.9rem; }

/* ── HOW IT WORKS ── */
#how {
  background: var(--bg0);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), var(--blue), var(--border2), transparent);
}

.flow-step {
  text-align: center;
  padding: 0 16px;
}

.flow-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg0);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.flow-step h3 { font-size: 1rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.85rem; }

/* ── LLMS ── */
#llms { background: var(--bg1); }

.llms-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.llm-chip {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  transition: all .2s;
  box-shadow: var(--shadow);
}

.llm-chip:hover {
  border-color: var(--border2);
  color: var(--blue);
  background: var(--blue-dim);
}

.llm-chip.featured {
  border-color: var(--border2);
  color: var(--blue);
  background: var(--blue-dim);
}

.llm-chip .chip-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 6px;
}

.messengers {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.messenger-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text2);
  box-shadow: var(--shadow);
}

.messenger-badge i { font-size: 1.1rem; }
.messenger-badge.tg i { color: #2CA5E0; }
.messenger-badge.max i { color: #005FF9; }

/* ── PRICING ── */
#pricing {
  background: var(--bg0);
}

.plans-group { }

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

.plans-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.plans-group-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text3);
  padding: 3px 10px;
  border-radius: 100px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan-card {
  background: var(--bg1);
  border: 1px solid var(--bg4);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border2);
}

.plan-card.plan-featured {
  border-color: var(--blue);
  background: var(--blue-dim);
}

.plan-card.plan-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.plan-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.plan-icon-blue   { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--border2); }
.plan-icon-green  { background: var(--green-glow); color: var(--green); border: 1px solid rgba(22,163,74,.25); }
.plan-icon-purple { background: var(--purple-glow); color: var(--purple); border: 1px solid rgba(124,58,237,.25); }

.plan-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.plan-header h3 { font-size: 1.1rem; margin-bottom: 4px; }

.plan-desc { font-size: 0.85rem; color: var(--text3); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-from {
  font-size: 0.82rem;
  color: var(--text3);
}

.price-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-card.plan-featured .price-num { color: var(--blue); }

.price-currency {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text2);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text2);
}

.plan-features-list li i {
  color: var(--green);
  margin-top: 3px;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.price-alt {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text3);
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pricing-note i { color: var(--blue); }

/* ── PRICING TEASER (index.html) ── */
.pricing-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.pricing-teaser h2 { margin-bottom: 12px; }
.pricing-teaser p { max-width: 520px; }

/* ── CONTACT ── */
#contact {
  background: var(--bg1);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 24px; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text2);
  font-size: 0.92rem;
  transition: color .2s;
}

.contact-link:hover { color: var(--text); }

.contact-link .cl-icon {
  width: 38px; height: 38px;
  background: var(--blue-dim);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-control::placeholder { color: var(--text3); }

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* ── FOOTER ── */
footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.83rem;
  color: var(--text3);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text3);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text2); }

.footer-tg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 500;
}

.footer-tg i { color: #2CA5E0; font-size: 1rem; }

/* ── TEAM MODES ── */
#team { background: var(--bg0); }

.team-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
}

.team-intro h2 { margin-bottom: 14px; }
.team-intro p { font-size: 1.05rem; }

.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-dim);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
}

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

.mode-card {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow);
}

.mode-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.mode-header {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mode-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mode-icon.shared  { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.mode-icon.personal { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.mode-icon.passive { background: rgba(234, 88, 12, 0.1); color: var(--orange); }

.mode-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.mode-tag.shared   { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.mode-tag.personal { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.mode-tag.passive  { background: rgba(234, 88, 12, 0.1); color: var(--orange); }

.mode-header h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mode-header p  { font-size: 0.85rem; }

.mode-body { padding: 20px 26px 24px; }

.mode-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text2);
}

.mode-features li i {
  margin-top: 3px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.mode-features li i.shared   { color: var(--blue); }
.mode-features li i.personal { color: var(--green); }
.mode-features li i.passive  { color: var(--orange); }

.mode-mini-terminal {
  margin-top: 18px;
  background: #1e2a45;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
}

.mt-prompt { color: #60a5fa; }
.mt-name   { color: #c084fc; }
.mt-bot    { color: #4ade80; }
.mt-dim    { color: rgba(255,255,255,0.4); }

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-right: 12px;
}

.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .05em;
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

/* ── OPEN SOURCE page ── */
.nav-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--text3);
  transition: color .2s;
}
.nav-back:hover { color: var(--text2); }

.oss-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-glow);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-content { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-content h1 { margin-bottom: 18px; }
.hero-content p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text3); margin-top: 3px; }

.project-section { padding: 80px 0; }
.project-section:nth-child(odd) { background: var(--bg1); }
.project-section:nth-child(even) { background: var(--bg0); }

.project-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.project-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.project-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.project-icon.blue   { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--border2); }
.project-icon.green  { background: var(--green-glow); color: var(--green); border: 1px solid rgba(22,163,74,.25); }
.project-icon.purple { background: var(--purple-glow); color: var(--purple); border: 1px solid rgba(124,58,237,.25); }
.project-icon.orange { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(234,88,12,.25); }

.project-name h2 { font-size: 1.7rem; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.meta-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.project-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.project-desc { font-size: 1rem; line-height: 1.75; margin-bottom: 24px; }

.tools-section { margin-top: 28px; }
.tools-section h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 10px;
  color: var(--text2);
}

.code-block {
  background: #1e2a45;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-header {
  background: #253452;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-weight: 500; }

.code-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.code-copy:hover { color: rgba(255,255,255,0.7); }

.code-body {
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

.code-body .cb-comment { color: rgba(255,255,255,0.3); }
.code-body .cb-cmd     { color: #e2e8f0; }
.code-body .cb-str     { color: #a5d6ff; }
.code-body .cb-flag    { color: #4ade80; }
.code-body .cb-prompt  { color: #60a5fa; user-select: none; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text2);
}

.feature-list li i {
  margin-top: 4px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.provider-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
  transition: all .2s;
}

.provider-chip:hover {
  border-color: var(--border2);
  color: var(--blue);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 20px;
}

.comparison-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg2); }

.comparison-table .check { color: var(--green); }
.comparison-table .cross { color: var(--text3); opacity: .5; }

.oss-cta-section {
  background: linear-gradient(135deg, var(--blue-dim) 0%, var(--bg2) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-top: 60px;
}

.oss-cta-section h2 { margin-bottom: 12px; }
.oss-cta-section p { margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.oss-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── OPEN SOURCE inline card styles (previously onmouseover) ── */
.oss-project-link {
  text-decoration: none;
  display: block;
}

.oss-project-card {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
}

.oss-project-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.oss-project-card .opc-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.oss-project-card .opc-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.oss-project-card .opc-desc {
  font-size: 0.85rem;
  color: var(--text3);
}

.oss-project-card .opc-repo {
  font-size: 0.78rem;
  margin-top: 6px;
}

/* ── OPEN SOURCE section with OSS cards ── */
#opensource { background: var(--bg1); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .terminal { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .flow-grid::before { display: none; }
  .llms-wrapper { grid-template-columns: 1fr; }
  .team-intro { grid-template-columns: 1fr; gap: 24px; }
  .modes-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .pricing-teaser { padding: 32px 28px; flex-direction: column; align-items: flex-start; }
  .project-header { grid-template-columns: 1fr; }
  .project-body { grid-template-columns: 1fr; }
  .oss-cta-section { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  #hero { padding: 120px 0 64px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-shape { display: none; }
}
