:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --fg: #e8e6e3;
  --fg-muted: #8a8694;
  --fg-dim: #5a5668;
  --accent: #f0c040;
  --accent-glow: rgba(240, 192, 64, 0.15);
  --accent-soft: #f5d676;
  --green: #4ade80;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

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

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 800px;
  margin-bottom: 28px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 160px;
  text-align: center;
  line-height: 1.4;
}

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

/* ===== PROBLEM ===== */
.problem {
  padding: 120px 24px;
  background: var(--bg-subtle);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 60px;
  color: var(--fg);
}

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

.problem-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.problem-card:hover {
  border-color: rgba(240, 192, 64, 0.25);
}

.problem-icon {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 24px;
}

.services-header {
  max-width: 1100px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 44px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 192, 64, 0.3);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::after {
  opacity: 1;
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.12;
  position: absolute;
  top: 20px;
  right: 28px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.service-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-details {
  list-style: none;
  padding: 0;
}

.service-details li {
  font-size: 0.88rem;
  color: var(--fg-dim);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.5;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 24px;
  background: var(--bg-subtle);
}

.hiw-header {
  max-width: 900px;
  margin: 0 auto 72px;
  text-align: center;
}

.hiw-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hiw-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-marker span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.step-line {
  width: 2px;
  height: 72px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.hiw-step:last-child .step-line {
  display: none;
}

.step-content {
  padding-bottom: 56px;
}

.hiw-step:last-child .step-content {
  padding-bottom: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.step-content p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg);
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.footer-detail {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.footer-location {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* ===== DEMO ===== */
.demo {
  padding: 120px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.demo-inner {
  max-width: 960px;
  margin: 0 auto;
}

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

.demo-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}

.demo-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.demo-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.demo-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-select,
.demo-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.6;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.demo-select {
  padding: 12px 16px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8694' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.demo-textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 96px;
}

.demo-select:focus,
.demo-textarea:focus {
  border-color: var(--accent);
}

.demo-textarea--error {
  border-color: #f87171 !important;
  animation: demo-shake 0.3s ease;
}

@keyframes demo-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.demo-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  width: 100%;
}

.demo-cta-btn:hover:not(:disabled) {
  background: var(--accent-soft);
}

.demo-cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.demo-btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: #0a0a0f;
  border-radius: 50%;
}

.demo-btn--loading .demo-btn-loader {
  display: block;
  animation: demo-spin 0.6s linear infinite;
}

.demo-btn--loading .demo-btn-label::after {
  content: 'Generating...';
}

.demo-btn--loading .demo-btn-label {
  font-size: 0;
}

.demo-btn--loading .demo-btn-label::after {
  font-size: 1rem;
}

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

/* Right column — chat output */
.demo-chat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  flex: 1;
}

.demo-chat-empty-icon {
  font-size: 2rem;
  opacity: 0.4;
}

.demo-chat-empty p {
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 220px;
}

.demo-chat-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-chat-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.demo-bubble {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 18px 20px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--fg);
  white-space: pre-wrap;
  min-height: 72px;
}

.demo-result-cta {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-cta-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.demo-cta-text strong {
  color: var(--fg);
}

.demo-result-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.demo-result-link:hover {
  color: var(--accent-soft);
}

.demo-disclaimer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 20px 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .problem {
    padding: 80px 20px;
  }

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

  .services {
    padding: 80px 20px;
  }

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

  .how-it-works {
    padding: 80px 20px;
  }

  .hiw-step {
    gap: 20px;
  }

  .closing {
    padding: 100px 20px;
  }

  .demo {
    padding: 80px 20px;
  }

  .demo-widget {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .service-card {
    padding: 32px 24px;
  }
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-links a.nav-cta {
  background: var(--accent);
  color: #0a0a0f;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-soft);
  color: #0a0a0f;
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}