/*
  Theme: TechBot v4.0
  Base Colors:
    - Dark Blue: #041220 (Background)
    - Primary Blue: #0C355D (Logo Base)
    - Accent Cyan: #09D9EF (Logo Accent)
    - WhatsApp Green: #25D366 (primary action, same channel as the product)
    - Text White: #FBFDFC (Logo White)
  Type: Bricolage Grotesque (display) + Hanken Grotesk (text), loaded from Google Fonts in each page <head>.
*/

:root {
  --bg-dark: #041220;
  --bg-card: rgba(12, 53, 93, 0.4);
  --primary-blue: #0C355D;
  --accent-cyan: #09D9EF;
  --wa-green: #25D366;
  --wa-ink: #04210f;
  --text-white: #FBFDFC;
  --text-muted: #aebccb;
  --line: rgba(251, 253, 252, 0.12);
  --font-display: 'Bricolage Grotesque', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-main: 'Hanken Grotesk', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--header-h);
  scrollbar-color: var(--primary-blue) var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  caret-color: var(--accent-cyan);
}

body.menu-open { overflow: hidden; }

::selection {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10000;
}

.skip-link:focus { top: 12px; }

.webthreads-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1rem + 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text-white);
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Left-aligned section heads on the landing page */
#demo .section-title, #features .section-title, #industries .section-title,
#pricing .section-title, #faq .section-title {
  text-align: left;
}

#demo .section-subtitle, #features .section-subtitle, #industries .section-subtitle,
#pricing .section-subtitle, #faq .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #6beaf7;
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: var(--wa-ink);
  box-shadow: var(--shadow-glow);
}

.btn-whatsapp:hover {
  background: #4fe388;
  color: var(--wa-ink);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(251, 253, 252, 0.35);
  color: var(--text-white);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  z-index: 1000;
  background: rgba(4, 18, 32, 0.92);
  border-bottom: 1px solid var(--line);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  display: block;
}

nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-white);
  opacity: 0.85;
}

nav a:hover {
  color: var(--accent-cyan);
  opacity: 1;
}

nav a.btn {
  opacity: 1;
  padding: 10px 22px;
  font-size: 0.95rem;
}

nav a.btn:hover { color: var(--wa-ink); }

.menu-toggle {
  display: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
  line-height: 1;
}

/* Hero */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 24px) 0 64px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--accent-cyan);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 2rem;
  display: block;
  max-width: 46ch;
}

.hero-text p.hero-fine {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone-container {
  width: 300px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  border: 4px solid #2b3a47;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0b141a;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: #1f2c34;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid #2a3942;
}

.avatar {
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.phone-header .phone-name {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.phone-header span {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.chat-area {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3942 transparent;
}

.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  color: #fff;
}

.chat-bubble.bot {
  background: #1f2c34;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-bubble.user {
  background: #005c4b;
  align-self: flex-end;
  border-top-right-radius: 0;
}

/* The one authored motion: the hero conversation plays in */
@media (prefers-reduced-motion: no-preference) {
  .hero-chat .chat-bubble {
    animation: messageIn 0.7s var(--ease-out) backwards;
  }
  .hero-chat .chat-bubble:nth-child(1) { animation-delay: 0.3s; }
  .hero-chat .chat-bubble:nth-child(2) { animation-delay: 1.2s; }
  .hero-chat .chat-bubble:nth-child(3) { animation-delay: 2.2s; }
  .hero-chat .chat-bubble:nth-child(4) { animation-delay: 3.4s; }

  .demo-chat .chat-bubble.is-new {
    animation: messageIn 0.45s var(--ease-out) backwards;
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.typing {
  align-self: flex-start;
  background: #1f2c34;
  border-radius: 12px;
  border-top-left-radius: 0;
  padding: 12px 14px;
  display: flex;
  gap: 5px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696a0;
}

@media (prefers-reduced-motion: no-preference) {
  .typing span { animation: blink 1s infinite ease-in-out; }
  .typing span:nth-child(2) { animation-delay: 0.15s; }
  .typing span:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.input-area {
  background: #1f2c34;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.fake-input {
  flex: 1;
  height: 35px;
  background: #2a3942;
  border-radius: 20px;
}

.send-btn {
  width: 35px;
  height: 35px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-ink);
  font-size: 0.9rem;
}

/* Quick replies of the interactive demo */
.quick-replies {
  background: #1f2c34;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-replies button {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: #e9edef;
  background: transparent;
  border: 1px solid #3b4a54;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quick-replies button:hover {
  border-color: var(--wa-green);
  color: var(--wa-green);
}

.quick-replies button:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: #3b4a54;
  color: #e9edef;
}

.quick-replies .restart {
  border-color: var(--wa-green);
  color: var(--wa-green);
}

/* Demo */
#demo {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.demo-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.demo-visual {
  display: flex;
  justify-content: center;
}

.demo-copy .section-subtitle { margin-bottom: 1.5rem; }

.demo-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-copy .btn { margin-top: 1.5rem; }

/* Solutions: heading on the left, ruled list on the right */
#features {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.split-head { position: sticky; top: calc(var(--header-h) + 24px); }

.split-head .section-subtitle { margin-bottom: 0; }

.capabilities li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.capabilities li:last-child { border-bottom: 1px solid var(--line); }

.capabilities h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.capabilities p {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-white);
}

.capabilities .chips li { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 14px; }

/* Industries: three open columns, each with a sample message */
#industries {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
}

.industry {
  padding: 8px 32px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.industry:first-child { padding-left: 0; border-left: 0; }
.industry:last-child { padding-right: 0; }

.industry h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--text-white);
}

.industry-subtitle {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}

.industry-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.industry .sample {
  margin-top: auto;
  background: #1f2c34;
  border-radius: 12px;
  border-top-left-radius: 0;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #e9edef;
}

.industry .sample small {
  display: block;
  color: #8696a0;
  margin-bottom: 4px;
}

/* Pricing */
#pricing {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.pricing-highlight {
  background: rgba(12, 53, 93, 0.55);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 620px;
  margin: 2.5rem 0 0;
  text-align: left;
  border: 1px solid rgba(9, 217, 239, 0.3);
  box-shadow: var(--shadow-card);
}

.pricing-highlight h3 {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.price-tag {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 6px 0 10px;
  line-height: 1.1;
}

.price-period {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.pricing-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin: 24px 0 8px;
}

.pricing-features li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
  color: #fff;
}

.pricing-features i {
  color: var(--wa-green);
  margin-right: 14px;
  width: 20px;
  margin-top: 5px;
}

.pricing-highlight .btn {
  width: 100%;
  margin-top: 28px;
  font-size: 1.1rem;
  padding: 16px;
}

.pricing-next {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* FAQ */
#faq {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 800px;
  margin-top: 2.5rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent-cyan);
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  color: var(--text-muted);
  padding: 0 0 22px;
  max-width: 62ch;
}

/* Closing CTA */
#final-cta {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: rgba(12, 53, 93, 0.35);
  text-align: center;
}

#final-cta h2 { margin-bottom: 0.75rem; }

#final-cta p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  padding: 48px 0;
  background: #020a12;
  border-top: 1px solid var(--line);
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-links a {
  color: var(--text-muted);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--wa-green);
  color: var(--wa-ink);
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-out), bottom 0.25s var(--ease-out);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--wa-ink);
}

/* Keep the floating button clear of the open cookie banner */
body:has(.cookie-banner[style*="display: block"]) .whatsapp-float {
  bottom: 170px;
}

@media (max-width: 1024px) {
  .demo-content { grid-template-columns: 1fr; gap: 40px; }
  .demo-visual { order: 2; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-head { position: static; }
  .industries-grid { grid-template-columns: 1fr; gap: 40px; }
  .industry, .industry:first-child, .industry:last-child {
    padding: 0;
    border-left: 0;
  }
  .industry + .industry { border-top: 1px solid var(--line); padding-top: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .logo { height: 44px; }
  header { padding: 12px 0; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #hero { min-height: auto; padding-bottom: 48px; }

  .hero-text h1 { max-width: none; }

  nav ul {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: rgba(4, 18, 32, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px 20px;
    gap: 6px;
    text-align: center;
    visibility: hidden;
    transform: translateY(-8%);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.25s ease, visibility 0s linear 0.3s;
    z-index: 999;
  }

  nav ul.active {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0s;
  }

  nav a { font-size: 1.15rem; font-weight: 600; display: block; padding: 14px 0; }
  nav a.btn { display: flex; margin-top: 12px; padding: 16px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .menu-toggle.active { color: var(--accent-cyan); }

  .phone-container {
    width: 280px;
    height: 540px;
  }

  #demo, #features, #industries, #pricing, #faq { padding: 72px 0; }
  .pricing-highlight { padding: 32px 20px; }
  .cta-group .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
