/* ============================================
   NatroliteAI — Global Stylesheet
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --card: #1a1a25;
  --card2: #1f1f2e;
  --accent: #FDB813;
  --accent2: #ffca44;
  --text: #f0f0f5;
  --muted: #8888a0;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(253,184,19,0.25);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #0a0a0f;
  padding: 9px 22px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 1.5rem 5vw; z-index: 9999;
  flex-direction: column; gap: 1.2rem;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .nav-cta { margin-top: 0.5rem; text-align: center; display: block; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: #0a0a0f;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid var(--border); transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTION SHARED ── */
section { padding: clamp(4rem, 8vw, 7rem) 5vw; }
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--muted); max-width: 540px;
  font-size: 1rem; line-height: 1.75;
}
.centered { text-align: center; }
.centered .section-subtitle { margin: 0 auto; }

/* ── PAGE HERO BANNER ── */
.page-hero {
  padding-top: 68px;
  background: var(--bg2);
}
.page-hero-inner {
  padding: 5rem 5vw 3rem;
  text-align: center;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--border2);
  background: var(--card2);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(253,184,19,0.1); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.4rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.service-tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  background: rgba(253,184,19,0.08); border: 1px solid var(--border2);
  padding: 3px 10px; border-radius: 50px;
}

/* ── HOW IT WORKS ── */
.how-it-works { background: var(--bg2); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-top: 3.5rem;
}
.step { position: relative; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #0a0a0f;
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-family: 'Space Grotesk', sans-serif;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-values {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2rem;
}
.value-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem;
}
.value-card .v-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.value-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.value-card p { font-size: 0.8rem; color: var(--muted); }
.about-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.ab-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.ab-chip .ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(253,184,19,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.ab-chip h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 1px; }
.ab-chip p { font-size: 0.78rem; color: var(--muted); }

/* ── CONTACT ── */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
}
.contact-info p { color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item .ci-ic {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(253,184,19,0.1); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.contact-item h4 { font-size: 0.88rem; font-weight: 600; }
.contact-item p { font-size: 0.82rem; color: var(--muted); }
.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  padding: 12px 14px; border-radius: var(--radius-sm); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--bg2); }
.form-submit {
  width: 100%; background: var(--accent); color: #0a0a0f;
  border: none; padding: 14px; border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.form-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.field-error { border-color: #f87171 !important; }
.error-msg { color: #f87171; font-size: 0.76rem; margin-top: 4px; display: none; }
.error-msg.visible { display: block; }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success .check { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); font-size: 0.9rem; }

/* ── TESTIMONIALS CAROUSEL ── */
.testimonials { background: var(--bg2); }
.testi-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.8rem; }
.testi-card p {
  color: var(--muted); font-size: 0.88rem;
  line-height: 1.7; margin-bottom: 1rem; font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #0a0a0f; background: var(--accent);
}
.testi-author h5 { font-size: 0.85rem; font-weight: 600; }
.testi-author span { font-size: 0.75rem; color: var(--muted); }
.tcarousel-wrap { position: relative; margin-top: 3rem; overflow: hidden; }
.tcarousel-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.tcarousel-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
}
.tc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 2;
}
.tc-arrow:hover {
  background: var(--accent); color: #0a0a0f;
  border-color: var(--accent); transform: translateY(-50%) scale(1.08);
}
.tc-prev { left: -22px; }
.tc-next { right: -22px; }
.tc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.75rem; }
.tc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: 1px solid var(--muted);
  cursor: pointer; transition: background 0.25s, transform 0.25s;
}
.tc-dot.active {
  background: var(--accent); border-color: var(--accent); transform: scale(1.3);
}

/* ── WHY CHOOSE NATROLITEAI ── */
.why-section { background: var(--bg); padding: clamp(4rem, 8vw, 7rem) 5vw; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.25s;
}
.why-card:hover {
  border-color: var(--border2);
  background: var(--card2);
  transform: translateY(-5px);
}
.why-card:hover::before { opacity: 1; }
.why-icon-wrap {
  margin-bottom: 1.25rem;
}
.why-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(253,184,19,0.1);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background 0.25s, transform 0.25s;
}
.why-card:hover .why-icon {
  background: rgba(253,184,19,0.18);
  transform: scale(1.1);
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.why-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Comparison strip */
.why-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-col {
  padding: 2.5rem 2rem;
}
.compare-without { background: var(--card); }
.compare-with    { background: var(--card2); }
.compare-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-without .compare-heading { color: #f87171; }
.compare-with    .compare-heading { color: #4ade80; }
.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.compare-col ul li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  padding-left: 0;
}
.compare-without ul li::before { content: none; }
.compare-with    ul li::before { content: none; }
.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  width: 56px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .why-compare {
    grid-template-columns: 1fr;
  }
  .compare-divider {
    writing-mode: horizontal-tb;
    width: 100%;
    padding: 0.75rem;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5vw;
  display: flex; justify-content: center;
  margin-top: 50px;
}
.stats-inner {
  display: flex; gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap; justify-content: center;
}
.stat-item { text-align: center; }
.stat-item h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--accent);
}
.stat-item p { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, rgba(253,184,19,0.12) 0%, rgba(253,184,19,0.04) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 5rem 5vw;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.75; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 5vw 1.5rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1.3fr 1fr 1fr;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--muted); font-size: 0.85rem;
  margin-top: 0.8rem; max-width: 260px; line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 0.85rem; margin-bottom: 0.6rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

/* ── HERO (index only) ── */
.hero {
  min-height: 100vh; padding-top: 68px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding-left: 5vw; padding-right: 5vw;
  position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(253,184,19,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(253,184,19,0.1); border: 1px solid var(--border2);
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 2rem; letter-spacing: 0.04em;
}
.hero-badge .dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(1.3); }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.2rem; letter-spacing: -0.02em;
}
.hero h1 .highlight { color: var(--accent); }
.hero-typewriter-wrap {
  min-height: 2.4em; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 1.8rem;
}
.hero-typewriter {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--muted); font-weight: 400; font-family: 'Inter', sans-serif;
}
.hero-typewriter .tw-line { color: var(--accent2); font-weight: 600; }
.cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent); margin-left: 3px;
  vertical-align: middle; animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc {
  max-width: 580px; color: var(--muted);
  font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 4rem;
}

/* ── CHAT DEMO WIDGET ── */
.hero-chat {
  width: 100%; max-width: 520px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.chat-header {
  background: var(--card2); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700;
  color: #0a0a0f; flex-shrink: 0;
}
.chat-header-info h4 { font-size: 0.88rem; font-weight: 600; }
.chat-header-info p { font-size: 0.75rem; color: #4ade80; }
.chat-dots { margin-left: auto; display: flex; gap: 5px; }
.chat-dots span { width: 10px; height: 10px; border-radius: 50%; }
.chat-dots span:nth-child(1) { background:#ff5f57; }
.chat-dots span:nth-child(2) { background:#febc2e; }
.chat-dots span:nth-child(3) { background:#28c840; }
.chat-body {
  padding: 18px; display: flex; flex-direction: column;
  gap: 12px; min-height: 200px;
}
.msg {
  max-width: 80%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.88rem; line-height: 1.5;
  animation: fadeUp 0.4s ease forwards; opacity: 0;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:none; }
}
.msg.user {
  background: var(--accent); color: #0a0a0f; font-weight: 500;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg.bot {
  background: var(--card2); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%,60%,100% { transform:none; opacity:0.4; }
  30%          { transform:translateY(-5px); opacity:1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .spec-prev-cards { grid-template-columns: 1fr 1fr; }
  .spec-prev-cards .spec-prev-card:nth-child(4),
  .spec-prev-cards .spec-prev-card:nth-child(5),
  .spec-prev-cards .spec-prev-card:nth-child(6) { grid-column: auto; }

  /* Specialization detail rows stack on mobile via mobile-first CSS */


  .spec-tech-grid { grid-template-columns: 1fr 1fr; }

  /* Router viz stacks vertically */
  .spec-router-viz { flex-direction: column; align-items: flex-start; }
  .spec-router-hub { width: 56px; height: 56px; }

  /* Pipeline wraps */
  .spec-pipeline { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 860px) {
  .tcarousel-slide { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .spec-tech-grid { grid-template-columns: 1fr; }
  .spec-prev-cards { grid-template-columns: 1fr; }
  .spec-visual-card { overflow-x: auto; }
  .spec-preview-section { padding: 3rem 4vw; }
}
@media (max-width: 560px) {
  .tcarousel-slide { flex: 0 0 100%; }
  .tc-prev { left: 0; }
  .tc-next { right: 0; }
  .spec-prev-cards { grid-template-columns: 1fr; }
  .spec-pipeline { flex-direction: column; align-items: stretch; }
  .spec-pip-arrow { transform: rotate(90deg); text-align: center; }
  .spec-router-viz { flex-direction: column; align-items: flex-start; }
  .spec-rag-mid { flex-direction: column; gap: 4px; }
  .spec-rag-arrow-right { transform: rotate(90deg); text-align: center; }
  .spec-mcp-tools { gap: 6px; }
  .spec-cloud-grid { grid-template-columns: 1fr 1fr; }
  .why-compare { grid-template-columns: 1fr; }
  .spec-router-stats { flex-direction: column; gap: 8px; }
  .spec-rs { border-right: none; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .spec-rs:last-child { border-bottom: none; }
}


/* ════════════════════════════════════════════
   SPECIALIZATIONS — Homepage Preview Section
   ════════════════════════════════════════════ */

.spec-preview-section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 5vw;
  background: var(--bg);
  overflow: hidden;
}

/* Animated dot-grid background */
.spec-prev-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(253,184,19,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: specGridDrift 20s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}
@keyframes specGridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

/* Floating orbs */
.spec-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: 0.55;
}
.spec-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(253,184,19,0.22), transparent 70%);
  top: -120px; left: -100px;
  animation: orbFloat1 14s ease-in-out infinite;
}
.spec-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(96,165,250,0.15), transparent 70%);
  bottom: -80px; right: -80px;
  animation: orbFloat2 18s ease-in-out infinite;
}
.spec-orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(167,139,250,0.12), transparent 70%);
  top: 50%; right: 20%;
  animation: orbFloat3 22s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-40px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-30px)} }

.spec-prev-inner { position: relative; z-index: 2; text-align: center; }

/* 5-card grid */
.spec-prev-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
/* Tablet: 2 columns */
@media (max-width: 860px) {
  .spec-prev-cards { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: 1 column */
@media (max-width: 540px) {
  .spec-prev-cards { grid-template-columns: 1fr; }
  .spec-prev-card  { padding: 1.25rem; }
}
/* 6 cards fill 3-col grid perfectly — no special centering needed */
/* On 2-col breakpoint, 5th and 6th cards fill their row */



/* Individual card */
.spec-prev-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.5rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.28s ease, border-color 0.28s, background 0.28s;
}
.spec-prev-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  background: var(--card2);
}
/* Top gold accent line on hover */
.spec-prev-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.spec-prev-card:hover::before { transform: scaleX(1); }

/* Glow behind icon on hover */
.spec-prev-card-glow {
  position: absolute; top: -40px; left: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253,184,19,0.12), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.spec-prev-card:hover .spec-prev-card-glow { opacity: 1; }

.spec-prev-icon-wrap { margin-bottom: 0.5rem; }
.spec-prev-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(253,184,19,0.1); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.25s, background 0.25s;
}
.spec-prev-card:hover .spec-prev-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(253,184,19,0.18);
}
.spec-prev-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3;
}
.spec-prev-card p {
  color: var(--muted); font-size: 0.86rem; line-height: 1.65; flex: 1;
}
.spec-prev-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.5rem;
}
.spec-prev-tags span {
  font-size: 0.7rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 50px;
}
.spec-prev-arrow {
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  margin-top: 0.75rem; transition: transform 0.2s;
}
.spec-prev-card:hover .spec-prev-arrow { transform: translateX(4px); }


/* ════════════════════════════════════════════
   SPECIALIZATIONS — Page Hero
   ════════════════════════════════════════════ */

.spec-hero {
  position: relative; overflow: hidden;
  background: var(--bg);
}
.spec-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(253,184,19,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,184,19,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: specGridDrift 24s linear infinite;
  pointer-events: none;
}
.spec-hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.spec-hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(253,184,19,0.15), transparent 70%);
  top: -150px; left: -100px;
}
.spec-hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(96,165,250,0.1), transparent 70%);
  bottom: -120px; right: -80px;
}


/* ════════════════════════════════════════════
   SPECIALIZATIONS — Detail Sections
   ════════════════════════════════════════════ */

/* Mobile first: stack vertically */
.spec-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.spec-detail-row > * {
  width: 100%;
  min-width: 0;
}
/* Desktop: side by side */
@media (min-width: 901px) {
  .spec-detail-row {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
  }
  .spec-detail-row > * {
    flex: 1;
    width: auto;
  }
}


.spec-detail-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; margin-bottom: 1rem; line-height: 1.2;
}
.spec-detail-desc {
  color: var(--muted); line-height: 1.8;
  margin-bottom: 1.5rem; font-size: 0.95rem;
}
.spec-feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.65rem;
  color: var(--muted); font-size: 0.9rem;
}
.spec-feature-list li { line-height: 1.55; }

.spec-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Visual cards */
.spec-visual-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  overflow: hidden;
  max-width: 100%;
}
.spec-visual-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 1.25rem;
}

/* Pipeline (Spec 01) */
.spec-pipeline {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.spec-pipeline-step {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 80px;
}
.spec-pip-icon { font-size: 1.1rem; flex-shrink: 0; }
.spec-pip-text { display: flex; flex-direction: column; }
.spec-pip-text strong { font-size: 0.78rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.spec-pip-text span   { font-size: 0.7rem; color: var(--muted); }
.spec-pip-arrow { color: var(--accent); font-size: 1rem; font-weight: 700; flex-shrink: 0; }

/* Tech badges */
.spec-tech-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.5rem;
}
.spec-badge {
  font-size: 0.73rem; font-weight: 600; color: var(--accent);
  background: rgba(253,184,19,0.08); border: 1px solid var(--border2);
  padding: 3px 10px; border-radius: 50px;
}

/* LLM Router viz (Spec 02) */
.spec-router-viz {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.spec-router-hub {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(253,184,19,0.35);
  flex-shrink: 0;
}
.spec-router-hub-inner {
  display: flex; flex-direction: column; align-items: center;
  font-size: 1.4rem; line-height: 1;
}
.spec-router-hub-inner small {
  font-size: 0.6rem; font-weight: 700;
  color: #0a0a0f; letter-spacing: 0.06em;
}
.spec-router-providers {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.spec-router-provider {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600;
}
.spec-router-provider small { color: var(--muted); font-size: 0.72rem; font-weight: 400; margin-left: auto; }
.spec-rp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rp-green  { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.6); }
.rp-blue   { background: #60a5fa; box-shadow: 0 0 6px rgba(96,165,250,0.6); }
.rp-purple { background: #a78bfa; box-shadow: 0 0 6px rgba(167,139,250,0.6); }
.rp-orange { background: #fb923c; box-shadow: 0 0 6px rgba(251,146,60,0.6); }

.spec-router-stats {
  display: flex; gap: 0; border-top: 1px solid var(--border);
  padding-top: 1rem; margin-top: 0.25rem;
}
.spec-rs {
  flex: 1; text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 8px;
}
.spec-rs:last-child { border-right: none; }
.spec-rs strong { display: block; font-size: 1rem; color: var(--accent); font-weight: 800; }
.spec-rs span   { font-size: 0.72rem; color: var(--muted); }

/* MCP Diagram (Spec 03) */
.spec-mcp-diagram {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  margin-bottom: 1.25rem;
}
.spec-mcp-top { width: 100%; display: flex; justify-content: center; }
.spec-mcp-box {
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700; border: 1px solid var(--border);
}
.mcp-agent {
  background: linear-gradient(135deg, rgba(253,184,19,0.15), rgba(253,184,19,0.05));
  border-color: var(--border2); color: var(--text);
}
.spec-mcp-arrows {
  display: flex; align-items: center; gap: 6px; width: 100%;
  justify-content: center; flex-wrap: wrap;
}
.spec-mcp-line { flex: 1; height: 1px; background: var(--border); max-width: 60px; }
.spec-mcp-proto {
  font-size: 0.68rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(253,184,19,0.08); border: 1px solid var(--border2);
  padding: 3px 10px; border-radius: 50px;
}
.spec-mcp-server-box {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 24px; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.spec-mcp-tools {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.spec-mcp-tool {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px;
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 1rem;
}
.spec-mcp-tool small { font-size: 0.68rem; color: var(--muted); }

/* Cloud grid (Spec 04) */
.spec-cloud-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 0;
}
.spec-cloud-provider {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; text-align: center;
}
.spec-cp-icon {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; margin-bottom: 2px;
}
.spec-cloud-provider span { font-size: 0.85rem; font-weight: 700; }
.spec-cloud-provider small { font-size: 0.7rem; color: var(--muted); }

/* Data stack (Spec 05) */
.spec-data-stack {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 0.5rem;
}
.spec-ds-layer {
  background: var(--card2); border: 1px solid;
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.spec-ds-icon { font-size: 1.3rem; flex-shrink: 0; }
.spec-ds-layer strong { display: block; font-size: 0.85rem; font-weight: 700; }
.spec-ds-layer small  { font-size: 0.75rem; color: var(--muted); }
.spec-ds-arrow {
  text-align: center; color: var(--accent);
  font-size: 0.9rem; line-height: 1; opacity: 0.7;
}

/* ── Tech Stack Strip ── */
.spec-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.spec-tech-category {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.spec-tech-category h4 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 1rem;
}
.spec-tech-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.spec-tech-tags span {
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.spec-tech-tags span:hover { color: var(--text); border-color: rgba(253,184,19,0.3); }

/* ── Responsive ── */



/* ── RAG Pipeline Flow Diagram ── */
.spec-rag-flow {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 0.5rem;
}
.spec-rag-step {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.2s;
}
.spec-rag-step:hover { border-color: var(--border2); }
.spec-rag-step-icon { font-size: 1.2rem; flex-shrink: 0; }
.spec-rag-step-body { display: flex; flex-direction: column; }
.spec-rag-step-body strong { font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.spec-rag-step-body span  { font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.spec-rag-connector {
  text-align: center; color: var(--accent);
  font-size: 0.85rem; opacity: 0.6; line-height: 1;
}
/* Middle row: query + arrow + retrieve */
.spec-rag-mid {
  display: flex; align-items: center; gap: 6px;
}
.spec-rag-query,
.spec-rag-retrieve {
  flex: 1; background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px;
  display: flex; align-items: center; gap: 10px;
}
.spec-rag-arrow-right {
  color: var(--accent); font-size: 1rem;
  font-weight: 700; flex-shrink: 0;
}
