:root {
  --petroleum: hsl(195, 50%, 20%);
  --petroleum-dark: hsl(195, 50%, 15%);
  --primary: #00E2F4;
  --primary-dark: #00b8c7;
  --lime: #c8ff00;
  --bg: #ffffff;
  --muted: rgba(28, 64, 75, 0.7);
  --border: #e6e9ec;
}

* { box-sizing: border-box; scroll-behavior: smooth;}
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--petroleum);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.max-w-3xl { max-width: 768px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--petroleum); letter-spacing: -0.02em; }
.logo span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-weight: 500; font-size: 0.9rem; }
.nav a:hover { color: var(--primary-dark); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 700; cursor: pointer;
  border: none; border-radius: 999px;
  padding: 0.75rem 1.5rem; font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: var(--petroleum-dark); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--petroleum-dark); color: #fff; }
.btn-dark:hover { background: var(--petroleum); }

/* HERO */
.hero {
  position: relative;
  background: var(--petroleum);
  padding: 3rem 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0, 226, 244, 0.25), transparent 60%);
  pointer-events: none;
}
.chat-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.chat-glow {
  position: absolute; inset: -1rem;
  background: rgba(0, 226, 244, 0.3);
  filter: blur(60px); border-radius: 2rem;
}
.chat-card {
  position: relative; background: #fff;
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 226, 244, 0.2);
}
.chat-header {
  background: var(--petroleum-dark); color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--petroleum-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-meta { flex: 1; min-width: 0; }
.chat-title { font-weight: 700; line-height: 1.1; }
.chat-status {
  font-size: 0.75rem; opacity: 0.75;
  display: flex; align-items: center; gap: 0.4rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
#chatFrame { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 640px) { #chatFrame { height: 520px; } }

/* SECTIONS */
section { padding: 5rem 0; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--petroleum-dark);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.section-title.light { color: #fff; }
.lead { font-size: 1.125rem; color: var(--muted); margin: 0 0 1rem; }
.lead.light { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* PAINS */
.pains { background: var(--lime); }
.pains .section-title { max-width: 640px; margin-bottom: 3rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: 1.5rem;
  padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.icon-box {
  width: 48px; height: 48px; border-radius: 0.75rem;
  background: rgba(28, 64, 75, 0.1); color: var(--petroleum-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon-box svg { width: 24px; height: 24px; }
.card h3 { font-weight: 700; font-size: 1.125rem; margin: 0 0 0.75rem; color: var(--petroleum-dark); }
.card p { font-size: 0.875rem; line-height: 1.6; color: rgba(28, 64, 75, 0.8); margin: 0; }

/* MODULES */
.modules .center { text-align: center; }
.module-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.module-card:hover { border-color: var(--primary); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1); transform: translateY(-4px); }
.module-card .num { color: var(--primary-dark); font-weight: 700; font-size: 0.875rem; margin-bottom: 0.5rem; }
.module-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--petroleum-dark); margin: 0 0 0.75rem; }
.module-card p { font-size: 0.875rem; line-height: 1.6; color: var(--muted); margin: 0 0 1rem; }
.module-card button {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 0.875rem;
  color: var(--petroleum-dark); transition: color 0.2s;
}
.module-card button:hover { color: var(--primary-dark); }

/* CTA */
.cta { background: var(--petroleum); }
.cta .container { max-width: 768px; }

/* FAQ */
.faq .section-title { margin-bottom: 2.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem 1.5rem; cursor: pointer;
  font-family: inherit; font-weight: 600; color: var(--petroleum-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1rem;
}
.faq-q::after {
  content: '+'; font-size: 1.5rem; line-height: 1; color: var(--primary-dark);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted); display: none;
}
.faq-item.open .faq-a { display: block; }

/* FOOTER */
.footer {
  background: var(--petroleum-dark); color: rgba(255,255,255,0.7);
  padding: 2rem 0; text-align: center; font-size: 0.875rem;
}

/* FULLSCREEN */
.fullscreen {
  position: fixed; inset: 0; z-index: 100;
  background: var(--petroleum-dark);
  display: flex; flex-direction: column;
}
.fullscreen .chat-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.fullscreen iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.icon-btn svg { width: 20px; height: 20px; }

/* FLOATING */
.floating {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--petroleum-dark); color: #fff;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border-radius: 999px; border: 1px solid rgba(0, 226, 244, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  cursor: pointer; font-family: inherit;
  animation: floatIn 0.3s ease;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.floating-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--petroleum-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.floating-icon svg { width: 24px; height: 24px; }
.floating:hover .floating-icon { transform: scale(1.05); }
.floating-text { display: flex; flex-direction: column; text-align: left; }
.floating-text strong { font-size: 0.875rem; font-weight: 700; line-height: 1.1; }
.floating-text small { font-size: 0.7rem; color: rgba(255,255,255,0.7); }
@media (max-width: 480px) {
  .floating-text { display: none; }
  .floating { padding: 0.5rem; }
}
@media(min-width: 1024px){
  .container-hero {
    width: 70%;
  }
}