/*
  CanooHub Landing — "Águas Calmas" Design
  Palette: Deep Ocean #0B4F6C, Teal #20B2AA, Sunset #FF8C42, Ice White #F7FAFB
*/

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 400;
  color: #1A2B3C;
  background-color: #F7FAFB;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul, li {
  list-style: none;
}

img {
  max-width: 100%;
}

::selection {
  background: #20B2AA;
  color: #fff;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4A6274;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #FF8C42;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.35);
}

.btn-primary:hover {
  background: #e67a30;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: #0B4F6C;
  border: 2px solid #0B4F6C;
}

.btn-outline:hover {
  background: #0B4F6C;
  color: #fff;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(11, 79, 108, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s;
}

.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.header.scrolled .logo {
  color: #0B4F6C;
}

.header.scrolled .logo .logo-icon {
  background: rgba(11, 79, 108, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-links a {
  color: #4A6274;
}

.header.scrolled .nav-links a:hover {
  color: #0B4F6C;
  background: rgba(11, 79, 108, 0.06);
}

.nav-cta {
  padding: 8px 20px !important;
  background: #FF8C42 !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: #e67a30 !important;
  transform: translateY(-1px);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.header.scrolled .lang-switch {
  background: rgba(11, 79, 108, 0.06);
}

.lang-switch button {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
}

.lang-switch button.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.header.scrolled .lang-switch button {
  color: #8A9BAA;
}

.header.scrolled .lang-switch button.active {
  background: #0B4F6C;
  color: #fff;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.header.scrolled .menu-toggle span {
  background: #1A2B3C;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0B4F6C 0%, #0E6B5E 50%, #20B2AA 100%);
  overflow: hidden;
  padding: 120px 0 160px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(32, 178, 170, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero-content h1 .highlight {
  color: #FF8C42;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}

.hero-shapes .shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 5%;
  animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 15%;
  animation: float 6s ease-in-out infinite 1s;
}

.hero-shapes .shape:nth-child(3) {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 30%;
  animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider .shape-fill {
  fill: #F7FAFB;
}

/* ---- Section shared ---- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(32, 178, 170, 0.1);
  color: #0E6B5E;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header h2 {
  color: #0B4F6C;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 79, 108, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #20B2AA, #0B4F6C);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11, 79, 108, 0.1);
  background: #fff;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: all 0.35s;
}

.feature-icon.ocean {
  background: rgba(11, 79, 108, 0.08);
  color: #0B4F6C;
}

.feature-icon.teal {
  background: rgba(32, 178, 170, 0.1);
  color: #0E6B5E;
}

.feature-icon.sunset {
  background: rgba(255, 140, 66, 0.1);
  color: #D06B1F;
}

.feature-icon.wave {
  background: rgba(25, 118, 210, 0.08);
  color: #1565C0;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: #0B4F6C;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* ---- Highlights Section (alternate bg) ---- */
.section-alt {
  background: #fff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.highlight-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(11, 79, 108, 0.06);
  background: #F7FAFB;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  border-color: rgba(32, 178, 170, 0.2);
  box-shadow: 0 4px 20px rgba(11, 79, 108, 0.06);
}

.highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #20B2AA, #0B4F6C);
  color: #fff;
}

.highlight-text h3 {
  margin-bottom: 6px;
  color: #1A2B3C;
  font-size: 1rem;
}

.highlight-text p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, #0B4F6C 0%, #0E6B5E 50%, #20B2AA 100%);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.cta-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.cta-wave-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ---- Footer ---- */
.footer {
  background: #072D3F;
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo .logo-icon {
  background: rgba(32, 178, 170, 0.2);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #20B2AA;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 105;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: #4A6274 !important;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-links a:hover {
    color: #0B4F6C !important;
    background: rgba(11, 79, 108, 0.06) !important;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 12px;
    background: rgba(11, 79, 108, 0.06);
  }

  .lang-switch button {
    color: #8A9BAA;
  }

  .lang-switch button.active {
    background: #0B4F6C;
    color: #fff;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 104;
  }

  .nav-overlay.open {
    display: block;
  }

  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 0 140px;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
