/* ══════════════════════════════════════════════
   NAROSCO — Dark Industrial Futurism
   Design Direction: Severe dark + amber accent
   DFII Score: 13/15
   ══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg-0: #ffffff;
  --bg-1: #f8f9fa;
  --bg-2: #ffffff;
  --bg-3: #f1f3f4;

  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.1);
  --accent-glow: rgba(249, 115, 22, 0.05);

  --text-0: #202124;
  --text-1: #5f6368;
  --text-2: #80868b;

  --border: #e0e0e0;
  --border-accent: rgba(249, 115, 22, 0.3);

  --nav-bg: rgba(255, 255, 255, 0.9);
  --modal-bg: rgba(255, 255, 255, 0.85);
  --manifesto-tag-border: rgba(255, 255, 255, 0.4);
  --manifesto-text: rgba(255, 255, 255, 0.9);
  --manifesto-pattern: rgba(255, 255, 255, 0.25);

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 100px;
  --radius-lg: 24px;

  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-0: #080a0f;
  --bg-1: #0d1117;
  --bg-2: #131921;
  --bg-3: #1c2535;

  --text-0: #f0f4ff;
  --text-1: #a8b3cc;
  --text-2: #5c6b84;

  --border: rgba(255, 255, 255, 0.07);

  --nav-bg: rgba(8, 10, 15, 0.8);
  --modal-bg: rgba(8, 10, 15, 0.85);
  --manifesto-tag-border: rgba(8, 10, 15, 0.25);
  --manifesto-text: rgba(8, 10, 15, 0.85);
  --manifesto-pattern: rgba(8, 10, 15, 0.15);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── CONTAINERS ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.container-narrow {
  max-width: 860px;
}

/* ── TYPOGRAPHY ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  overflow-wrap: break-word;
  /* Prevent long words from breaking layout */
}

.section-title.no-margin-top {
  margin-top: 0;
}

.highlight {
  color: var(--accent);
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════
   NAV
══════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-0);
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: block;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg-0);
  border-radius: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  transition: color var(--transition);
}

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

.btn-nav {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-0);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

#grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-1);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-0);
  background: var(--accent);
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--text-0);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-0);
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  max-width: 120px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero Visual — Agent Diagram */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-diagram {
  position: relative;
  width: 360px;
  height: 360px;
}

.agent-node {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  animation: float-node 4s ease-in-out infinite;
}

.agent-node:hover {
  border-color: var(--border-accent);
  color: var(--text-0);
  background: var(--bg-3);
}

.agent-node.central {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  font-weight: 600;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: none;
  padding: 12px 20px;
  font-size: 14px;
}

#node-1 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

#node-2 {
  top: 30%;
  right: 0;
  animation-delay: 0.4s;
}

#node-3 {
  bottom: 25%;
  right: 5%;
  animation-delay: 0.8s;
}

#node-4 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.2s;
}

#node-5 {
  top: 28%;
  left: 0;
  animation-delay: 1.6s;
}

.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes float-node {

  0%,
  100% {
    transform: translateY(0) translateX(var(--tx, 0));
  }

  50% {
    transform: translateY(-6px) translateX(var(--tx, 0));
  }
}

/* ══════════════════════════
   PROBLEM
══════════════════════════ */
.problem {
  padding: clamp(80px, 10vw, 20px) 0;
  text-align: center;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.pain-card {
  background: var(--bg-1);
  padding: 2rem;
  text-align: left;
  transition: background var(--transition);
}

.pain-card:hover {
  background: var(--bg-2);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.65;
}

/* ══════════════════════════
   MANIFESTO
══════════════════════════ */
.manifesto {
  padding: clamp(80px, 10vw, 120px) 0;
}

.manifesto-box {
  background: var(--accent);
  color: var(--bg-0);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.15);
  position: relative;
  overflow: hidden;
}

/* Add a subtle dark grain or pattern inside */
.manifesto-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--manifesto-pattern) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 1;
}

.manifesto-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-0);
  border: 1.5px solid var(--manifesto-tag-border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--bg-0);
  position: relative;
  z-index: 2;
}

.highlight-dark {
  position: relative;
  display: inline-block;
}

.highlight-dark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  background: var(--bg-0);
  z-index: -1;
  opacity: 0.9;
}

.manifesto-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  max-width: 840px;
  margin: 0 auto;
  font-weight: 500;
  color: var(--manifesto-text);
  position: relative;
  z-index: 2;
}

.manifesto-text strong {
  color: var(--bg-0);
  font-weight: 800;
}

/* ══════════════════════════
   HOW IT WORKS
══════════════════════════ */
.how-it-works {
  padding: clamp(80px, 10vw, 120px) 0;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.step {
  flex: 1;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}

.step:hover {
  border-color: var(--border-accent);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 1rem;
  /* Outline text */
  -webkit-text-stroke: 1px rgba(249, 115, 22, 0.3);
  color: transparent;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-0);
}

.step p {
  font-size: 14px;
  color: var(--text-1);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-2);
  padding-top: 2.5rem;
  flex-shrink: 0;
}

/* Use Cases */
.use-cases-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.use-cases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.use-case-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-1);
  transition: border-color var(--transition), color var(--transition);
}

.use-case-item:hover {
  border-color: var(--border-accent);
  color: var(--text-0);
}

.uc-icon {
  font-size: 1.1rem;
}

/* ══════════════════════════
   RESULTS
══════════════════════════ */
.results {
  padding: clamp(80px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
  flex: 1;
  position: relative;
  padding-left: 1.25rem;
}

.testimonial-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
}

.author-role {
  font-size: 12px;
  color: var(--text-2);
}

.testimonial-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.metric-label {
  font-size: 12px;
  color: var(--text-2);
}

/* ══════════════════════════
   FAQ
══════════════════════════ */
.faq {
  padding: clamp(80px, 10vw, 120px) 0;
  text-align: center;
}

.faq-list {
  margin-top: 3rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-0);
  text-align: left;
  background: none;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-2);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-2);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease, padding var(--transition);
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.7;
}

/* ══════════════════════════
   CONTACT
══════════════════════════ */
.contact {
  padding: clamp(80px, 10vw, 120px) 0;
}

.contact-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* minmax(0, 1fr) prevents min-content blowout */
  gap: 4rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-1);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-benefits li {
  font-size: 14px;
  color: var(--text-1);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-0);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235c6b84' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-group input::placeholder {
  color: var(--text-2);
}

option {
  background: var(--bg-1);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--bg-0);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.3);
}

.form-note {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-2);
  max-width: 220px;
  margin-top: 0.75rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-1);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ══════════════════════════
   MODAL
══════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modal-bg);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.modal-box p {
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 2rem;
}

/* ══════════════════════════
   ANIMATIONS & SCROLL
══════════════════════════ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-delay-1 {
  animation-delay: 0.1s;
}

.anim-delay-2 {
  animation-delay: 0.2s;
}

.anim-delay-3 {
  animation-delay: 0.3s;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-sub {
    margin: 0 auto 2.5rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-divider {
    display: none;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.br-desktop {
  display: none;
}

@media (min-width: 768px) {
  .br-desktop {
    display: block;
  }
}

/* ══════════════════════════════════════════════
   AI CHAT WIDGET
   ══════════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.chat-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b30;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-0);
  padding: 0 4px;
}

.chat-panel {
  width: min(calc(100vw - 3rem), 380px);
  height: min(calc(100vh - 8rem), 600px);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition), transform var(--transition);
}

.chat-panel[hidden] {
  display: flex;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-bot-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-bot-details {
  display: flex;
  flex-direction: column;
}

.chat-bot-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-0);
}

.chat-status {
  font-size: 0.75rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  background: #34c759;
  border-radius: 50%;
}

.chat-close-btn {
  color: var(--text-1);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.chat-close-btn:hover {
  color: var(--text-0);
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Custom Scrollbar for messages */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-message {
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  animation: fadeIn 300ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--accent-dim);
  color: var(--text-0);
  border: 1px solid var(--border-accent);
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 1rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: none;
  max-height: 120px;
  transition: border-color var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
  opacity: 0.9;
}