:root {
  --bg: #0d0f12;
  --bg-2: #14181f;
  --text: #f2f4f7;
  --accent: #c8a46b;
  --accent-hover: #dab87e;
  --outline: #2a2f36;
  --muted: #8e9aaf;
  --danger: #e74c3c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(13, 15, 18, 0.98);
  border-bottom: 1px solid var(--outline);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.75rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__logo {
  height: 45px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__text strong {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 1px;
}

.brand__text small {
  font-size: 0.7rem;
  color: var(--muted);
}

/* NAVEGAÇÃO */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

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

.nav__list a:hover {
  color: var(--accent);
}

/* BOTÃO MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle__bar {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* BOTÕES */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--outline);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: #000;
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
}

/* HERO */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero__sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* SEÇÕES */
.section {
  padding: 80px 0;
}

.section--tight {
  padding: 60px 0;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent);
}

.section__intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.about__cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about__brand img {
  width: 100%;
  max-width: 300px;
  opacity: 0.8;
}

/* CONTATO */
.contact {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.contact__label {
  font-weight: 600;
  color: var(--accent);
}

.link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* FOOTER */
.footer {
  border-top: 1px solid var(--outline);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__inner p {
  margin: 0.5rem 0;
}

.footer__note {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* CHATBOT */
.bot-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.bot-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-toggle-btn:hover {
  transform: scale(1.05);
}

.bot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--bg-2);
  border: 1px solid var(--outline);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bot-window.active {
  opacity: 1;
  visibility: visible;
}

.bot-header {
  background: var(--accent);
  color: #000;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 85%;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.msg-bot {
  background: var(--bg);
  border: 1px solid var(--outline);
  align-self: flex-start;
}

.msg-user {
  background: var(--accent);
  color: #000;
  align-self: flex-end;
}

.bot-input-area {
  display: flex;
  padding: 1rem;
  gap: 0.5rem;
  border-top: 1px solid var(--outline);
}

.bot-input-area input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--text);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-card {
  background: var(--bg-2);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about__cta {
    justify-content: center;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: var(--bg-2);
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s;
    border-left: 1px solid var(--outline);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav__list li {
    width: 100%;
    text-align: center;
  }
  
  .bot-window {
    width: calc(100vw - 40px);
    right: -20px;
  }
  
  .section h2 {
    font-size: 2rem;
  }
}