:root {
  /* Colors */
  --bg-primary: #050505;
  --bg-secondary: #0D0D0D;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border-subtle: #1a1a1a;
  --border-card: #222222;

  --text-primary: #F5F5F5;
  --text-secondary: #999999;
  --text-tertiary: #666666;

  --accent: #CCFF00;
  --accent-dim: rgba(204, 255, 0, 0.15);
  --accent-glow: rgba(204, 255, 0, 0.08);

  --red: #FF4444;
  --orange: #FF9500;
  --green: #34C759;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ─── NAV ──────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo svg {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 120;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--accent);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--accent);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

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

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── HERO ─────────────────────────────────────────── */

.hero {
  padding-top: calc(var(--section-padding) + 3rem);
  padding-bottom: var(--section-padding);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  max-width: 100vw;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--border-card);
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-card);
}

/* ─── DEMO CARD & SCENARIO SWITCHER ──────────────── */

.hero-demo {
  width: 100%;
}

.scenario-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scenario-tabs::-webkit-scrollbar {
  display: none;
}

.scenario-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.scenario-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.scenario-tab.active {
  background: var(--bg-secondary);
  color: var(--accent);
  border-color: rgba(204, 255, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.demo-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.demo-header .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.demo-header span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.demo-body {
  padding: 1.125rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  height: 385px;
  min-height: 385px;
  max-height: 385px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.demo-alert {
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid;
}

.demo-alert.high {
  background: rgba(255, 68, 68, 0.06);
  border-color: rgba(255, 68, 68, 0.15);
}

.demo-alert.medium {
  background: rgba(255, 149, 0, 0.06);
  border-color: rgba(255, 149, 0, 0.15);
}

.demo-alert .severity {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 0.05rem;
}

.demo-alert.high .severity { color: var(--red); }
.demo-alert.medium .severity { color: var(--orange); }

.demo-alert .desc {
  color: var(--text-secondary);
  font-size: 0.775rem;
  line-height: 1.45;
}

.demo-alert .desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.demo-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.demo-score {
  text-align: center;
  padding: 0.45rem 0.25rem;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.demo-score .label {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.demo-score .value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.1rem;
  letter-spacing: -0.02em;
}

.demo-score .value.bad { color: var(--red); }
.demo-score .value.ok { color: var(--orange); }
.demo-score .value.good { color: var(--green); }

/* ─── CHAT ANIMATION ──────────────────────────────── */

.chat-phase {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-msg {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-msg.customer { align-self: flex-end; max-width: 88%; }
.chat-msg.agent { align-self: flex-start; max-width: 88%; }
.chat-msg.system { align-self: center; max-width: 95%; }

.chat-bubble {
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-size: 0.775rem;
  line-height: 1.4;
  position: relative;
}

.customer-bubble {
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.12);
  color: var(--text-primary);
  border-bottom-right-radius: 3px;
}

.agent-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-bottom-left-radius: 3px;
}

.system-bubble {
  background: rgba(255, 149, 0, 0.06);
  border: 1px solid rgba(255, 149, 0, 0.12);
  color: var(--orange);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.chat-name {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.customer-bubble .chat-name { color: var(--accent); }
.agent-bubble .chat-name { color: var(--text-tertiary); }

.chat-time {
  display: block;
  font-size: 0.58rem;
  color: var(--text-tertiary);
  text-align: right;
  margin-top: 0.1rem;
}

/* Analysis Phase */
.analysis-phase {
  display: none;
  width: 100%;
}

.analysis-phase.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.analysis-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.analysis-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.analysis-journey {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.analysis-journey strong {
  color: var(--text-primary);
}

.analysis-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.analysis-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-phase.fading {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

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

/* ─── PROBLEM SECTION ──────────────────────────────── */

.problem {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 600px;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.problem-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  transition: border-color 0.25s, background 0.25s;
}

.problem-card:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-card-hover);
}

.problem-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.problem-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── HOW IT WORKS ─────────────────────────────────── */

.how {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--border-subtle);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  counter-increment: step;
  position: relative;
  transition: border-color 0.25s;
}

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

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── DETECTIONS ───────────────────────────────────── */

.detections {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--border-subtle);
}

.detect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.detect-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}

.detect-item:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-card-hover);
}

.detect-item .emoji {
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ─── PRICING ──────────────────────────────────────── */

.pricing {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--border-subtle);
}

.pricing .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pricing .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.2s;
}

.price-card:hover {
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(204, 255, 0, 0.03), var(--bg-card));
}

.price-card .plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.price-card.featured .plan-name {
  color: var(--accent);
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.price-card .price .currency {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 0.125rem;
}

.price-card .price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.price-card .price-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.price-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  letter-spacing: -0.01em;
}

.price-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.price-card .btn-primary,
.price-card .btn-secondary {
  text-align: center;
  width: 100%;
  display: block;
}

/* ─── FAQ ──────────────────────────────────────────── */

.faq {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .chevron {
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question .chevron {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

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

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── CTA FINAL ────────────────────────────────────── */

.final-cta {
  padding: var(--section-padding) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* ─── FOOTER ───────────────────────────────────────── */

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

footer a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text-secondary);
}

/* ─── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-demo {
    width: 100%;
    max-width: 620px;
    min-width: 0;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  nav {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .nav-logo svg {
    width: 115px;
    height: 42px;
  }

  .mobile-menu-btn {
    display: flex;
    margin-right: 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 300px;
    height: 100vh;
    background: #0D0D0D;
    border-left: 1px solid var(--border-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    gap: 1.25rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
    z-index: 110;
    display: flex;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.0625rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: none;
  }

  .hero {
    padding-top: 4.75rem;
    padding-bottom: 2.25rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .hero-badge {
    font-size: 0.725rem;
    padding: 0.3rem 0.75rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    box-sizing: border-box;
  }

  .hero h1 br {
    display: none;
  }

  .hero-sub {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.18;
    width: 100%;
    box-sizing: border-box;
  }

  .section-desc {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-demo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .scenario-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .demo-card {
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .demo-body {
    height: 425px;
    min-height: 425px;
    max-height: 425px;
    padding: 0.6rem 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .chat-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: flex-start;
  }

  .chat-msg.customer, .chat-msg.agent {
    max-width: 90%;
  }

  .chat-msg.system {
    max-width: 98%;
    margin-top: 0.1rem;
  }

  .chat-bubble {
    font-size: 0.71rem;
    line-height: 1.35;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    word-break: break-word;
  }

  .chat-bubble.system-bubble {
    font-size: 0.68rem;
    padding: 0.28rem 0.55rem;
    line-height: 1.3;
  }

  .chat-name {
    font-size: 0.58rem;
    margin-bottom: 1px;
    display: block;
  }

  .chat-time {
    font-size: 0.56rem;
    margin-left: 0.35rem;
  }

  .analysis-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .demo-alert {
    padding: 0.5rem 0.65rem;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    width: 100%;
    box-sizing: border-box;
  }

  .demo-alert .desc {
    font-size: 0.725rem;
  }

  .demo-scores {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    padding-top: 0.4rem;
    width: 100%;
    box-sizing: border-box;
  }

  .demo-score {
    padding: 0.35rem 0.15rem;
  }

  .demo-score .value {
    font-size: 0.95rem;
  }

  .detect-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .detect-item {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    width: 100%;
    box-sizing: border-box;
  }

  .problem-grid, .steps {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    width: 100%;
    box-sizing: border-box;
  }

  .problem-card, .step {
    padding: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .price-card {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .faq-question {
    font-size: 0.9375rem;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
  }

  .btn-primary, .btn-secondary {
    text-align: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
  }

  .demo-scores {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }
}
