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

:root {
  --bg: #fafaf8;
  --surface: #f0efe8;
  --white: #ffffff;
  --text: #1a1c19;
  --text-light: #555;
  --text-lighter: #777;
  --primary: #3a5a1c;
  --primary-hover: #2d4715;
  --primary-light: #e8f0e0;
  --accent: #2a6485;
  --border: #e0ddd5;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;
  --max-width: 1100px;
  --radius: 8px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.dot {
  color: var(--primary);
}

.nav-cta {
  margin-left: auto !important;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--primary-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */

header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

.subtitle {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.cta-primary:hover {
  background: var(--primary-hover);
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--accent);
  transition: all 0.2s;
}

.cta-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---- Trust Bar ---- */

#trust-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-body);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* ---- Sections ---- */

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ---- Problem Cards ---- */

.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}

.problem-card:hover {
  border-color: var(--primary);
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.problem-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.problem-solution {
  background: var(--primary-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
}

.problem-solution strong {
  color: var(--primary);
}

/* ---- Demo Section ---- */

/* ---- Demo Section ---- */

#demo {
  background: #111318;
  max-width: none;
  margin: 0;
  padding: 5rem 2rem;
  color: #c8cdd8;
}

#demo h2 {
  color: #fff;
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  text-align: center;
}

#demo .section-intro {
  color: #7a8194;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

#demo .section-intro {
  text-align: center;
}

.demo-card {
  background: #181b24;
  border: 1px solid #252a38;
  border-radius: 12px;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

/* Header */
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #14161e;
  border-bottom: 1px solid #252a38;
}

.demo-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.demo-shop-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e0e4ec;
}

.demo-shop-name svg {
  color: #5bd65b;
  flex-shrink: 0;
}

.demo-location {
  font-size: 0.75rem;
  color: #555d70;
  padding-left: 1.75rem;
}

/* Status indicator */
.demo-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #555d70;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555d70;
  display: inline-block;
}

.demo-status.connecting .status-dot {
  background: #f59e0b;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.demo-status.working .status-dot {
  background: #60a5fa;
  animation: pulse-dot 0.8s ease-in-out infinite;
}

.demo-status.working .status-text {
  color: #60a5fa;
}

.demo-status.live .status-dot {
  background: #5bd65b;
  box-shadow: 0 0 6px rgba(91, 214, 91, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.demo-status.live .status-text {
  color: #5bd65b;
}

.demo-status.error .status-dot {
  background: #f87171;
}

.demo-status.error .status-text {
  color: #f87171;
}

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

/* Body — the streaming area */
.demo-body {
  padding: 1.5rem;
  min-height: 220px;
  max-height: 440px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.65;
}

.demo-body::-webkit-scrollbar {
  width: 4px;
}
.demo-body::-webkit-scrollbar-track {
  background: transparent;
}
.demo-body::-webkit-scrollbar-thumb {
  background: #252a38;
  border-radius: 2px;
}

.demo-line {
  margin-bottom: 0.9rem;
  opacity: 0.95;
}

.demo-line.done {
  opacity: 1;
}

/* Line styles */
.line-greeting {
  color: #e0e4ec;
  font-weight: 500;
  font-size: 1rem;
}

.line-weather {
  color: #9ba3b5;
}

.line-river {
  color: #38bdf8;
  font-weight: 500;
}

.line-promote {
  color: #5bd65b;
  padding: 0.6rem 0.85rem;
  background: rgba(91, 214, 91, 0.07);
  border-left: 2px solid rgba(91, 214, 91, 0.4);
  border-radius: 0 4px 4px 0;
}

.line-opportunity {
  color: #5bd65b;
  padding: 0.6rem 0.85rem;
  background: rgba(91, 214, 91, 0.07);
  border-left: 2px solid rgba(91, 214, 91, 0.4);
  border-radius: 0 4px 4px 0;
}

.line-warning {
  color: #fbbf24;
  padding: 0.6rem 0.85rem;
  background: rgba(251, 191, 36, 0.07);
  border-left: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 0 4px 4px 0;
}

.line-danger {
  color: #f87171;
  padding: 0.6rem 0.85rem;
  background: rgba(248, 113, 113, 0.08);
  border-left: 3px solid rgba(248, 113, 113, 0.6);
  border-radius: 0 4px 4px 0;
  font-weight: 500;
}

.line-heads-up {
  color: #60a5fa;
  padding: 0.6rem 0.85rem;
  background: rgba(96, 165, 250, 0.07);
  border-left: 2px solid rgba(96, 165, 250, 0.4);
  border-radius: 0 4px 4px 0;
}

.line-closing {
  color: #555d70;
  font-style: italic;
}

.line-error {
  color: #f87171;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #5bd65b;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 0.6s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Loading dots */
.demo-loading-line {
  color: #555d70;
}

.loading-dots span {
  animation: loading-fade 1.4s ease-in-out infinite;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-fade {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Footer */
.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: #14161e;
  border-top: 1px solid #252a38;
  font-size: 0.75rem;
  color: #555d70;
}

.demo-refresh {
  background: none;
  border: 1px solid #252a38;
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: #7a8194;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.demo-refresh:hover {
  border-color: #5bd65b;
  color: #5bd65b;
}

/* ---- Why Me ---- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Steps ---- */

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Pricing ---- */

#pricing {
  text-align: center;
}

#pricing .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.pricing-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-lighter);
  margin-bottom: 1rem;
}

.price {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.pricing-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

/* ---- Contact ---- */

#contact {
  text-align: center;
}

#contact .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form .cta-primary {
  align-self: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#contact .cta-secondary {
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
}

.or {
  margin: 0.75rem 0;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.based-in {
  margin-top: 2rem;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

/* ---- Footer ---- */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 0.25rem;
}

footer a {
  color: var(--text-light);
  text-decoration: none;
}

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

/* ---- Mobile ---- */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links .nav-cta {
    margin-left: 0 !important;
    margin-top: 0.5rem;
    text-align: center;
  }

  header {
    padding: 4rem 1.5rem 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .problems-grid,
  .why-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  #trust-bar {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  #demo {
    padding: 3rem 1.5rem;
  }

  .demo-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .demo-status {
    padding-left: 1.75rem;
  }

  .demo-body {
    max-height: 320px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}
