/* ============================================================
   KRAVES — Cuberto-style animated website
   ============================================================ */

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

:root {
  --bg:      #FFFFFF;
  --bg-2:    #F5F5F3;
  --bg-3:    #EBEBEB;
  --text:    #111111;
  --text-2:  #777777;
  --orange:  #FF6B00;
  --orange-2:#FF8C3A;
  --white:   #ffffff;
  --border:  rgba(0,0,0,0.09);
  --font:    'Space Grotesk', sans-serif;
  --ease:    cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out:cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: 120px 0; }

/* ---- Custom Cursor --------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
}
.cursor__dot {
  position: absolute;
  width: 8px; height: 8px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor__circle {
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
}
body.cursor-hover .cursor__circle {
  width: 80px; height: 80px;
  background: rgba(255,107,0,0.15);
  border-color: var(--orange);
}
body.cursor-hover .cursor__dot { width: 6px; height: 6px; }

body.cursor-dark .cursor__dot {
  background: var(--orange);
}
body.cursor-dark .cursor__circle {
  border-color: var(--orange);
}
body.cursor-dark.cursor-hover .cursor__circle {
  background: rgba(255,107,0,0.2);
}

/* ---- Loader ---------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(150% at 50% 50%);
}
.loader__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader__logo {
  width: clamp(360px, 62vw, 780px);
  height: auto;
  display: block;
  animation: loaderLogoIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both,
             loaderLogoPulse 2.8s ease-in-out 1.1s infinite;
}
@keyframes loaderLogoIn {
  0%   { opacity: 0; transform: scale(0.25) translateY(40px); filter: blur(12px); }
  55%  { opacity: 1; filter: blur(0px); }
  78%  { transform: scale(1.06) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}
@keyframes loaderLogoPulse {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 0px rgba(255,107,0,0)); }
  50%  { transform: scale(1.04); filter: drop-shadow(0 0 36px rgba(255,107,0,0.55)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 0px rgba(255,107,0,0)); }
}

/* ---- Navigation ------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}
.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease), opacity 0.4s var(--ease);
}
.nav.scrolled .nav__logo-img {
  height: 38px;
}
.nav__logo-img--night {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.nav--light .nav__logo-img--day   { opacity: 0; }
.nav--light .nav__logo-img--night { opacity: 1; pointer-events: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--orange-2); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.nav__burger.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.active span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---- Mobile Menu ----------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.menu__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  clip-path: circle(0% at calc(100% - 60px) 44px);
  transition: clip-path 0.7s var(--ease);
}
.menu.open .menu__bg {
  clip-path: circle(150% at calc(100% - 60px) 44px);
  pointer-events: all;
}
.menu__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s 0.3s, transform 0.4s 0.3s var(--ease);
}
.menu.open .menu__inner { opacity: 1; transform: none; pointer-events: all; }
.menu__links { margin-bottom: 48px; }
.menu__link {
  display: block;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  padding: 8px 0;
  overflow: hidden;
  transition: color 0.3s;
}
.menu__link:hover { color: var(--orange); }
.menu__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu__footer a {
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.3s;
}
.menu__footer a:hover { color: var(--text); }

/* ---- Machine Scene (canvas de fondo Hero + Nosotros) ------ */
.machine-scene {
  position: relative;
  isolation: isolate;
}
.machine-bg-layer {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.machine-bg-layer #heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  will-change: transform;
}

/* ---- Hero ------------------------------------------------- */
.hero-scroll-wrap {
  height: 280vh;
  position: relative;
  z-index: 2;
}
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255,107,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(255,107,0,0.05) 0%, transparent 60%);
}
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.82) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.0) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 160px;
  max-width: 900px;
}
.hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
}
.dot-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(255,107,0,0); }
}

.hero__title {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  overflow: visible;
}
.hero__line {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}
.hero__reveal {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}
.hero__title em {
  color: var(--orange);
  font-style: normal;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Stats bar */
.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stat-item {
  flex: 1;
  padding: 24px 40px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.stat-item p {
  width: 100%;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--orange);
}
.stat-divider {
  width: 1px;
  background: var(--border);
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 90px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--orange);
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}
.hero__scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  writing-mode: vertical-rl;
}

/* ---- Marquee --------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marqueeScroll 20s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-transform: uppercase;
}
.marquee__track .sep {
  color: var(--orange);
  font-size: 10px;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeReverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee__track--reverse {
  animation-name: marqueeReverse;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---- Section labels & titles ----------------------------- */
.sec-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.dot-small {
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}
.sec-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.sec-title span {
  display: block;
  overflow: hidden;
}
.sec-title span::after {
  content: attr(data-text);
}

/* Reveal animations */
.reveal-text span {
  display: block;
  transform: translateY(100%);
  will-change: transform;
}
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: none;
  transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-2); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: rgba(0,0,0,0.3); }
.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #1ebe5c; }
.btn--full { width: 100%; justify-content: center; border-radius: 12px; }

/* Magnetic button effect */
.btn-mag { transition: transform 0.3s var(--ease-out); }

/* ---- Nosotros -------------------------------------------- */
.about {
  background: rgba(255,255,255,0.88);
  position: relative;
  z-index: 2;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about__body {
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 40px;
}
.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about__card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.about__card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
}
.about__card-icon {
  width: 44px; height: 44px;
  background: rgba(255,107,0,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 16px;
}
.about__card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.about__card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ---- Sobre Nosotros -------------------------------------- */
.sobre-nosotros { background: var(--bg-2); }
.sn__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.sn__milestones { margin-top: 48px; }
.sn__milestone {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.sn__milestone:first-child { border-top: 1px solid var(--border); }
.sn__year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  flex-shrink: 0;
  width: 48px;
  padding-top: 3px;
}
.sn__milestone h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sn__milestone p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.sn__founder {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 20px;
}
.sn__quote-wrap { margin-bottom: 28px; }
.sn__quote-icon {
  color: var(--orange);
  opacity: 0.25;
  margin-bottom: 16px;
  display: block;
}
.sn__quote {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}
.sn__founder-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sn__founder-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sn__founder-avatar--photo {
  border: 3px solid var(--border);
}
.sn__founder-avatar--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sn__founder-badge strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.sn__founder-badge span {
  font-size: 13px;
  color: var(--text-2);
}
.sn__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sn__stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.sn__stat:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-3px);
}
.sn__stat-num {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.sn__stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Platforms — horizontal scroll ----------------------- */
.platforms {
  background: #0C0C0C;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.platforms .sec-label { color: var(--orange); }
.platforms .sec-title { color: #F0EDE6; }
.platforms__header {
  padding-top: 100px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.platforms__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.platforms__sub {
  font-size: 13px;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.platforms__track-outer {
  padding: 0 0 100px 48px;
}
.platforms__track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.pcard {
  width: 360px;
  flex-shrink: 0;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
}
.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,0,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.pcard:hover { border-color: rgba(255,107,0,0.3); }
.pcard:hover::before { opacity: 1; }
.pcard--accent { border-color: rgba(255,107,0,0.2); }


.pcard--catalog-cta {
  background: var(--orange);
  border-color: transparent;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 300px;
}
.pcard--catalog-cta:hover { border-color: transparent; }
.pcard--catalog-cta::before { display: none; }
.pcard--catalog-cta .pcard__num { color: rgba(255,255,255,0.5); }
.pcard--catalog-cta .pcard__body h3 { color: #fff; font-size: 24px; }
.pcard--catalog-cta .pcard__body p  { color: rgba(255,255,255,0.7); }

.pcard__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555;
  margin-bottom: 20px;
}
.pcard__icon {
  width: 64px; height: 64px;
  margin-bottom: 24px;
}
.pcard__icon img { width: 100%; height: 100%; object-fit: contain; }
.pcard__body { flex: 1; }
.pcard__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F0EDE6;
}
.pcard__body p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}
.pcard__specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: #888;
  border: 1px solid rgba(255,255,255,0.1);
}
.badge--height { color: #F0EDE6; }
.badge--orange { background: rgba(255,107,0,0.15); color: var(--orange); border-color: rgba(255,107,0,0.3); }
.pcard__models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.pcard__models span {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
  transition: gap 0.3s;
}
.pcard__cta:hover { gap: 12px; }
.pcard__cta--big {
  color: #fff;
  border-top-color: rgba(255,255,255,0.3);
  font-size: 15px;
}

/* ---- Team ------------------------------------------------- */
.team { background: #fff; position: relative; z-index: 2; }
.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.team__body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}
.team__features { display: flex; flex-direction: column; gap: 0; }
.team__feat {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.team__feat:first-child { border-top: 1px solid var(--border); }
.team__feat-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  flex-shrink: 0;
  padding-top: 2px;
}
.team__feat h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.team__feat p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- Contact --------------------------------------------- */
.contact { background: var(--bg-2); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 32px 0 40px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition: color 0.3s;
}
.contact__item:hover { color: var(--orange); }
.contact__item-icon {
  width: 36px; height: 36px;
  background: rgba(255,107,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

/* Form */
.cform {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cform__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cform__group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.cform__group input,
.cform__group select,
.cform__group textarea {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
}
.cform__group input:focus,
.cform__group select:focus,
.cform__group textarea:focus {
  border-color: var(--orange);
  background: rgba(255,107,0,0.04);
}
.cform__group input::placeholder,
.cform__group textarea::placeholder { color: rgba(0,0,0,0.25); }
.cform__group select option { background: var(--bg-3); }
.cform__group textarea { resize: vertical; min-height: 100px; }
.cform__success {
  display: none;
  align-items: center;
  gap: 10px;
  color: #25D366;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  background: rgba(37,211,102,0.08);
  border-radius: 10px;
  border: 1px solid rgba(37,211,102,0.2);
}
.cform__success.visible { display: flex; }

/* ---- Footer ---------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.footer__brand p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 280px;
}
.footer__col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--text); }
.footer__col--contact { display: flex; flex-direction: column; gap: 10px; }
.footer__col--contact h5 { margin-bottom: 10px; }
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366 !important;
  font-weight: 500;
  margin-top: 8px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
}
.footer__legal { display: flex; gap: 16px; }
.footer__legal a { color: var(--text-2); transition: color 0.2s; }
.footer__legal a:hover { color: var(--orange); }

/* ---- WhatsApp Float -------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: waPulse 3s ease infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav__inner { padding: 0 32px; }
  .about__grid,
  .sn__grid,
  .team__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .platforms__grid { grid-template-columns: repeat(2, 1fr); }
  .pcard--wide { grid-column: span 1; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-scroll-wrap { height: 220vh; }
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.55) 60%,
      rgba(255,255,255,0.0) 100%
    );
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 0 20px; gap: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 72px 0; }
  .hero__content { padding-top: 80px; padding-bottom: 80px; padding-left: 20px; padding-right: 20px; }
  .hero-scroll-wrap { height: 180vh; }
  .hero__title { font-size: clamp(44px, 11vw, 80px); }
  .hero__stats { position: relative; flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; }
  .stat-item { padding: 20px 24px; }
  .hero__scroll-cue { display: none; }
  .sec-title { font-size: clamp(30px, 7.5vw, 52px); }
  /* Platforms — vertical stack on mobile */
  .platforms__grid { grid-template-columns: 1fr; }
  .platforms__track { flex-wrap: wrap; width: auto !important; transform: none !important; }
  .platforms__track-outer { padding: 0 20px 60px; overflow: visible; }
  .pcard { width: 100%; }
  .pcard--catalog-cta { width: 100%; }
  .platforms__head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about__cards { grid-template-columns: 1fr; }
  .sn__stats { grid-template-columns: repeat(2, 1fr); }
  .sn__founder { padding: 24px; }
  .sn__quote { font-size: 15px; }
  .cform { padding: 24px; }
  .cform__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .menu__inner { padding: 0 20px; }
  .wa-float { bottom: 20px; right: 16px; width: 48px; height: 48px; }
  /* Hide custom cursor on touch devices */
  #cursor { display: none !important; }
  body { cursor: auto; }
  a, button, .btn, .btn-mag { cursor: pointer; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-scroll-wrap { height: 150vh; }
  .hero__title { font-size: clamp(38px, 12vw, 64px); }
  .hero__content { padding-top: 72px; padding-bottom: 60px; padding-left: 16px; padding-right: 16px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .section { padding: 56px 0; }
  .sn__stats { grid-template-columns: 1fr; }
  .sec-title { font-size: clamp(28px, 9vw, 48px); }
  .team__body { font-size: 15px; }
}

/* ---- Nav on dark section --------------------------------- */
.nav--light {
  background: rgba(12,12,12,0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.08);
}
.nav--light .nav__logo,
.nav--light .nav__link { color: #F0EDE6; }
.nav--light .nav__link::after { background: var(--orange); }
.nav--light .nav__link:hover { color: #fff; }
.nav--light .nav__burger span { background: #F0EDE6; }
.nav--light.scrolled {
  background: rgba(12,12,12,0.92);
  border-color: rgba(255,255,255,0.08);
}

/* ---- Reveal text perspective ----------------------------- */
.reveal-text { perspective: 800px; }
.reveal-text span { display: block; transform-origin: top center; }

/* ---- Scrollbar ------------------------------------------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ---- FAQ Section ----------------------------------------- */
.faq { background: var(--bg-2); }
.faq__header { margin-bottom: 56px; }
.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item[open] .faq__icon::before { transform: rotate(45deg); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--orange); }
.faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,107,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.faq__icon::before {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq__item[open] .faq__icon { background: rgba(255,107,0,0.18); }
.faq__answer {
  padding-bottom: 28px;
  max-width: 720px;
}
.faq__answer p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.faq__answer strong { color: var(--text); font-weight: 600; }
.faq__answer ul, .faq__answer ol {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 20px;
  margin-top: 8px;
}
.faq__answer li { margin-bottom: 4px; }

@media (max-width: 768px) {
  .faq__header { margin-bottom: 40px; }
  .faq__question { font-size: 15px; padding: 22px 0; }
}

/* ---- iOS viewport & safe area ---------------------------- */
/* Use svh on mobile so iOS Safari address bar doesn't clip hero */
@media (max-width: 1024px) {
  .hero,
  .machine-bg-layer { height: 100svh; }
  .machine-bg-layer { margin-bottom: -100svh; }
}
/* Notch / Dynamic Island safe areas */
.nav__inner {
  padding-left: max(40px, env(safe-area-inset-left));
  padding-right: max(40px, env(safe-area-inset-right));
}
@media (max-width: 768px) {
  .nav__inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
