/* ====== BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #0E1032;
  overflow-x: hidden;
}
html { overflow-x: hidden; scroll-behavior: smooth; }

:root {
  --header-height: 84px;
}

/* reserve space so fixed header doesn't cover content */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
}
a {
  text-decoration: none;
  color: inherit;
}
img { max-width: 100%; display: block; }

/* ====== HERO SECTION ====== */
.hero {
  /* hero placeholder - background moved to pseudo-element to ensure full-bleed coverage */
  background: none;
  padding: 48px 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}
/* full-bleed background image via pseudo-element so it always spans the section */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* fixed path: from css/ -> up to Site then Img */
  background: linear-gradient(rgba(6,8,22,0.28), rgba(6,8,22,0.12)), url('../Img/hero-bg.png') center/cover no-repeat;
  z-index: -2;
  pointer-events: none;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3; /* behind the pseudo background element */
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6%;
  position: relative;
  z-index: 1; /* ensure content above background/video */
}
.hero-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 12px 6%;
  z-index: 60;
  background: transparent;
}

/* when page is scrolled, add subtle shadow only */
.hero-navbar.scrolled {
  background: rgba(200, 200, 200, 0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Add background to menu when scrolled */
.menu { list-style: none; display:flex; gap:24px; align-items:center; flex-wrap:wrap; background: transparent; }
.menu a { color: #08103a; font-weight:600; opacity:0.95; }
.menu-cta { display: none; }
.logo-tetis { width: 150px; }
.logo-link { cursor: pointer; display: flex; align-items: center; }
.nav-toggle { display: none; }

/* improve contrast of text over hero with a small text shadow */
.menu a, .cta.primary, .logo-tetis { text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.hero-content { margin-top: 60px; max-width: 900px; }
.hero h1 { font-size: 60px; font-weight: 700; color: #08103a; letter-spacing: 2px; line-height: .9; transform: skewX(-8deg); }
.hero h2 { font-size: 45px; font-weight: 700; color: #08103a; letter-spacing: 2px; margin-top: -6px; transform: skewX(-8deg); }
.hero p { font-size: 14px; max-width: 520px; margin-top: 18px; opacity: .95; text-transform: none; }
.hero-content p { 
  background: rgba(255,255,255,0.8); /* white with 80% opacity, tweak as needed */
  color: #08103a; /* dark blue text for contrast */
  padding: 12px 18px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(11,17,60,0.12);
  line-height: 1.4;
  max-width: 100%;
}

/* CTA Button */
.cta.primary {
  background: linear-gradient(90deg,#06103a 0%, #2b1a8f 60%);
  padding: 14px 30px;
  border-radius: 40px;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px rgba(11,17,60,0.35);
}
.cta.primary .icon { stroke: #fff; }

/* AI Floating Card */
.ai-card {
  background: #fff;
  padding: 22px 26px;
  border-radius: 20px;
  width: 360px;
  /* keep the floating animation but place the card in normal flow
     so it appears below the hero text and before the stats row */
  position: relative; /* moved out of absolute flow */
  margin: 28px auto; /* center under the hero content */
  box-shadow: 0 20px 40px rgba(7,13,36,0.18);
  animation: floatCard 4s ease-in-out infinite;
  backdrop-filter: blur(2px);
  z-index: 2;
}
@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.metric-bar {
  background: #f2f4f6;
  border-radius: 12px;
  margin: 12px 0;
  height: 10px;
  position: relative;
}
.metric-bar span {
  display: block;
  background: linear-gradient(90deg,#24c18b,#38d39e);
  width: 78%;
  height: 100%;
  border-radius: 12px;
}
.conversion { font-size: 13px; color: #0b8040; font-weight: 700; margin-top:6px; }

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}
.stats-row div { text-align: center; }
.stats-row h3 { font-size: 40px; font-weight: 800; color: #08103a; }
.stats-row p { font-size: 14px; color: #1b2345; }

/* ====== FEATURES SECTION ====== */
.section { padding: 70px 6%; background: #fff; }
.features h2 { text-align: center; margin-bottom: 30px; font-size: 34px; letter-spacing: 1px; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-item {
  background: #fff;
  padding: 22px 24px;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(3,12,30,0.06);
  text-align: left;
  /* layout: icon column + text column; put title on top-right and
    description on its own row spanning the full card width so it
    doesn't stick to the left column */
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: center;
  min-height: 96px; /* ensure consistent height */
}
.feature-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0;
  display: block;
  grid-column: 1;
  grid-row: 1;
}
.feature-item h3 {
  font-size: 18px;
  margin: 0 0 6px 0;
  line-height: 1.05;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.feature-item p {
  font-size: 14px;
  color: #506070;
  margin: 0;
  /* description spans full card width on its own row */
  grid-column: 1 / -1;
  grid-row: 2;
  overflow-wrap: break-word;
  word-break: break-word;
  padding-top: 6px;
}
.feature-item h3 { font-size: 18px; margin: 0 0 6px 0; line-height: 1.05; }
.feature-item p {
  font-size: 14px;
  color: #506070;
  margin: 0;
  /* prevent overflow and force sensible wrapping */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ====== BENEFITS / METRICS ====== */
.benefits {
  padding: 60px 6%;
  text-align: center;
}
.benefits-container {
  max-width: 1200px;
  margin: 40px auto;
  width: 100%;
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  color: #27314b;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 0 auto;
  width: 100%;
  max-width: 520px; /* match feature cards max-width */
}
.benefit-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.metrics-box { 
  background: #e9eef0; 
  border-radius: 14px; 
  padding: 22px; 
  width: 100%;
  max-width: 520px; /* match feature cards max-width */
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(3,9,32,0.06); 
}
.metrics-box p { margin: 10px 0; font-weight:600; color:#0b1b4d; }
.metrics-box p strong { background: rgba(11,128,64,0.07); padding: 6px 10px; border-radius: 8px; color:#0b8040; font-weight:800; }

/* Desktop: split benefits into two columns (topics | metrics) */
@media (min-width: 1000px) {
  /* Desktop: left column is flexible, right column is fixed (metrics card)
     This keeps the topics on the left and the metrics card on the right on the same row */
  .benefits {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 420px; /* left flexible, right fixed */
    gap: 48px;
    padding: 80px 6%;
  }
  .benefits h2 {
    grid-column: 1 / -1; /* span both columns */
    margin-bottom: 40px;
  }
  .benefits-container {
    margin: 0;
    max-width: none;
    grid-column: 1; /* ensure it sits in left column */
    align-self: start; /* align to top so metrics box aligns with first item */
  }
  .benefits-list {
    max-width: 100%;
    width: 100%;
  }
  .benefits-list li { padding: 20px 24px; }
  .metrics-box {
    grid-column: 2; /* force to right column */
    grid-row: 2; /* place in same row as benefits content, after the heading */
    justify-self: start; /* align to left of its column */
    align-self: start; /* align to top to match first benefit item */
    width: 100%;
    max-width: 420px; /* constrain width */
    margin-top: 0;
  }
}

/* ====== PLANS SECTION ====== */
.plans {
  background: linear-gradient(120deg, #060B2B, #14105b);
  color: #fff;
  padding-top: 80px;
  padding-bottom: 120px;
}
.plans h2 { text-align: center; margin-bottom: 40px; font-size: 32px; }
.plans > h3 { text-align: center; margin-top: 40px; margin-bottom: 30px; font-size: 24px; }
.plan-grid { display: flex; justify-content: center; gap: 28px; padding: 0 6%; }
.plan-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: 26px;
  padding: 28px;
  width: 320px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(3,9,32,0.45);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}
.plan-card.highlight { transform: translateY(-12px); background: linear-gradient(90deg,#0b1b4d,#4b2fbf); box-shadow: 0 30px 70px rgba(11,17,60,0.45); }
.plan-card h3 { margin-bottom: 18px; font-size: 20px; text-align: center; }
.plan-card ul { list-style: none; padding: 0; margin-bottom: 16px; }
.plan-card li { margin: 8px 0; text-align: center; }
.plan-card .cta.primary { padding: 12px 20px; border-radius: 24px; align-self: center; }

/* ====== FOOTER ====== */
footer {
  background: linear-gradient(90deg,#0014ff,#6a11ff);
  padding: 60px 6%;
  text-align: center;
  color: #fff;
}
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.cta.secondary {
  border: 2px solid rgba(255,255,255,0.18);
  padding: 14px 26px;
  border-radius: 28px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

/* ====== RESPONSIVE ====== */
@media(max-width: 1000px) {
  /* Reset full-bleed on medium and smaller screens to avoid horizontal overflow */
  .hero { width: 100%; margin-left: 0; margin-right: 0; padding: 36px 6%; }
  .container { padding: 0 5%; }
  :root { --header-height: 72px; }
  .hero-navbar { align-items: center; gap: 12px; }
  .menu { gap: 16px; }
  .menu a { font-size: 15px; }
  .hero h1 { font-size: 48px; transform: none; }
  .hero h2 { font-size: 36px; transform: none; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }

  /* Card adjustments for small screens: smaller icon and stacked layout */
  .feature-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    padding: 18px 16px;
    min-height: 86px;
  }
  .feature-item img { width: 56px; height: 56px; }
  .feature-item h3, .feature-item p { justify-self: start; }
  .plan-grid { flex-direction: column; align-items: center; }
  .plan-card { width: 92%; max-width: 520px; }
  .ai-card { position: static; margin: 18px auto; width: 92%; left: auto; }
}
@media(max-width: 600px) {
  /* Mobile adjustments: keep content inside viewport */
  .hero { padding: 28px 5%; }
  .container { padding: 0 4%; }
  :root { --header-height: 64px; }
  .hero-navbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .hero h1 { font-size: 32px; line-height: 1; }
  .hero h2 { font-size: 22px; margin-top: 4px; }
  .hero p { font-size: 13px; max-width: 100%; }
  .logo-tetis { width: 120px; }
  .cta.primary.small { display: none; }
  .menu { justify-content: flex-start; gap: 12px; }
  .menu a { font-size: 14px; }
  .feature-list { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 18px; }

  /* ensure no horizontal scroll from hero elements */
  .hero, .hero-bg-video, .container { max-width: 100%; box-sizing: border-box; }

  /* ====== MOBILE NAV (HAMBURGER / HOTDOG) ====== */
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: space-between; width: 34px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; gap: 4px; }
  .nav-toggle .bar { display: block; height: 3px; background: #08103a; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

  /* Hide desktop menu by default on small screens */
  .menu { display: none; flex-direction: column; gap: 0; width: 100%; background: rgba(6,8,22,0.75); padding: 16px 12px; border-radius: 10px; margin-top: 12px; position: absolute; top: 100%; left: 0; right: 0; }
  .menu li { padding: 12px 14px; }
  .menu a { color: #fff; display: block; font-weight:700; }
  
  /* Show CTA button inside menu on mobile */
  .menu-cta { display: block !important; padding: 12px 14px !important; border-top: 1px solid rgba(255,255,255,0.2); }
  .menu-cta .cta.primary.small { display: inline-block !important; width: 100%; }

  /* When menu is open, make it visible */
  .menu.open { display: flex; }
  
  /* Keep menu background color same when scrolled on mobile */
  .hero-navbar.scrolled .menu { background: rgba(6,8,22,0.75) !important; }

  /* Animated hamburger -> X when active */
  .nav-toggle.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ====== HOW IT WORKS (COMO FUNCIONA) ====== */
.how-it-works h2 { text-align: center; margin-bottom: 28px; }
.how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.how-it-works .step {
  background: rgba(255,255,255,0.02);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}
.how-it-works .step h3 { margin-bottom: 8px; font-size: 18px; }
.how-it-works .step p { font-size: 14px; color: #08103a; }

/* Responsive: 2 columns on medium screens, 1 column on small screens */
@media (max-width: 1000px) {
  .how-it-works .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .how-it-works .steps { grid-template-columns: 1fr; }
}

/* Small screen tweaks for hero paragraph box */
@media (max-width: 640px) {
  .hero-content p { padding: 10px 14px; font-size: 13px; }
}
