/* ===========================
   ROOTIA — Design System
   Naturaleza Destilada Palette
   =========================== */

:root {
  --primary: #0f3d3e;
  --secondary: #1a6b4a;
  --accent: #c4623a;
  --accent-hover: #a84f2d;
  --bg: #faf6f0;
  --bg-warm: #f5ede2;
  --bg-dark: #0f3d3e;
  --text: #1a1a2e;
  --text-light: #5a5a6e;
  --text-muted: #8a8a9a;
  --white: #ffffff;
  --border: #e8e0d4;
  --shadow: rgba(15, 61, 62, 0.08);
  --shadow-heavy: rgba(15, 61, 62, 0.15);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--primary);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--primary);
}

em {
  font-style: italic;
  color: var(--secondary);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cta {
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 60px;
  box-shadow: 0 4px 20px rgba(196, 98, 58, 0.3);
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(196, 98, 58, 0.4);
}

.btn-nav {
  background: var(--white);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 60px;
  font-size: 0.9rem;
}

.btn-nav:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-large {
  font-size: 1.15rem;
  padding: 20px 40px;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.dot {
  color: var(--accent);
}

/* HERO */
.hero {
  background: linear-gradient(160deg, #0a2e1f 0%, #0f3d3e 30%, #1a6b4a 65%, #2d8f5e 100%);
  color: var(--white);
  padding: 0 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0 50px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

h1 {
  color: var(--white);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 20px 0 30px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--white);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.hero-micro {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* PHONE MOCKUP */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.phone-notch {
  height: 28px;
  background: #000;
  border-radius: 0 0 14px 14px;
  width: 120px;
  margin: 0 auto;
}

.phone-header {
  background: #075e54;
  color: white;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.phone-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.phone-status {
  font-size: 0.7rem;
  opacity: 0.8;
}

.chat-messages {
  padding: 14px;
  background: #ece5dd;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 85%;
  animation: msgIn 0.4s ease-out both;
  color: #111;
}

.msg.bot {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.user {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.msg:nth-child(2) {
  animation-delay: 0.3s;
}

.msg:nth-child(3) {
  animation-delay: 0.6s;
}

.msg:nth-child(4) {
  animation-delay: 0.9s;
}

.msg:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
  margin-right: 4px;
}

.msg.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.msg.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0.3;
  }

  40% {
    opacity: 1;
  }
}

/* HERO STATS */
.hero-stats {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 30px 0 10px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* SECTIONS */
.section {
  padding: 80px 0;
  text-align: center;
}

.section h2 {
  margin-bottom: 16px;
}

/* PROBLEM */
.problem {
  background: var(--bg-warm);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pain-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  text-align: left;
  border-top: 3px solid var(--accent);
  transition: transform 0.3s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pain-card h3 {
  margin-bottom: 8px;
}

.pain-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* SOLUTION */
.solution {
  background: var(--bg);
}

/* HOW IT WORKS */
.how-it-works {
  background: var(--white);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.step {
  flex: 1;
  max-width: 280px;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin-top: 80px;
  flex-shrink: 0;
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.bento-card {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
  border-color: var(--secondary);
}

.bento-large {
  grid-column: span 2;
}

.bento-highlight {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.bento-highlight h3 {
  color: var(--white);
}

.bento-highlight p {
  color: rgba(255, 255, 255, 0.8);
}

.bento-emoji {
  font-size: 2rem;
  margin-bottom: 10px;
}

.bento-card h3 {
  margin-bottom: 6px;
}

.bento-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* EXPERIENCES */
.experiences {
  background: var(--bg-warm);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.exp-card {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--secondary);
}

.exp-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.exp-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.exp-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.exp-locations {
  margin-top: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid var(--border);
}

.testimonial-stars {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author strong {
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 0 18px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* FINAL CTA */
.final-cta {
  background: linear-gradient(160deg, #0a2e1f, #0f3d3e 40%, #1a6b4a);
  color: var(--white);
  padding: 100px 0;
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.final-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* FOOTER */
.footer {
  background: #0a1e1e;
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer .nav-logo {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.footer-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
}

/* STICKY CTA MOBILE */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}

/* SCROLL ANIMATIONS */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-anim]:nth-child(2) {
  transition-delay: 0.1s;
}

[data-anim]:nth-child(3) {
  transition-delay: 0.2s;
}

[data-anim]:nth-child(4) {
  transition-delay: 0.3s;
}

[data-anim]:nth-child(5) {
  transition-delay: 0.4s;
}

[data-anim]:nth-child(6) {
  transition-delay: 0.5s;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-cta-group {
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .pain-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    margin: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
  }

  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .sticky-cta {
    display: block;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .phone-mockup {
    width: 260px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}