/* ============================================
   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: 99;
  flex-direction: column; gap: 1.2rem;
}
.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);
}

/* ── 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: 2fr 1fr 1fr 1fr;
  gap: 2.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: 900px) {
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@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; }
}
@media (max-width: 560px) {
  .tcarousel-slide { flex: 0 0 100%; }
  .tc-prev { left: 0; }
  .tc-next { right: 0; }
}
