/* =========================================================
   KAPTURA.AI LANDING PAGE
========================================================= */

/* ==================== DESIGN TOKENS ==================== */
:root {
  --kap-purple: #755df5;
  --kap-yellow: #f9ce0e;
  --kap-blue: #a3bcdb;
  --kap-white: #ffffff;

  --grad-hero: linear-gradient(135deg, var(--kap-purple), var(--kap-yellow));
  --grad-cta: linear-gradient(90deg, var(--kap-purple), var(--kap-yellow));

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;

  --radius-xl: 1rem;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);

  color-scheme: light;
}

/* Base reset and typography helpers */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #1f1f2b;
  background: #f7f7fb;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--kap-purple);
  color: var(--kap-white);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 999;
  transition: transform var(--dur-fast) var(--ease-smooth);
}

.skip-link:focus {
  left: 1rem;
}

/* Sticky header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(117, 93, 245, 0.08);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #1f1f2b;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.nav__toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(117, 93, 245, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav__toggle-line,
.nav__toggle-line::before,
.nav__toggle-line::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #1f1f2b;
  border-radius: 999px;
  transition: transform var(--dur-base) var(--ease-smooth), opacity var(--dur-base) var(--ease-smooth);
}

.nav__toggle-line::before,
.nav__toggle-line::after {
  position: absolute;
}

.nav__toggle-line::before {
  transform: translateY(-6px);
}

.nav__toggle-line::after {
  transform: translateY(6px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line::before {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line::after {
  transform: rotate(-45deg);
}





.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  background: rgba(117, 93, 245, 0.1);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.lang-switch__btn {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: #1f1f2b;
  transition: background var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth);
}

.lang-switch__btn.is-active {
  background: var(--kap-purple);
  color: var(--kap-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.65rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
}

.btn--primary {
  background: var(--grad-cta);
  color: #1f1f2b;
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--kap-white);
  background: rgba(255, 255, 255, 0.15);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(117, 93, 245, 0.2);
  text-decoration: none;
}

.btn:focus-visible,
.lang-switch__btn:focus-visible,
.nav__toggle:focus-visible,
.nav__links a:focus-visible,
.carousel__control:focus-visible,
.carousel__dot:focus-visible,
.footer__social-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(117, 93, 245, 0.45);
}

main {
  display: block;
}

/* Hero layout */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: var(--kap-white);
  padding: 7rem 1.5rem 5rem;
  display: grid;
  gap: 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero__subtitle {
  margin-block: 1rem 1.5rem;
  font-size: 1.125rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hero__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__highlights li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--kap-yellow);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.hero__media {
  position: relative;
  z-index: 1;
}

.hero__video-frame {
  position: relative;
  border-radius: 1.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero__video {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Shared section styling */
.section {
  padding: 5rem 1.5rem;
}

.section + .section {
  border-top: 1px solid rgba(31, 31, 43, 0.05);
}

.section__header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__intro {
  color: rgba(31, 31, 43, 0.72);
}

.eyebrow {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--kap-purple);
}

.section--problem {
  background: #fff;
}

.problem__grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(117, 93, 245, 0.12);
  transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base) var(--ease-smooth);
}

/* ✨ Problem cards — unified hover with Ventajas style */
.section--problem .card {
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}

.section--problem .card:hover,
.section--problem .card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(117, 93, 245, 0.32);
  background: #ffffff; /* keep white background */
}





.solution__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.solution__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.solution__list li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--kap-purple);
}

.section--features {
  background: #fff;
}

.features__grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  background: #f5f5ff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(117, 93, 245, 0.14);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-smooth);
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
}

.section--demo {
  background: linear-gradient(160deg, rgba(117, 93, 245, 0.12), rgba(249, 206, 14, 0.18));
}

/* Demo carousel */
.carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.carousel__track {
  display: flex;
  transition: transform 600ms var(--ease-smooth);
}

.carousel__slide {
  min-width: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.carousel__media {
  width: min(100%, 520px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: rgba(117, 93, 245, 0.1);
}

.carousel__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(117, 93, 245, 0.35), rgba(163, 188, 219, 0.45));
}

.carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f1f2b;
}

.carousel__control--prev {
  left: -1rem;
}

.carousel__control--next {
  right: -1rem;
}

.carousel__dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(117, 93, 245, 0.25);
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth);
}

.carousel__dot.is-active {
  background: var(--kap-purple);
  transform: scale(1.2);
}

.section--security {
  background: #fff;
}

.security__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.security__list li {
  background: #f2f4ff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(163, 188, 219, 0.4);
}

/* Waitlist form */
.section--waitlist {
  background: var(--grad-hero);
  color: var(--kap-white);
}

.waitlist__content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.waitlist__form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.form__field {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.form__field label {
  font-weight: 600;
}

.form__field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: var(--kap-white);
}

.form__field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.waitlist__privacy {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* =========================================================
   WAITLIST FEEDBACK MESSAGE
========================================================= */
.waitlist__message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--dur-base) var(--ease-smooth),
    transform var(--dur-base) var(--ease-smooth);
}

/* Animate in when message appears */
.waitlist__message.is-success,
.waitlist__message.is-error {
  opacity: 1;
  transform: translateY(0);
}

/* Success and error colors */
.waitlist__message.is-success,
.waitlist__message.is-error {
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideIn 0.4s var(--ease-smooth);
}

/* Color contrast tuned for Kaptura gradient background */
.waitlist__message.is-success {
  color: #00e29b; /* Brighter mint-green for readability */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.waitlist__message.is-error {
  color: #ff5f5f;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Entry animation */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   TOAST NOTIFICATION — below form button, Kaptura purple
========================================================= */
.toast {
  position: absolute;
  top: calc(100% + 1rem); /* sits right below the button */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--kap-purple);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  padding: 0.9rem 1.4rem;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  transition:
    opacity 0.4s var(--ease-smooth),
    transform 0.4s var(--ease-smooth);
}

/* Animate in with upward float + soft glow */
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  animation: toastFloatIn 0.6s var(--ease-smooth),
             toastGlow 1.8s ease-out;
}

/* Keyframes for entry motion */
@keyframes toastFloatIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Keyframes for subtle glow pulse */
@keyframes toastGlow {
  0% {
    box-shadow: 0 6px 16px rgba(117, 93, 245, 0.4);
  }
  50% {
    box-shadow: 0 8px 22px rgba(117, 93, 245, 0.55);
  }
  100% {
    box-shadow: 0 6px 16px rgba(117, 93, 245, 0.4);
  }
}

/* Optional: error state (if you want red version for errors) */
.toast.error {
  background: #d93025;
}



/* Footer */
.footer {
  background: #0d0d1a;
  color: rgba(255, 255, 255, 0.92);
  padding: 3.5rem 1.5rem;
}

.footer__top,
.footer__links,
.footer__bottom {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer__brand img {
  width: 160px;
}

.footer__links {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.88);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  justify-items: center;
  text-align: center;
}

.footer__social {
  display: inline-flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--kap-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Scroll reveal animation states */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-smooth), transform 600ms var(--ease-smooth);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  

  .nav__toggle {
    display: none; /* hide burger */
  }

  .nav__links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
  }

  .nav__actions {
    flex-direction: row;
    align-items: center;
  }

  .btn--ghost {
    border-color: rgba(255, 255, 255, 0.35);
  }

  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding: 8rem 3rem 6rem;
  }

  .section__header {
    margin-bottom: 4rem;
  }

  .problem__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  

  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section--demo {
    padding-inline: 3rem;
  }

  .carousel__slide {
    padding-inline: 3rem;
  }

  .carousel__control--prev {
    left: -2rem;
  }

  .carousel__control--next {
    right: -2rem;
  }

  .security__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .waitlist__content {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    position: relative;
  }

  .waitlist__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .waitlist__form .form__field:nth-child(-n + 2) {
    margin-bottom: 0.25rem;
  }

  .waitlist__form button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .waitlist__privacy {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    grid-template-columns: auto auto;
    justify-content: space-between;
    text-align: left;
  }
}

/* Larger breakpoints */
@media (min-width: 1024px) {
  body {
    font-size: 17px;
  }

  .nav {
    padding-inline: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .hero__video-frame {
    margin-left: auto;
    max-width: 520px;
  }

  .section {
    padding-block: 6rem;
  }

  .carousel__slide {
    padding-inline: 4rem;
  }
}

/* ==================== HERO v2 — One Source of Truth (Core + Tuning) ==================== */
#hero.hero--v2 {
  /* Canvas + spacing */
  --hero-max: 1440px;
  --hero-min-h: 60vh;
  --hero-gap: clamp(28px, 4vw, 56px);

  /* Columns */
  --hero-cols: 1fr 1fr;

  /* Left (text) controls */
  --left-width-cap: none;
  --left-x: 0;
  --left-y: 0;

  /* Right (video) controls */
  --right-width: 100%;
  --right-x: 0;
  --right-y: 0;
  --media-aspect: 16 / 9;

  /* Title animation */
  --title-size-sm: 2rem;
  --title-size-lg: 3.75rem;
  --rotator-minch: 18ch;
  --rotator-grad: linear-gradient(135deg, #F9CE0E);
  --rotator-enter: 450ms;
  --rotator-exit: 350ms;
  --rotator-shift: 28%;
}

/* Grid shell */
#hero.hero--v2 .hero__inner--v2 {
  display: grid;
  grid-template-columns: var(--hero-cols);
  align-items: center;
  justify-items: center;
  gap: var(--hero-gap);
  max-width: var(--hero-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  min-height: var(--hero-min-h);
  position: relative;
  left: 0; /* default center */
}

/* Left column */
#hero.hero--v2 .hero__content {
  max-width: var(--left-width-cap);
  transform: translate(var(--left-x), var(--left-y));
}

/* Right column */
#hero.hero--v2 .k-media {
  width: 100%;
  max-width: 640px;
  transform: translate(var(--right-x), var(--right-y));
  justify-self: center;
}

/* ===== Polished browser mockup ===== */
#hero.hero--v2 {
  --chrome-h: 44px;
  --chrome-bg: rgba(255,255,255,0.85);
  --chrome-blur: 12px;
  --chrome-border: rgba(0,0,0,.08);
  --chrome-shadow: 0 12px 36px rgba(0,0,0,.22);
  --viewport-radius: 20px;
  --url-bg: rgba(0,0,0,.06);
  --url-text: rgba(0,0,0,.72);
}

/* Outer frame */
#hero.hero--v2 .k-browser {
  display: grid;
  grid-template-rows: var(--chrome-h) 1fr;
  width: 100%;
  aspect-ratio: var(--media-aspect);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--chrome-shadow);
  border: 1px solid var(--chrome-border);
  position: relative;
}

/* Top bar */
#hero.hero--v2 .k-browser__chrome {
  display: flex;
  align-items: center;
  justify-content: center;   /* ✅ centers URL bar */
  position: relative;        /* ✅ allows us to pin traffic lights */
  gap: 12px;
  padding: 0 14px;
  background: var(--chrome-bg);
  backdrop-filter: blur(var(--chrome-blur));
  -webkit-backdrop-filter: blur(var(--chrome-blur));
  border-bottom: 1px solid var(--chrome-border);
}

/* Traffic lights */
#hero.hero--v2 .k-browser__traffic {
  display: flex;
  gap: 6px;
  position: absolute;   /* ✅ pins dots to the left */
  left: 14px;
}

#hero.hero--v2 .k-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
#hero.hero--v2 .k-browser__traffic .k-dot:nth-child(1) { background: #ff5f56; }
#hero.hero--v2 .k-browser__traffic .k-dot:nth-child(2) { background: #ffbd2e; }
#hero.hero--v2 .k-browser__traffic .k-dot:nth-child(3) { background: #27c93f; }

/* Address bar */
#hero.hero--v2 .k-browser__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  min-width: 180px;
  max-width: 60%;
  border-radius: 999px;
  background: var(--url-bg);
  border: 1px solid rgba(0,0,0,.08);
}
#hero.hero--v2 .k-browser__lock {
  font-size: 12px;
  opacity: .7;
}
#hero.hero--v2 .k-browser__url {
  font: 600 12px/1 var(--font-body, system-ui, sans-serif);
  color: var(--url-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Video area */
#hero.hero--v2 .k-browser__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 var(--viewport-radius) var(--viewport-radius);
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
}
#hero.hero--v2 .k-browser__video.is-loaded { opacity: 1; }

/* Mobile refinement */
@media (max-width: 1200px) {
  #hero.hero--v2 .k-browser {
    width: clamp(280px, 92vw, 480px);
  }
}

/* Video fill + fade-in */
#hero.hero--v2 .k-browser__video {
  display: block;
  width: 100%;
  height: calc(100% - 46px);
  object-fit: cover;
  border-radius: 0 0 24px 24px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
}
#hero.hero--v2 .k-browser__video.is-loaded { opacity: 1; }

/* Animated title */
#hero.hero--v2 .hero__title-animated {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(var(--title-size-sm), 4.8vw, var(--title-size-lg));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
#hero.hero--v2 .k-title-chunk { display: inline-block; }
#hero.hero--v2 .k-title-rotator {
  display: inline-block;
  min-width: var(--rotator-minch);
  white-space: nowrap;
  background: var(--rotator-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  will-change: transform, opacity;
}
#hero.hero--v2 .k-rotator--enter { opacity: 0; transform: translateY(var(--rotator-shift)); }
#hero.hero--v2 .k-rotator--active {
  opacity: 1; transform: translateY(0);
  transition: transform var(--rotator-enter) ease, opacity var(--rotator-enter) ease;
}
#hero.hero--v2 .k-rotator--exit {
  opacity: 0; transform: translateY(calc(var(--rotator-shift) * -1));
  transition: transform var(--rotator-exit) ease, opacity var(--rotator-exit) ease;
}

/* Eyebrow */
#hero.hero--v2 [data-i18n-key="hero.eyebrow"],
#hero.hero--v2 .hero-eyebrow {
  color: #F9CE0E;
  opacity: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==================== Responsive ==================== */

/* Desktop ≥1025px — scale mockup large */
@media (min-width: 1025px) {
  #hero.hero--v2 .hero__inner--v2 {
    left: 0; /* keep centered by default */
  }
  @media (min-width: 1600px) {
    #hero.hero--v2 .hero__inner--v2 {
      left: 0%; /* only ultrawide, gentle nudge */
    }
  }
  #hero.hero--v2 .k-browser {
    width: 320%;
  }
}

/* Mobile — stack text + video */
@media (max-width: 1200px) {   /* instead of 1024px */
  #hero.hero--v2 .hero__inner--v2 {
    grid-template-columns: 1fr;
    row-gap: 28px;
    min-height: unset;
    left: 0;
  }

  #hero.hero--v2 .hero__content {
    transform: none;
    max-width: 680px;
    margin-inline: auto;
    order: 1;
  }

  #hero.hero--v2 .k-media {
    inline-size: 100%;
    max-width: 100%;
    transform: none;
    display: flex;
    justify-self: center;
    order: 2;
  }

  #hero.hero--v2 .k-browser {
    width: clamp(280px, 92vw, 480px); /* neat card style */
    margin-inline: auto;
    border-radius: 16px;
  }
}

/* Mobile header fix */
@media (max-width: 768px) {
  .nav__brand-name {
    display: none; /* ✅ hide "Kaptura.ai" text */
  }

  .nav__logo {
    width: 32px;
    height: 32px;
  }

  .nav {
    justify-content: space-between; /* logo left, burger right */
  }
}



/* ================= NAVIGATION ================= */

/* Base nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 1000;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav__brand-name { font-weight: 700; }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Lang toggle style */
.nav__lang {
  display: flex;
  gap: .5rem;
}

/* Desktop >=1024px */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none; }
  .nav__menu { display: none; }
}

/* Mobile <1024px */
@media (max-width: 1023px) {
  .nav__links { display: none; } /* hide inline links */
  .nav__actions .btn--primary { display: none; } /* hide CTA */
  .nav__toggle { display: block; }
  .nav__lang { margin: 0 auto; }

  .nav__menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    z-index: 999;
  }

  .nav__menu.is-open { display: flex; }

  .nav__menu .nav__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* ====== FEATURES / SOLUCIÓN Y VENTAJAS ====== */
.feature-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  background: #f8f8f8;
}

.feature-icon {
  margin-bottom: 1rem;
  width: 24px;
  height: 24px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: black;
}

/* HERO CTA button solid yellow */
.hero__cta .btn--primary,
#hero.hero--v2 .btn--primary {
  background: #F9CE0E !important;
  color: black !important;
  font-weight: 600;
  transition: background 0.2s ease;
}

.hero__cta .btn--primary:hover,
#hero.hero--v2 .btn--primary:hover {
  background: #e7c10d !important;
}

/* NAVIGATION desktop visible */
@media (min-width: 1024px) {
  .nav__links { display: flex !important; }
}


/* =========================================================
   v6 OVERRIDES — minimal, surgical changes on top of v5
   Goals:
   1) Desktop nav links visible (show .nav__menu on ≥1024px)
   2) Language toggle always visible (now lives outside .nav__menu)
   3) Ventajas section gets brand gradient background
   4) Cards: modern raise + soft purple glow
========================================================= */

/* 1) Desktop nav: show inline menu container */
@media (min-width: 1024px) {
  .nav__menu {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
  }
  .nav__links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
  }
  .nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

/* 2) Mobile header layout: keep language toggle visible and push it to the right */
@media (max-width: 1023px) {
  .lang-switch {
    margin-left: auto;   /* sit at the right end */
  }
  .nav__toggle {
    order: 3;            /* hamburger last on the row */
  }
}

/* 3) Alternating background: apply gradient to Ventajas */
#features.section--features.section--gradient {
  background: var(--grad-hero);
  color: var(--kap-white);
}
#features.section--features.section--gradient .section__intro {
  color: rgba(255, 255, 255, 0.92);
}
/* ✨ Ventajas eyebrow highlight */
#features.section--features .eyebrow {
  color: var(--kap-yellow);
}

/* 5) Feature cards on gradient: readable surfaces + subtle glow */
.section--features.section--gradient .feature-card {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f2b;
  border: 1px solid rgba(117, 93, 245, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base) var(--ease-smooth);
}
.section--features.section--gradient .feature-card:hover,
.section--features.section--gradient .feature-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(117, 93, 245, 0.32);
}

/* Icons in feature cards */
.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  color: var(--kap-purple);
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ✨ Video modal - for demo section -  (lightbox) */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  transition: opacity 0.3s var(--ease-smooth);
  opacity: 0;
}

.video-modal.is-active {
  display: flex;
  opacity: 1;
}

.video-modal__content {
  position: relative;
  max-width: 960px;
  width: 90%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.video-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.75rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

#video-modal-player {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
