:root {
  /* GENSHI.ai Brand Colors — warm orange gradient system (inspired by medimo) */
  --color-primary: #E8461E;
  --color-primary-dark: #D13A15;
  --color-secondary: #F26B1D;
  --color-secondary-dark: #D85A14;
  --color-accent: #2D3748;
  --color-accent-dark: #1A202C;
  --color-third: #FDA000;
  --color-primary-light: rgba(232, 70, 30, 0.05);
  --color-accent-light: rgba(45, 55, 72, 0.06);
  --color-text: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-muted: #A0AEC0;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #FFFBF8;
  --color-bg-alt: #FFF7F2;
  --color-border: #EDE5DF;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-running: #F59E0B;
  /* Orange gradient (like medimo) */
  --gradient-orange: linear-gradient(135deg, #FDA000 0%, #F26B1D 50%, #E8461E 100%);
  --gradient-orange-soft: linear-gradient(135deg, #FDA000 0%, #FD7900 100%);
  --gradient-orange-glow: 0 4px 20px rgba(253, 121, 0, .25);
  --gradient-orange-glow-hover: 0 8px 30px rgba(253, 121, 0, .35);
  /* Radii — rounder for modern feel */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  /* Shadows — softer, warmer tint */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .03), 0 1px 2px rgba(0, 0, 0, .02);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .03);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .03);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .08);
  --font-sans: "Inter", "Noto Sans JP", -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s
}

button,
input {
  font-family: inherit
}

img {
  max-width: 100%;
  height: auto
}

.container {
  width: min(1140px, 90%);
  margin: 0 auto
}

.hidden {
  display: none !important
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px) }
  to { opacity: 1; transform: translateY(0) }
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92) }
  to { opacity: 1; transform: scale(1) }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px) }
  to { opacity: 1; transform: translateX(0) }
}

@keyframes float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-8px) }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

@keyframes wave {
  0%, 100% { height: 20% }
  50% { height: 100% }
}

.animate {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1)
}

.animate.fade-up {
  transform: translateY(36px)
}

.animate.fade-in {}

.animate.scale-in {
  transform: scale(.92)
}

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

/* stagger children */
.stagger .animate:nth-child(1) { transition-delay: .06s }
.stagger .animate:nth-child(2) { transition-delay: .14s }
.stagger .animate:nth-child(3) { transition-delay: .22s }
.stagger .animate:nth-child(4) { transition-delay: .30s }
.stagger .animate:nth-child(5) { transition-delay: .38s }
.stagger .animate:nth-child(6) { transition-delay: .46s }

/* ── Navigation ── */
.navbar {
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  letter-spacing: -.01em;
}

.logo .mark {
  width: 10px;
  height: 10px;
  background: var(--gradient-orange-soft);
  border-radius: 50%;
  display: block
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--color-text-secondary)
}

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
  border: 1px solid transparent;
  letter-spacing: -.005em;
}

.btn-primary {
  background: var(--gradient-orange-soft);
  color: #fff;
  box-shadow: var(--gradient-orange-glow);
  border: none;
}

.btn-primary:hover {
  box-shadow: var(--gradient-orange-glow-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text)
}

.btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: #d1d5db
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary)
}

.btn-ghost:hover {
  background: var(--color-primary-light)
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(253, 160, 0, .03) 0%, transparent 50%),
    linear-gradient(180deg, #FFFDFB 0%, #FFF9F5 50%, #FFF 100%);
  overflow: hidden;
  position: relative;
}

/* Dot grid with fade mask (Linear.app style) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 200, 200, .15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  background: radial-gradient(circle, rgba(232, 70, 30, .06) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-centered {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 0 0 24px;
  color: var(--color-text);
  font-weight: 800;
}

.highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  white-space: nowrap
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(253, 160, 0, .15), rgba(232, 70, 30, .12));
  border-radius: 4px;
  z-index: -1;
}

.hero-content > p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0 auto 36px;
  max-width: 480px;
  line-height: 1.85
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center
}

.hero-cta .btn {
  height: 52px;
  padding: 0 32px;
  font-size: .95rem;
  border-radius: var(--radius-md);
}

.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 56px;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding-top: 32px
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.65rem;
  color: var(--color-text);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.stat-item span {
  font-size: .76rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

/* ── Hero Visual Mockup ── */
.hero-visual {
  max-width: 740px;
  margin: 56px auto 0;
}

.hero-mockup {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: #F7F7F7;
  border-bottom: 1px solid #ECECEC;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #DDD;
}

.mockup-dot:first-child { background: #FF6058; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27CA41; }

.mockup-body {
  display: flex;
  min-height: 220px;
}

.mockup-sidebar {
  width: 56px;
  padding: 20px 12px;
  background: #FAFAFA;
  border-right: 1px solid #F0F0F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-nav-item {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EEEEEE;
  transition: background .3s;
}

.mockup-nav-item.active {
  background: var(--gradient-orange-soft);
  box-shadow: 0 2px 8px rgba(253, 121, 0, .2);
}

.mockup-content {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mockup-wave {
  height: 48px;
}

.mockup-wave svg {
  width: 100%;
  height: 48px;
}

.mockup-text-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #F0F0F0 0%, #F8F8F8 50%, #F0F0F0 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* ── Section Common ── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-text);
  margin: 0 0 14px;
  line-height: 1.3
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0 auto;
  line-height: 1.8;
  max-width: 520px;
}

/* ── Credibility Bar ── */
.credibility-bar {
  padding: 20px 0;
  background: #FAFAFA;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  border-top: 1px solid rgba(0, 0, 0, .02);
}

.credibility-items {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.credibility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.credibility-item svg {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.credibility-icon {
  color: var(--color-third);
  font-size: .45rem;
}

/* ── Challenges ── */
.challenges-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.challenges-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23999' fill-opacity='0.06'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent 100%);
  pointer-events: none;
}

.challenges-header {
  text-align: center;
  margin-bottom: 60px;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.challenge-card {
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1);
  position: relative;
}

.challenge-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.challenge-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.challenge-number {
  font-size: .68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  letter-spacing: .06em;
}

.challenge-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.challenge-card p {
  font-size: .88rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.75;
}

/* ── Products / Features Grid ── */
.products-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FAFAFA 0%, #F7F7F7 50%, #FAFAFA 100%);
  position: relative;
  overflow: hidden;
}

.products-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}

.products-header {
  text-align: center;
  margin-bottom: 60px
}

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

.feature-card {
  padding: 32px 28px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1);
  position: relative;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-number {
  font-size: .68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  letter-spacing: .06em;
}

.feature-image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-text-secondary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: .88rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.75;
}

/* ── Strengths (Why GENSHI) — v2 4-card layout ── */
.strengths-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
}

.strengths-header {
  text-align: center;
  margin-bottom: 60px
}

.strengths-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.strength-card-v2 {
  padding: 36px 32px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1);
  position: relative;
}

.strength-card-v2:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.strength-icon-v2 {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, box-shadow .3s;
}

.strength-icon-v2.accuracy,
.strength-icon-v2.pricing,
.strength-icon-v2.security,
.strength-icon-v2.founder {
  background: #F5F5F5;
  color: var(--color-text-secondary);
}

.strength-card-v2:hover .strength-icon-v2 {
  transform: scale(1.08);
}

.strength-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--color-bg-alt);
  color: var(--color-secondary);
}

.strength-card-v2 h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.strength-card-v2 > p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: .88rem;
  line-height: 1.75;
}

/* Legacy 3-col grid (keep for safety) */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.strength-card {
  padding: 40px 28px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.strength-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #FFF5EB 0%, #FFE8D6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

/* ── How It Works ── */
.how-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FAFAFA 0%, #F7F7F7 50%, #FAFAFA 100%);
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 200, 200, .12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 40%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 40%);
  pointer-events: none;
}

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 940px;
  margin: 0 auto;
}

.how-step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-orange-soft);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(253, 121, 0, .25);
}

.how-step h3 {
  font-size: .98rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.how-step p {
  font-size: .86rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.75;
}

.how-step-arrow {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  color: var(--color-third);
  opacity: .5;
}

/* ── Solutions ── */
.solutions-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.solutions-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 16L16 0M-4 4L4 -4M12 20L20 12' stroke='%23999' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

.solutions-header {
  text-align: center;
  margin-bottom: 60px
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.solution-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px)
}

/* Solution visual placeholders */
.solution-visual {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .5s;
}

.solution-visual--callcenter,
.solution-visual--sales,
.solution-visual--backoffice,
.solution-visual--medical { background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%); }

.solution-card:hover .solution-visual {
  transform: scale(1.03);
}

.solution-text {
  padding: 28px;
}

.solution-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.solution-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: linear-gradient(135deg, rgba(253, 160, 0, .08) 0%, rgba(232, 70, 30, .06) 100%);
  color: var(--color-secondary);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.solution-text p {
  font-size: .88rem;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.75
}

/* ── Domain CTA banner ── */
.domain-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  position: relative;
  overflow: hidden;
}

/* Grid overlay on dark background */
.domain-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

/* Noise texture overlay */
.domain-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.domain-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.domain-inner h2 {
  font-size: 1.7rem;
  color: #FFFFFF;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.domain-inner p {
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
  margin: 0;
  max-width: 480px;
  line-height: 1.8
}

.btn-domain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 52px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  background: var(--gradient-orange-soft);
  color: #fff;
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 4px 20px rgba(253, 121, 0, .3);
  white-space: nowrap;
}

.btn-domain:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253, 121, 0, .4);
  filter: brightness(1.05);
}

/* ── Pricing ── */
.pricing-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FAFAFA 0%, #F7F7F7 50%, #FAFAFA 100%);
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 200, 200, .1) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, transparent 100%);
  pointer-events: none;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 36px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.recommended {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 2px var(--color-secondary), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-orange-soft);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(253, 121, 0, .2);
}

.pricing-plan-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text);
  letter-spacing: -.01em;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 4px;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.pricing-price small {
  font-size: .75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-points {
  font-size: .82rem;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
  font-weight: 500;
}

.pricing-discount {
  font-size: .72rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(253, 160, 0, .1) 0%, rgba(232, 70, 30, .08) 100%);
  color: var(--color-secondary);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pricing-features li {
  padding: 6px 0;
  font-size: .82rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--color-success);
  font-weight: 700;
  font-size: .7rem;
  flex-shrink: 0;
}

.pricing-features li.unavailable {
  color: var(--color-text-muted);
  opacity: .6;
}

.pricing-features li.unavailable::before {
  content: "\2014";
  color: var(--color-text-muted);
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.btn-pricing:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-pricing.primary {
  background: var(--gradient-orange-soft);
  color: #fff;
  border: none;
  box-shadow: var(--gradient-orange-glow);
}

.btn-pricing.primary:hover {
  box-shadow: var(--gradient-orange-glow-hover);
  filter: brightness(1.05);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: .82rem;
  color: var(--color-text-muted);
}

/* ── Cases ── */
.cases-section {
  padding: 100px 0;
  background: var(--color-bg-subtle)
}

.cases-header {
  text-align: center;
  margin-bottom: 52px
}

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

.case-card {
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow .3s, transform .3s;
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.case-quote {
  font-size: .92rem;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 20px;
  font-style: italic;
  padding-left: 14px;
  border-left: 3px solid var(--color-third);
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 10px
}

.case-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF5EB 0%, #FFECE0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-secondary);
}

.case-info strong {
  display: block;
  font-size: .85rem
}

.case-info span {
  font-size: .72rem;
  color: var(--color-text-muted)
}

.case-metrics {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border)
}

.case-metric strong {
  display: block;
  font-size: 1.15rem;
  background: var(--gradient-orange-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-metric span {
  font-size: .68rem;
  color: var(--color-text-muted)
}

/* ── Demo Section ── */
.demo-section {
  padding: 100px 0;
  background:
    radial-gradient(circle 500px at 50% 0%, rgba(253, 160, 0, .04) 0%, transparent 100%),
    var(--color-bg-subtle);
  position: relative;
}

.demo-header {
  text-align: center;
  margin-bottom: 48px
}

.demo-wrapper {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, .05);
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: #FAFAF9
}

.demo-tab {
  flex: 1;
  text-align: center;
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-text-muted);
  transition: all .2s;
  border-bottom: 2px solid transparent;
}

.demo-tab.active {
  background: #fff;
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.demo-tab:hover:not(.active) {
  background: #f3f4f6
}

.demo-panel {
  display: none;
  padding: 36px;
  position: relative
}

.demo-panel.active {
  display: block
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #F3F4F6;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor
}

.status-badge.recording {
  color: var(--color-primary);
  background: rgba(232, 70, 30, .06)
}

.status-badge.working {
  color: var(--color-running);
  background: rgba(245, 158, 11, .08)
}

.status-badge.ready {
  color: var(--color-success);
  background: rgba(16, 185, 129, .08)
}

.status-badge.streaming {
  color: var(--color-primary);
  background: rgba(232, 70, 30, .06);
  animation: pulse 2s ease-in-out infinite
}

.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: all .2s;
  background: #FAFAF9;
}

.upload-area:hover {
  border-color: var(--color-third);
  background: #FFFCFA;
}

.result-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px
}

.result-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #FAFAF9
}

.result-box h4 {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em
}

.result-content {
  font-size: .88rem;
  white-space: pre-wrap;
  min-height: 100px;
  max-height: 360px;
  overflow-y: auto;
  color: var(--color-text-secondary)
}

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

.timer-display {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  line-height: 1;
  margin: 8px 0
}

.wave-visualizer {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 16px 0
}

.wave-bar {
  width: 5px;
  height: 20%;
  background: var(--gradient-orange-soft);
  border-radius: 3px;
  animation: wave 1s ease-in-out infinite;
  animation-play-state: paused;
  opacity: .25
}

body.is-recording .wave-bar {
  animation-play-state: running;
  opacity: 1
}

.wave-bar:nth-child(odd) { animation-duration: .8s }
.wave-bar:nth-child(2) { animation-delay: .1s }
.wave-bar:nth-child(3) { animation-delay: .2s }
.wave-bar:nth-child(4) { animation-delay: .3s }
.wave-bar:nth-child(5) { animation-delay: .4s }

/* ── Mode Toggle ── */
.mode-toggle {
  display: inline-flex;
  background: #F3F4F6;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px
}

.mode-toggle-option {
  padding: 7px 22px;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all .2s ease
}

.mode-toggle-option.active {
  background: #fff;
  color: var(--color-secondary);
  box-shadow: var(--shadow-sm)
}

.mode-toggle-option:hover:not(.active) {
  color: var(--color-text-secondary)
}

/* ── Streaming Transcript ── */
.stream-results {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 28px
}

.stream-transcript {
  min-height: 120px;
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth
}

.stream-sentence {
  padding: 6px 10px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  transition: all .4s ease;
  position: relative
}

.stream-sentence.recognized {
  color: var(--color-text-secondary);
  background: transparent
}

.stream-sentence.corrected {
  color: var(--color-text);
  background: rgba(16, 185, 129, .06);
  animation: correctionFlash 1.2s ease forwards
}

.stream-sentence.corrected::after {
  content: "\2713";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .7rem;
  color: #10b981;
  opacity: 0;
  animation: badgeFadeIn .6s ease .2s forwards
}

@keyframes correctionFlash {
  0% { background: rgba(16, 185, 129, .15) }
  100% { background: rgba(16, 185, 129, .04) }
}

@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(4px) }
  to { opacity: .7; transform: translateY(-50%) translateX(0) }
}

.stream-listening {
  padding: 10px;
  font-size: .85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px
}

.stream-listening::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  animation: pulse 1.2s ease-in-out infinite
}

.stream-listening .dots::after {
  content: "";
  animation: ellipsis 1.5s steps(4, end) infinite
}

@keyframes ellipsis {
  0%   { content: "" }
  25%  { content: "." }
  50%  { content: ".." }
  75%  { content: "..." }
  100% { content: "" }
}

.stream-partial {
  padding: 6px 10px;
  font-size: .85rem;
  color: var(--color-text-muted);
  font-style: italic;
  min-height: 24px;
  opacity: .7;
  transition: opacity .15s;
  border-top: 1px dashed var(--color-border);
  margin-top: 4px
}

.stream-partial:empty {
  border-top: none
}

.stream-final-box .result-content {
  min-height: 120px
}

/* ── Backend Loading Overlay ── */
.backend-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius-lg);
  gap: 12px
}

.backend-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to { transform: rotate(360deg) }
}

.backend-loading-text {
  font-size: .85rem;
  color: var(--color-text-secondary);
  font-weight: 500
}

/* ── FAQ ── */
.faq-section {
  padding: 100px 0;
  background: var(--color-bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 52px;
}

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

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

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

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

.faq-answer {
  padding: 0 4px 24px;
  font-size: .9rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #FAFAFA 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 200, 200, .1) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 540px;
  margin: 0 auto
}

.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--color-text);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.cta-content p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin: 0 0 36px;
  line-height: 1.8
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 52px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  background: var(--gradient-orange-soft);
  color: #fff;
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
  box-shadow: var(--gradient-orange-glow);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--gradient-orange-glow-hover);
  filter: brightness(1.05);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 52px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all .25s;
}

.btn-cta-outline:hover {
  border-color: #d1d5db;
  background: var(--color-bg-subtle)
}

/* ── Footer ── */
.footer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(253, 160, 0, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 70, 30, .04) 0%, transparent 50%),
    #1A202C;
  color: #A0AEC0;
  font-size: .85rem;
  position: relative;
}

.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px
}

.footer-brand p {
  margin: 12px 0 24px;
  line-height: 1.75;
  max-width: 280px;
  color: #718096;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #F7FAFC
}

.footer-brand .footer-logo .mark {
  width: 10px;
  height: 10px;
  background: var(--gradient-orange-soft);
  border-radius: 50%;
  display: inline-block
}

.footer-social {
  display: flex;
  gap: 10px
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: .8rem;
  transition: all .25s;
}

.footer-social a:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.1)
}

.footer h4 {
  color: #E2E8F0;
  margin: 0 0 18px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer li {
  margin-bottom: 12px
}

.footer li a {
  color: #718096;
  font-size: .84rem;
  transition: color .2s
}

.footer li a:hover {
  color: var(--color-third)
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: #4A5568
}

.footer-bottom-links {
  display: flex;
  gap: 24px
}

.footer-bottom-links a {
  color: #4A5568
}

.footer-bottom-links a:hover {
  color: #A0AEC0
}

/* ── Products legacy (unused but keep for safety) ── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px
}

.product-card {
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow .3s, transform .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px)
}

.card-hero-image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s;
}

.product-card:hover .card-hero-image {
  transform: scale(1.03)
}

.card-content {
  padding: 28px;
}

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px
}

.product-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: .95rem;
  line-height: 1.7
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0
}

.product-features li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: .85rem;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-third);
}

/* ── Hero Eyebrow ── */
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(242, 107, 29, .08);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .02em;
}

/* ── Before & After Section ── */
.ba-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
}

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

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

.ba-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: stretch;
  transition: box-shadow .3s, transform .3s;
}

.ba-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ba-before,
.ba-after {
  flex: 1;
}

.ba-before {
  position: relative;
}

.ba-category-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.ba-category-tag.medical,
.ba-category-tag.drug,
.ba-category-tag.acronym,
.ba-category-tag.context {
  background: rgba(45, 55, 72, .06);
  color: var(--color-text-secondary);
}

.ba-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.ba-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ba-before .ba-text {
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(160, 174, 192, .4);
}

.ba-after .ba-text {
  color: var(--color-text);
}

.ba-desc {
  font-size: .75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  color: var(--color-text-muted);
}

.ba-divider svg {
  width: 20px;
  height: 20px;
}

/* ── Custom Rules Section ── */
.custom-rules-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
}

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

.custom-rules-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.custom-rules-demo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.custom-demo-header {
  background: #1E293B;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}

.custom-demo-dot:first-child { background: #EF4444; }
.custom-demo-dot:nth-child(2) { background: #F59E0B; }
.custom-demo-dot:nth-child(3) { background: #10B981; }

.custom-demo-title {
  margin-left: auto;
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
  font-family: "JetBrains Mono", monospace;
}

.custom-demo-body {
  background: #0F172A;
  padding: 24px 20px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: .82rem;
  line-height: 1.8;
  color: #E2E8F0;
}

.code-bracket { color: #CBD5E1; }
.code-comment { color: #64748B; }
.code-key { color: #38BDF8; }
.code-arrow { color: #94A3B8; }
.code-string { color: #4ADE80; }

.custom-rules-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.custom-rules-text > p {
  color: var(--color-text-secondary);
  margin: 0 0 24px;
  font-size: .92rem;
  line-height: 1.75;
}

.custom-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 14px;
  font-weight: 500;
}

.custom-features .check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  flex-shrink: 0;
}

.custom-features .check svg {
  width: 16px;
  height: 16px;
}

/* ── Competitive Comparison Section ── */
.comparison-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
}

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

.comparison-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-label {
  font-weight: 700;
  font-size: .78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.comparison-label.accent {
  color: var(--color-secondary);
}

.comparison-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-step {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
}

.comparison-step.danger {
  border: 2px dashed var(--color-error);
  background: rgba(239, 68, 68, .02);
}

.comparison-step-num {
  font-size: .68rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.comparison-step.danger .comparison-step-num {
  color: var(--color-error);
}

.comparison-step-title {
  font-weight: 600;
  font-size: .88rem;
}

.comparison-step-cost {
  font-size: .75rem;
  color: var(--color-error);
  margin-top: 4px;
}

.comparison-arrow {
  text-align: center;
  color: var(--color-text-muted);
  font-size: .85rem;
  line-height: 1;
}

.comparison-allinone {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-secondary);
  background: rgba(242, 107, 29, .03);
  position: relative;
}

.comparison-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient-orange);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .06em;
}

.comparison-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.comparison-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .88rem;
}

.comparison-price {
  padding-top: 20px;
  border-top: 1px solid rgba(242, 107, 29, .15);
  text-align: center;
}

.comparison-price strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.comparison-price span {
  font-size: .75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}

/* ── Footer Dark Mesh ── */
.footer.dark-mesh {
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  position: relative;
}

.footer.dark-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(253, 160, 0, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(253, 160, 0, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}

.footer.dark-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.footer.dark-mesh .footer-top,
.footer.dark-mesh .footer-grid,
.footer.dark-mesh .footer-bottom {
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none
  }

  .hero {
    padding: 80px 0 48px
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content > p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center
  }

  .hero-visual {
    margin-top: 36px;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-content {
    padding: 20px;
  }

  .credibility-items {
    gap: 16px;
    justify-content: center
  }

  .challenges-grid,
  .features-grid,
  .products-grid,
  .solutions-grid,
  .strengths-grid,
  .strengths-grid-4,
  .ba-grid,
  .cases-grid {
    grid-template-columns: 1fr
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .custom-rules-layout,
  .comparison-layout {
    grid-template-columns: 1fr;
  }

  .ba-card {
    flex-direction: column;
  }

  .ba-divider {
    transform: rotate(90deg);
    flex: 0 0 24px;
  }

  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 0
  }

  .how-step-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    flex: 0 0 32px
  }

  .result-container,
  .stream-results {
    grid-template-columns: 1fr
  }

  .domain-inner {
    grid-template-columns: 1fr;
    text-align: center
  }

  .domain-inner h2 {
    font-size: 1.4rem;
  }

  .faq-question {
    font-size: .88rem;
    padding: 18px 0
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .challenges-section,
  .products-section,
  .strengths-section,
  .solutions-section,
  .how-section,
  .demo-section,
  .faq-section,
  .cta-section,
  .pricing-section,
  .ba-section,
  .custom-rules-section,
  .comparison-section {
    padding: 64px 0;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}