/* ============================================
   YRMO Studio — Web v4
   Immersive 3D + OpenClaw-first design
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #050607;
  --white: #FDFDF9;
  --accent: #ACDD81;
  --forest: #1A552D;
  --forest-light: #378844;
  --dim: rgba(253,253,249,0.7);
  --dim-light: rgba(253,253,249,0.1);
  --ymc: #ACDD81;
  --yss: #60A5FA;
  --yms: #C084FC;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --pad: clamp(24px, 8vw, 128px);
  --page-pad: clamp(24px, 8vw, 128px);
  --font-display: 'Space Grotesk', sans-serif;
  --font-grotesk: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --light: #FDFDF9;
  --text: #e8e8e8;
  --bg: #050607;
}

html { scrollbar-width: none; -webkit-font-smoothing: antialiased; }
html::-webkit-scrollbar { display: none; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }
.accent-orange { color: #FF6B35; }

.hero__oc-adjust {
  vertical-align: middle;
  margin-left: 8px;
  margin-top: 0;
}

/* 3D Canvas — fixed fullscreen background */
#world {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Content overlay */
.content {
  position: relative;
  z-index: 1;
}

/* ==================== LOADER ==================== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
  margin-bottom: 16px;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s;
}
.loader__counter {
  font-size: 14px; font-weight: 300;
  color: var(--dim); letter-spacing: 2px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--forest-light));
  z-index: 100;
  transition: width 0.1s;
}

/* ==================== NAV ==================== */
/* Floating 3D glass navbar */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 64px); max-width: 1200px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  z-index: 50;
  border-radius: 16px;
  /* 3D glass depth — opaque enough to prevent text bleed-through */
  background: linear-gradient(
    180deg,
    rgba(20,20,20,0.92) 0%,
    rgba(15,15,15,0.88) 100%
  );
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 0 rgba(0,0,0,0.2) inset,
    0 8px 32px rgba(0,0,0,0.4),
    0 2px 8px rgba(0,0,0,0.2);
  will-change: transform;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    600px circle at var(--nav-glow-x, 50%) var(--nav-glow-y, 50%),
    rgba(172,221,129,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nav:hover::before { opacity: 1; }
/* Top edge highlight — simulates light hitting a 3D surface */
.nav::after {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.15) 30%,
    rgba(172,221,129,0.2) 50%,
    rgba(255,255,255,0.15) 70%,
    transparent 100%
  );
  border-radius: 1px;
  pointer-events: none;
}
.nav__wolf {
  height: 36px; width: auto;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), filter 0.4s;
  position: relative;
  z-index: 1;
}
.nav__logo:hover .nav__wolf {
  transform: scale(1.12) rotate(8deg);
  filter: drop-shadow(0 0 10px rgba(172,221,129,0.4));
}
.nav__links {
  display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.nav__links a {
  font-size: 13px; font-weight: 400;
  color: rgba(253,253,249,0.5);
  letter-spacing: 0.3px;
  transition: color 0.3s, transform 0.3s cubic-bezier(0.23,1,0.32,1);
  padding: 6px 14px;
  border-radius: 8px;
  position: relative;
}
.nav__links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
/* Active dot indicator */
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%) scale(0);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
}
.nav__links a:hover::after { transform: translateX(-50%) scale(1); }
.nav__cta {
  padding: 7px 20px !important;
  border: 1px solid rgba(172,221,129,0.25) !important;
  border-radius: 10px;
  color: var(--accent) !important;
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1) !important;
  background: rgba(172,221,129,0.04);
  font-weight: 500;
}
.nav__cta:hover {
  background: rgba(172,221,129,0.1) !important;
  border-color: rgba(172,221,129,0.5) !important;
  box-shadow: 0 0 20px rgba(172,221,129,0.1);
  transform: translateY(-1px);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px; font-weight: 500;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--accent); color: var(--black);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(172,221,129,0.3);
}
.btn--ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(253,253,249,0.15);
}
.btn--ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(172,221,129,0.04);
}

/* ==================== SECTION COMMONS ==================== */
section {
  padding: clamp(100px, 14vw, 200px) var(--pad);
}
.section-label {
  font-size: 12px; font-weight: 500; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 32px; display: flex; align-items: center; gap: 16px;
  opacity: 0.8;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
section h2 {
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 300; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 40px;
}

/* Glass card base */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero__logo {
  position: absolute;
  top: 50%; right: 2%;
  transform: translateY(-50%);
  width: 55%;
  pointer-events: none;
  z-index: 1;
}
.hero__logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 80px rgba(172,221,129,0.2));
  animation: heroLogoFloat 8s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero__tag {
  font-size: 12px; font-weight: 500; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 32px; opacity: 0.8;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 300; letter-spacing: -2px;
  line-height: 1.05; margin-bottom: 32px;
}
.hero h1 .line { display: block; }
.hero__sub {
  font-size: 18px; font-weight: 300; color: var(--dim);
  max-width: 560px; line-height: 1.75;
  margin-bottom: 48px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 40px; left: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(253,253,249,0.2);
}
.line-h { width: 40px; height: 1px; background: rgba(253,253,249,0.15); }

/* ==================== STATS ==================== */
/* Stats marquee */
.stats-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
  white-space: nowrap;
}
.stats-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: marqueeScroll 30s linear infinite;
}
.stats-marquee__item {
  font-size: 14px;
  font-weight: 300;
  color: var(--dim);
  letter-spacing: 0.5px;
}
.stats-marquee__item strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}
.stats-marquee__sep {
  color: rgba(255,255,255,0.1);
  font-size: 12px;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== ABOUT ==================== */
.about__header {
  margin-bottom: 80px;
  text-align: center;
}
.about__header h2 { margin-left: auto; margin-right: auto; }
.about__header .section-label { justify-content: center; }
.about__intro {
  font-size: 20px; font-weight: 300; color: var(--dim);
  line-height: 1.8; max-width: 700px; margin: 32px auto 0;
}
.about__cards {
  display: flex; flex-direction: column;
  gap: 60px;
  align-items: center;
}
.about__card {
  padding: 60px 64px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
  width: 100%;
}
.about__card--large p {
  margin-bottom: 16px;
}
.about__card--large p:last-child {
  margin-bottom: 0;
}
.about__card::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(172,221,129,0.2), transparent);
}
.about__card:hover {
  border-color: rgba(172,221,129,0.12);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.about__num {
  font-size: 11px; font-weight: 600; color: var(--accent);
  letter-spacing: 3px; margin-bottom: 20px; display: block; opacity: 0.6;
}
.about__card h3 {
  font-size: 28px; font-weight: 400; margin-bottom: 24px; letter-spacing: -0.3px;
}
.about__card p { font-size: 17px; color: var(--dim); line-height: 1.85; }

/* ==================== OPENCLAW ==================== */
.openclaw__intro {
  font-size: 18px; color: var(--dim); line-height: 1.8;
  max-width: 700px; margin-bottom: 16px;
}

/* Breaking news highlight */
.openclaw__highlight {
  padding: 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(172,221,129,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(172,221,129,0.15);
  margin-bottom: 80px; position: relative; overflow: hidden;
}
.openclaw__highlight::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.openclaw__badge {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--black);
  background: var(--accent); padding: 4px 12px;
  border-radius: 4px; display: inline-block; margin-bottom: 20px;
}
.openclaw__highlight h3 {
  font-size: 28px; font-weight: 400; margin-bottom: 16px; letter-spacing: -0.5px;
}
.openclaw__highlight p {
  font-size: 16px; color: var(--dim); line-height: 1.8; margin-bottom: 16px;
}
.openclaw__date {
  font-size: 12px; color: rgba(253,253,249,0.25); letter-spacing: 1px;
}

/* Systems grid */
.openclaw__systems {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 170px; /* más aire antes del device showcase */
}
.system-card {
  padding: 40px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.system-card__line {
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ymc), transparent);
  opacity: 0.5; border-radius: 2px;
}
.system-card--yss .system-card__line {
  background: linear-gradient(90deg, transparent, var(--yss), transparent);
}
.system-card--yms .system-card__line {
  background: linear-gradient(90deg, transparent, var(--yms), transparent);
}
.system-card:hover { transform: translateY(-6px); }
.system-card--ymc:hover { border-color: rgba(172,221,129,0.15); box-shadow: 0 20px 60px rgba(172,221,129,0.06); }
.system-card--yss:hover { border-color: rgba(96,165,250,0.15); box-shadow: 0 20px 60px rgba(96,165,250,0.06); }
.system-card--yms:hover { border-color: rgba(192,132,252,0.15); box-shadow: 0 20px 60px rgba(192,132,252,0.06); }
.system-card__badge {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  padding: 6px 14px; border-radius: 8px;
  display: inline-block; margin-bottom: 20px;
}
.system-card--ymc .system-card__badge { background: rgba(172,221,129,0.1); color: var(--ymc); border: 1px solid rgba(172,221,129,0.15); }
.system-card--yss .system-card__badge { background: rgba(96,165,250,0.1); color: var(--yss); border: 1px solid rgba(96,165,250,0.15); }
.system-card--yms .system-card__badge { background: rgba(192,132,252,0.1); color: var(--yms); border: 1px solid rgba(192,132,252,0.15); }
.system-card h4 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.system-card p { font-size: 14px; color: var(--dim); line-height: 1.75; margin-bottom: 16px; }
.system-card__status {
  font-size: 11px; color: var(--accent); letter-spacing: 1px;
  opacity: 0.6;
}

/* Features */
.openclaw__features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.feature {
  display: flex; gap: 20px; padding: 28px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.feature::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.3; transition: opacity 0.4s;
}
.feature:hover {
  border-color: rgba(172,221,129,0.1);
  background: rgba(255,255,255,0.02);
  transform: translateX(6px);
}
.feature:hover::before { opacity: 0.7; }
.feature__icon {
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 1px; flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(172,221,129,0.05);
  border-radius: 12px; border: 1px solid rgba(172,221,129,0.08);
}
.feature h5 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* ==================== SERVICES ==================== */
.services__sub {
  font-size: 17px; color: var(--dim); line-height: 1.75;
  max-width: 560px; margin-bottom: 60px;
}
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  padding: 40px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card::before {
  content: ''; position: absolute; top: 20%; bottom: 20%; left: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.2; transition: opacity 0.4s;
}
.service-card:hover {
  border-color: rgba(172,221,129,0.1);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.service-card:hover::before { opacity: 0.6; }
.service-card__num {
  font-size: 48px; font-weight: 200; color: var(--accent);
  opacity: 0.1; position: absolute; top: 16px; right: 20px;
  letter-spacing: -2px;
}
.service-card h4 { font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--dim); line-height: 1.75; }

/* ==================== NEWS ==================== */
.news__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.news-card {
  padding: 44px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.news-card:hover {
  border-color: rgba(172,221,129,0.1);
  transform: translateY(-4px);
}
.news-card--featured {
  background: linear-gradient(135deg, rgba(172,221,129,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(172,221,129,0.1);
}
.news-card__tag {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.news-card h3 {
  font-size: 24px; font-weight: 400; margin-bottom: 16px;
  letter-spacing: -0.3px; line-height: 1.3;
}
.news-card p { font-size: 15px; color: var(--dim); line-height: 1.75; margin-bottom: 20px; }
.news-card__meta {
  display: flex; gap: 24px;
  font-size: 12px; color: rgba(253,253,249,0.2); letter-spacing: 0.5px;
}

/* ==================== PROCESS ==================== */
.process {
  position: relative;
  z-index: 1;
  padding: 120px 80px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.process__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 16px;
}
.process__subtitle {
  font-size: 20px; color: var(--dim);
  text-align: center; margin-bottom: 48px;
}
.process__toggle {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 64px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px; padding: 4px;
  width: fit-content; margin-left: auto; margin-right: auto;
}
.process__toggle-btn {
  font-family: var(--font-display); font-size: 15px;
  padding: 12px 32px; border-radius: 11px;
  background: transparent; border: none;
  color: var(--dim); cursor: pointer;
  transition: all 0.3s ease; letter-spacing: 0.3px;
}
.process__toggle-btn--active {
  background: rgba(172,221,129,0.12);
  color: var(--accent); font-weight: 500;
}
.process__toggle-btn:hover:not(.process__toggle-btn--active) {
  color: var(--text);
}
.process__track { display: none; }
.process__track--active { display: block; }
.process__steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.step {
  padding: 44px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}
.step::before {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(172,221,129,0.2), transparent);
  opacity: 0.5;
}
.step:hover {
  border-color: rgba(172,221,129,0.1);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.035);
}
.step__num {
  font-size: 72px; font-weight: 200;
  background: linear-gradient(180deg, rgba(172,221,129,0.2), transparent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px; display: block; line-height: 1;
}
.step h4 {
  font-size: 24px; font-weight: 500; margin-bottom: 16px;
  font-family: var(--font-display); letter-spacing: -0.3px;
}
.step__lead {
  font-size: 17px; color: rgba(245,245,245,0.8);
  line-height: 1.8; margin-bottom: 14px;
}
.step__detail {
  font-size: 15px; color: rgba(240,240,240,0.5);
  line-height: 1.75;
}
.step p { font-size: 15px; color: var(--dim); line-height: 1.75; }

/* ==================== CONTACT ==================== */
.contact__sub {
  font-size: 17px; color: var(--dim); line-height: 1.75;
  max-width: 600px; margin: 0 auto 60px; text-align: center;
}
.contact__grid { display: grid; grid-template-columns: 260px 1fr; gap: 80px; }
.contact__info { display: flex; flex-direction: column; gap: 36px; padding-top: 8px; }
.contact__block h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 10px; font-weight: 500; opacity: 0.7;
}
.contact__block a,
.contact__block span {
  font-size: 16px; color: var(--dim); transition: color .3s;
}
.contact__block a:hover { color: var(--accent); }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 11px; color: rgba(253,253,249,0.3);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(253,253,249,0.03);
  border: 1px solid rgba(253,253,249,0.06);
  border-radius: 12px; padding: 16px 18px;
  color: var(--white); font-family: inherit; font-size: 15px;
  transition: border-color .4s, box-shadow .4s;
  outline: none; resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(172,221,129,0.3);
  box-shadow: 0 0 0 3px rgba(172,221,129,0.05);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.btn--submit { align-self: flex-start; }

/* ==================== FOOTER ==================== */
.footer {
  padding: 80px var(--pad) 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(5,6,7,0.9);
  backdrop-filter: blur(20px);
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 64px;
}
.footer__brand p { font-size: 15px; color: var(--dim); margin-top: 16px; line-height: 1.7; }
.footer__powered { font-size: 13px; color: rgba(253,253,249,0.25); margin-top: 8px; }
.footer__col h5 {
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 28px; color: var(--accent); opacity: 0.7;
}
.footer__col a {
  display: block; font-size: 16px; color: rgba(253,253,249,0.45);
  padding: 8px 0; transition: color .3s; letter-spacing: 0.2px;
}
.footer__col a:hover { color: var(--white); }
/* -- RRSS Section -- */
.footer__social-section {
  padding: 56px 0;
  margin-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}
.footer__social-title {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 4px; color: var(--accent); opacity: 0.5;
  margin-bottom: 40px;
}
.footer__social-grid {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap;
}
.footer__social-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 28px 24px 24px;
  width: 160px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.footer__social-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(172,221,129,0.08), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.footer__social-card:hover::before { opacity: 1; }
.footer__social-card:hover {
  border-color: rgba(172,221,129,0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(172,221,129,0.06);
}
.footer__social-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(253,253,249,0.4);
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__social-card:hover .footer__social-icon {
  color: var(--accent);
  transform: scale(1.15);
}
.footer__social-icon svg {
  width: 32px; height: 32px;
  display: block;
}
.footer__social-name {
  font-family: var(--font-grotesk); font-size: 16px; font-weight: 600;
  color: rgba(253,253,249,0.7);
  transition: color 0.3s ease;
}
.footer__social-card:hover .footer__social-name {
  color: var(--white);
}
.footer__social-handle {
  font-size: 12px; color: rgba(253,253,249,0.25);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.footer__social-card:hover .footer__social-handle {
  color: rgba(172,221,129,0.6);
}
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; color: rgba(253,253,249,0.2);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover,
.footer__bottom a:hover { color: var(--accent); }

/* ==================== REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==================== PACKS ==================== */
.packs__section {
  margin-top: 80px; padding-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.packs__heading {
  font-family: var(--font-grotesk); font-size: 22px; font-weight: 300;
  letter-spacing: -0.5px; color: rgba(253,253,249,0.5);
  text-align: center; margin-bottom: 32px;
  text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 500;
  color: var(--accent); opacity: 0.6;
}
.packs__inline {
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
  grid-column: 1 / -1;
}
.packs__inline-title {
  font-family: var(--font-grotesk); font-size: 28px; font-weight: 300;
  letter-spacing: -0.5px; color: var(--white); text-align: center; margin-bottom: 16px;
}
.packs__inline-waitlist {
  text-align: center; font-size: 15px; color: var(--accent); opacity: 0.7;
  margin-bottom: 40px; font-style: italic;
}
.packs__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; width: 100%; margin: 0 auto;
  align-items: stretch;
}
.packs__grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
}
.pack {
  padding: 44px 36px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  position: relative;
  display: flex; flex-direction: column;
}
.pack:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
}
.pack--featured {
  background: rgba(172,221,129,0.04);
  border-color: rgba(172,221,129,0.15);
}
.pack--featured:hover {
  border-color: rgba(172,221,129,0.25);
  background: rgba(172,221,129,0.06);
}
.pack__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--bg);
  background: var(--accent); padding: 4px 16px;
  border-radius: 100px;
}
.pack__header { margin-bottom: 32px; }
.pack__label {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); opacity: 0.6;
  display: block; margin-bottom: 12px;
}
.pack__name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.pack__desc {
  font-size: 15px; color: rgba(240,240,240,0.6);
  line-height: 1.7;
}
.pack__features {
  list-style: none; padding: 0; margin-bottom: 28px;
  flex-grow: 1;
}
.pack__features li {
  font-size: 15px; color: rgba(240,240,240,0.75);
  padding: 10px 0; padding-left: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative; line-height: 1.5;
}
.pack__features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); opacity: 0.6; font-size: 14px;
}
.pack__features li:last-child { border-bottom: none; }
.pack__ideal {
  font-size: 14px; color: rgba(240,240,240,0.45);
  font-style: italic; margin-bottom: 28px; line-height: 1.6;
}
.pack .btn {
  align-self: stretch; text-align: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .about__card { padding: 40px 32px; }
  .openclaw__systems { grid-template-columns: 1fr; }
  .openclaw__features { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__tabs { grid-template-columns: 1fr; gap: 32px; }
  .services__tabs-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .services__tab-btn { padding: 10px 16px; font-size: 15px; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .packs__grid { grid-template-columns: 1fr; max-width: 480px; }
  .about__row--split { grid-template-columns: 1fr; gap: 32px; }
  .about__stack-grid { grid-template-columns: 1fr; }
  .devices { flex-direction: column; align-items: center; }
  .footer__social-grid { flex-wrap: wrap; }
}
/* ==================== HAMBURGER MENU ==================== */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
  transform-origin: center;
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  background: rgba(5,6,7,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 16px;
  font-weight: 400;
  color: rgba(253,253,249,0.7);
  padding: 14px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
}
.nav__mobile a:hover, .nav__mobile a:active {
  color: var(--white);
  background: rgba(172,221,129,0.08);
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Hero logo */
  .hero__logo { width: 60%; right: 0; opacity: 0.2; overflow: hidden; }

  /* About section */
  .about__row--split { grid-template-columns: 1fr; gap: 24px; }
  .about__stack-grid { grid-template-columns: 1fr; gap: 32px; }
  .about__metrics { flex-direction: column; gap: 20px; }
  .about__big-title { font-size: 32px; letter-spacing: -1px; }
  .about__row-right { width: 100%; }
  .about__card-interactive { width: 100%; max-width: 100%; }

  /* Packs */
  .packs__inline { max-width: 100%; overflow: hidden; }
  .packs__grid { grid-template-columns: 1fr; max-width: 100%; }
  .pack { max-width: 100%; }

  /* Devices showcase */
  .devices { max-width: 100%; overflow: hidden; height: auto; min-height: 300px; }
  .device--laptop { max-width: 90%; }
  .device--tablet { display: none; }
  .device--phone { display: none; }
  .device__frame, .device__screen, .device__base { max-width: 100%; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav { width: calc(100% - 32px); padding: 0 16px; height: 52px; }
  .nav__wolf { height: 28px; }
  .nav__name { font-size: 16px; }
  .nav__sep, .nav__rotator { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__social-card { min-width: 120px; }
  .footer__social-grid { gap: 12px; }

  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); letter-spacing: -1px; }
  .hero__sub { font-size: 15px; margin-bottom: 32px; }
  .hero__logo { width: 70%; right: -5%; top: 8%; transform: none; opacity: 0.3; }
  .hero__tag { font-size: 10px; letter-spacing: 3px; margin-bottom: 20px; }
  .hero__ctas { flex-direction: column; gap: 12px; }
  .hero__ctas .btn { width: 100%; justify-content: center; text-align: center; }
  .hero__scroll { display: none; }

  section { padding: 60px 20px; }
  section h2 { font-size: clamp(28px, 7vw, 36px); margin-bottom: 24px; }
  .section-label { font-size: 10px; letter-spacing: 3px; margin-bottom: 20px; }

  .about__card { padding: 28px 20px; }
  .about__card p { font-size: 16px; line-height: 1.8; }
  .about__metrics { flex-direction: column; gap: 20px; }
  .about__row--split { gap: 24px; }
  .stack__item { font-size: 13px; }

  .services__tabs-nav { gap: 6px; }
  .services__tab-btn { padding: 8px 12px; font-size: 13px; }
  .services__panel { padding: 24px 20px; }
  .services__panel h3 { font-size: 24px; }
  .services__panel-lead { font-size: 15px; }
  .services__panel-detail { font-size: 14px; }
  .services__panel-features li { font-size: 14px; }

  .packs__grid, .packs__grid--2 { grid-template-columns: 1fr; }
  .pack { padding: 24px 20px; }

  .process__step { padding: 24px 20px; }
  .process__step h3 { font-size: 18px; }

  .devices { gap: 20px; }
  .device--laptop { width: 100%; max-width: 340px; }
  .device--tablet { width: 60%; max-width: 200px; }
  .device--phone { width: 35%; max-width: 120px; }

  .contact__grid { gap: 32px; }

  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Wolf watermark background — about through footer */
.wolf-bg {
  position: relative;
}
.wolf-bg > section,
.wolf-bg > footer {
  position: relative;
  z-index: 1;
}

/* Wolf watermark — fixed overlay, toggled by JS */
.wolf-watermark {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw;
  background: url("../public/images/wolf-watermark.png") center/contain no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s ease;
}
.wolf-watermark.visible {
  opacity: 0.12;
}

/* ==================== DEVICE SHOWCASE ==================== */
.devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin: 170px auto 80px; /* más espacio arriba entre secciones */
  height: 520px;
  max-width: 1100px;
  z-index: 10;
}

/* --- LAPTOP --- */
.device--laptop {
  position: relative;
  z-index: 10;
}
.device--laptop .device__frame {
  width: 680px;
  background: #1a1a1a;
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0;
  border: 2px solid #333;
  border-bottom: none;
}
.device--laptop .device__notch {
  width: 8px; height: 8px;
  background: #333;
  border-radius: 50%;
  margin: 4px auto 6px;
}
.device--laptop .device__screen {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 2px;
}
.device--laptop .device__screen {
  background: #0a0a0a;
}
.device--laptop .device__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
}
.device--laptop .device__base {
  width: 760px;
  height: 16px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  border: 2px solid #333;
  border-top: 1px solid #444;
  position: relative;
  left: -40px;
}

/* --- TABLET --- */
.device--tablet {
  position: absolute;
  left: -120px;
  bottom: 0;
  z-index: 2;
}
.device--tablet .device__frame {
  width: 280px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 12px;
  border: 2px solid #333;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.device--tablet .device__screen {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}
.device--tablet .device__screen img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050607;
}

/* --- PHONE --- */
.device--phone {
  position: absolute;
  right: 60px;
  bottom: 0;
  z-index: 3;
}
.device--phone .device__frame {
  width: 180px;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 10px 8px;
  border: 2px solid #333;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.device--phone .device__notch-phone {
  width: 60px; height: 6px;
  background: #333;
  border-radius: 10px;
  margin: 0 auto 8px;
}
.device--phone .device__screen {
  width: 100%;
  aspect-ratio: 9/19;
  overflow: hidden;
  border-radius: 16px;
}
.device--phone .device__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==================== FOOTER LOGO ROTATOR ==================== */
.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer__wolf {
  width: 56px; height: auto;
  filter: drop-shadow(0 0 20px rgba(172,221,129,0.15));
}
.footer__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--light);
}
.footer__sep {
  font-size: 32px;
  font-weight: 200;
  color: rgba(253,253,249,0.2);
}
.footer__rotator {
  height: 40px;
  overflow: hidden;
  position: relative;
}
.footer__rotator-inner {
  display: flex;
  flex-direction: column;
  animation: footerRotate 12s ease-in-out infinite;
}
.footer__rotator-inner span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--accent);
  height: 40px;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}
@keyframes footerRotate {
  0%, 12%   { transform: translateY(0); }
  16%, 28%  { transform: translateY(-40px); }
  32%, 44%  { transform: translateY(-80px); }
  48%, 60%  { transform: translateY(-120px); }
  64%, 76%  { transform: translateY(-160px); }
  80%, 92%  { transform: translateY(-200px); }
  96%, 100% { transform: translateY(0); }
}

/* ==================== NAV LOGO ROTATOR ==================== */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__wolf {
  width: 36px; height: auto;
}
.nav__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--light);
  letter-spacing: -0.3px;
}
.nav__sep {
  font-size: 18px;
  font-weight: 200;
  color: rgba(253,253,249,0.2);
}
.nav__rotator {
  height: 24px;
  overflow: hidden;
  position: relative;
}
.nav__rotator-inner {
  display: flex;
  flex-direction: column;
  animation: navRotate 12s ease-in-out infinite;
}
.nav__rotator-inner span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--accent);
  height: 24px;
  display: flex;
  align-items: center;
  letter-spacing: -0.3px;
}
@keyframes navRotate {
  0%, 12%   { transform: translateY(0); }
  16%, 28%  { transform: translateY(-24px); }
  32%, 44%  { transform: translateY(-48px); }
  48%, 60%  { transform: translateY(-72px); }
  64%, 76%  { transform: translateY(-96px); }
  80%, 92%  { transform: translateY(-120px); }
  96%, 100% { transform: translateY(0); }
}

/* ==================== SECTION BACKGROUND IMAGES ==================== */
.about {
  position: relative;
}
/* bg-circuit-tree removed — 3D particles visible through About */

.openclaw {
  position: relative;
  margin-top: 400px;
  padding-top: 160px;
  padding-bottom: 400px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.openclaw::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: url("../public/images/bg-cube-crystal.jpg") center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.8), transparent 80%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8), transparent 80%);
}

.services {
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 45%; height: 80%;
  background: url("../public/images/bg-glass-layers.jpg") center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7), transparent 75%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7), transparent 75%);
}

.contact {
  position: relative;
}
/* bg-world-map removed — 3D particles visible through Contact */

/* System card features list */
.system-card__features {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}
.system-card__features li {
  font-size: 14px;
  color: var(--dim);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}
.system-card__features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
}
.system-card p {
  margin-bottom: 12px;
}

/* OpenClaw title with lobster icon */
.openclaw__title-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.openclaw__icon {
  width: 72px; height: 72px;
  filter: drop-shadow(0 0 20px rgba(172,221,129,0.3));
  margin-top: -16px;
  animation: lobsterHop 1.8s ease-in-out infinite;
}
@keyframes lobsterHop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  15% { transform: translateY(-12px) rotate(-3deg); }
  30% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-8px) rotate(2deg); }
  60% { transform: translateY(0) rotate(0deg); }
}

/* ==================== ABOUT BLOCKS ==================== */
/* ==================== ABOUT ROWS (A+C hybrid) ==================== */
.about__row {
  max-width: 1400px;
  margin: 0 auto 120px;
  padding-bottom: 120px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.about__row:last-of-type { border-bottom: none; margin-bottom: 0; }

.about__tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(172,221,129,0.45);
  margin-bottom: 20px;
}

/* Row type: Split (title left, content right) */
.about__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about__big-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -2.5px;
}
/* Stack tecnológico */
.about__stack {
  margin-top: 100px; padding: 72px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.about__stack-title {
  font-family: var(--font-grotesk); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent); opacity: 0.5; text-align: center; margin-bottom: 56px;
}
.about__stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 64px; max-width: 1100px; margin: 0 auto;
}
.stack__label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 3px; color: rgba(253,253,249,0.3);
  margin-bottom: 28px; font-weight: 500;
}
.stack__items { display: flex; flex-direction: column; gap: 12px; }
.stack__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 12px; font-size: 15px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
  color: rgba(253,253,249,0.65); font-family: var(--font-grotesk);
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  font-weight: 400; letter-spacing: 0.2px;
}
.stack__item:hover {
  background: rgba(172,221,129,0.06); border-color: rgba(172,221,129,0.18);
  color: var(--white); transform: translateX(4px);
}
.stack__item svg {
  width: 22px; height: 22px; min-width: 22px;
  opacity: 0.45; transition: opacity 0.3s ease;
}
.stack__item:hover svg { opacity: 0.9; }
a.stack__item { text-decoration: none; color: inherit; }

.about__row-right p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--dim);
  margin-bottom: 20px;
}

/* Row type: Centered (statement + metrics) */
.about__row--centered {
  text-align: center;
}
.about__statement {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -1.5px;
  max-width: 860px;
  margin: 0 auto 80px;
}
.about__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
}
.about__metric { text-align: center; }
.about__metric-num {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
}
.about__metric-label {
  display: block;
  font-size: 16px;
  color: rgba(232,232,232,0.7);
  margin-top: 14px;
  letter-spacing: 0.5px;
}

/* Row type: Staggered (content left, big num right) */
.about__row--staggered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__row-content h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}
.about__row-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--dim);
  margin-bottom: 20px;
}
.about__row-num {
  text-align: right;
  padding-top: 20px;
}
.about__num-big {
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(172,221,129,0.15) 0%, rgba(172,221,129,0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about__num-label {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(172,221,129,0.35);
  margin-top: 12px;
}

/* Row type: Quote + columns */
.about__row--quote {}
.about__blockquote {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: rgba(232,232,232,0.8);
  border-left: 2px solid rgba(172,221,129,0.3);
  padding-left: 40px;
  margin-bottom: 80px;
  max-width: 800px;
}
.about__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about__col h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  color: #f0f0f0;
}
.about__col p {
  font-size: 19px;
  line-height: 1.95;
  color: rgba(240,240,240,0.9);
}

/* Interactive card (mouse tilt + glow) */
.about__card-interactive {
  padding: 48px 44px;
  border-radius: 20px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.about__card-interactive:hover {
  border-color: rgba(172,221,129,0.12);
  box-shadow: 0 0 60px rgba(172,221,129,0.04), inset 0 0 60px rgba(172,221,129,0.02);
}
.about__card-interactive::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(172,221,129,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about__card-interactive:hover::before {
  opacity: 1;
}
.about__card-interactive p {
  font-size: 19px;
  line-height: 1.95;
  color: rgba(240,240,240,0.9);
  margin-bottom: 20px;
}
.about__card-interactive p:last-child { margin-bottom: 0; }

/* OpenClaw brand inline */
.openclaw-brand {
  color: #FF4500;
  font-weight: 600;
  display: inline-block;
  cursor: default;
  transition: all 0.3s ease;
}
.openclaw-brand:hover {
  text-shadow: 0 0 20px rgba(255,69,0,0.5), 0 0 40px rgba(255,69,0,0.2);
  transform: scale(1.05);
}

/* Wide centered card */
.about__card-interactive--wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 52px;
}

/* Mini cards for columns */
.about__col.about__card-interactive {
  padding: 36px 32px;
}

/* ==================== SERVICES ==================== */
.services {
  position: relative;
  padding: 250px 40px 300px;
  overflow: hidden;
  margin-top: 120px;
}
.services__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.services > *:not(.services__canvas) {
  position: relative;
  z-index: 1;
}
.services__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -2px;
  text-align: center;
  margin-bottom: 80px;
}
/* Toggle buttons */
.services__toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 80px;
}
.services__toggle-btn {
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(232,232,232,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.services__toggle-btn:first-child {
  border-radius: 12px 0 0 12px;
}
.services__toggle-btn:last-child {
  border-radius: 0 12px 12px 0;
  border-left: none;
}
.services__toggle-btn--active {
  background: rgba(172,221,129,0.1);
  border-color: rgba(172,221,129,0.25);
  color: var(--accent);
}
.services__toggle-btn:hover:not(.services__toggle-btn--active) {
  background: rgba(255,255,255,0.05);
  color: rgba(232,232,232,0.8);
}

/* Services tabs (lateral) */
.services__tabs {
  display: none;
  max-width: 100%;
  margin: 0 auto;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.services__tabs--active { display: grid; }
#services-packs.services__tabs--active { display: block; }

.services__tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.services__tab-btn {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  font-family: var(--font-display);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  border-radius: 12px 0 0 12px;
}
.tab-num {
  font-size: 13px;
  font-weight: 500;
  color: rgba(172,221,129,0.25);
  letter-spacing: 1px;
  min-width: 24px;
  transition: color 0.3s ease;
}
.tab-name {
  font-size: 20px;
  font-weight: 400;
  color: rgba(232,232,232,0.55);
  transition: all 0.3s ease;
}
.services__tab-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: height 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.services__tab-btn--active {
  background: rgba(172,221,129,0.04);
}
.services__tab-btn--active::after {
  height: 50%;
}
.services__tab-btn--active .tab-num {
  color: var(--accent);
}
.services__tab-btn--active .tab-name {
  color: #ffffff;
  font-weight: 600;
}
.services__tab-btn:hover:not(.services__tab-btn--active) {
  background: rgba(255,255,255,0.02);
}
.services__tab-btn:hover:not(.services__tab-btn--active) .tab-name {
  color: rgba(232,232,232,0.8);
}

.services__tabs-content {
  min-height: 520px;
}
.services__panel {
  display: none;
  animation: panelFadeIn 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.services__panel--active { display: block; }

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Panel card — glassmorphism */
.panel__card {
  padding: 36px 40px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}
.panel__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(172,221,129,0.05));
}
.panel__card h4 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: #ffffff;
}
.panel__lead {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245,245,245,0.88);
  margin-bottom: 24px;
}
.panel__features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin-bottom: 24px;
}
.panel__features--single {
  grid-template-columns: 1fr;
  gap: 12px;
}
.pack__audience {
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
  margin-top: 12px;
}

/* Servicios: layout horizontal */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
}
.svc-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.svc-row:hover {
  border-color: rgba(172,221,129,0.2);
}
.svc-row--featured {
  border-color: var(--accent);
  background: rgba(172,221,129,0.03);
}
.svc-num {
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  min-width: 70px;
  letter-spacing: -2px;
}
.svc-content {
  flex: 1;
}
.svc-content h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--white);
}
.svc-audience {
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 12px;
}
.svc-content p {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 16px;
}
.svc-content ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.svc-content ul li {
  font-size: 14px;
  color: rgba(245,245,245,0.7);
  padding-left: 16px;
  position: relative;
}
.svc-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.svc-badge {
  font-size: 12px;
  background: var(--accent);
  color: var(--black);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 12px;
  font-style: normal;
  font-weight: 600;
  vertical-align: middle;
}
.svc-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.panel__features li {
  font-size: 15px;
  color: rgba(245,245,245,0.78);
  padding-left: 24px;
  position: relative;
  line-height: 1.7;
}
.panel__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.panel__detail {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(240,240,240,0.72);
  margin-bottom: 28px;
}
.panel__card .btn {
  transition: all 0.3s ease;
}
.panel__card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(172,221,129,0.15);
}
.about__packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pack {
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}
.pack:hover {
  border-color: rgba(172,221,129,0.12);
  transform: translateY(-4px);
}
.pack--featured {
  border-color: rgba(172,221,129,0.15);
  background: rgba(172,221,129,0.03);
}
.pack__header {
  margin-bottom: 20px;
}
.pack__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  margin-bottom: 16px;
}
.pack__badge--accent {
  color: var(--bg);
  border-color: transparent;
  background: var(--accent);
}
.pack__header h4 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.pack__desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 24px;
}
.pack__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pack__features li {
  font-size: 14px;
  color: var(--light);
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pack__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
}
.pack__ideal {
  font-size: 13px;
  color: var(--dim);
  font-style: italic;
  margin-bottom: 24px;
  opacity: 0.7;
}
.pack__cta {
  align-self: flex-start;
}

/* === MOBILE OVERRIDE (must be last to win specificity) === */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }

  /* Hero */
  .hero__logo { width: 50% !important; right: 0 !important; opacity: 0.15 !important; overflow: hidden; }

  /* About */
  .about__row--split { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about__row-right { width: 100% !important; max-width: 100% !important; }
  .about__card-interactive { width: 100% !important; max-width: 100% !important; }
  .about__stack-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about__metrics { display: none !important; }
  .about__row:has(.about__metrics) { display: none !important; }
  .about__big-title { font-size: 28px !important; letter-spacing: -1px !important; }

  /* Stack */
  .stack__group { width: 100% !important; max-width: 100% !important; }
  .stack__items { flex-wrap: wrap !important; }

  /* Packs */
  .packs__inline { max-width: 100% !important; overflow-x: hidden; overflow-y: visible; }
  .packs__inline-title { font-size: 24px !important; }
  .packs__grid { grid-template-columns: 1fr !important; }
  .pack { max-width: 100% !important; }

  /* Devices */
  .devices { overflow: hidden !important; height: auto !important; min-height: 200px; }
  .device--tablet, .device--phone { display: none !important; }
  .device--laptop { width: 92% !important; max-width: 100% !important; margin: 0 auto !important; }
  .device--laptop .device__frame { width: 100% !important; }
  .device--laptop .device__base {
    width: 100% !important;
    left: 0 !important; /* remove desktop offset that causes horizontal cut */
  }

  /* Services (mobile re-layout) */
  .services__tabs-nav { display: none !important; }
  .services__tabs { display: none !important; }
  .services__tabs--active { display: none !important; }

  .services__moblist { margin-top: 18px; display: none; }
  .services__moblist.services__moblist--active { display: block; }
  .services__moblist .mob-accordion { margin-bottom: 14px; }
  .services__moblist .mob-accordion__trigger { padding: 16px 18px; font-size: 16px; }
  .services__moblist .mob-accordion__body-inner { padding: 0; }

  /* keep panel card typography consistent when moved */
  .services__moblist .panel__card { max-width: 100% !important; }

  /* OpenClaw (mobile): better spacing + readability */
  .openclaw { padding-left: 16px !important; padding-right: 16px !important; }
  .openclaw__title-row { gap: 14px !important; flex-wrap: wrap; }
  .openclaw__title { font-size: 34px !important; line-height: 1.1 !important; }
  .openclaw__intro { font-size: 15px !important; line-height: 1.7 !important; margin-bottom: 14px !important; }

  /* OpenClaw systems */
  .openclaw__systems { grid-template-columns: 1fr !important; margin-top: 18px !important; }

  /* ═══ MOBILE ACCORDION ═══ */
  .mob-accordion {
    border: 1px solid rgba(172,221,129,.14);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(5,6,7,.68);
  }
  .mob-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 18px;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-accordion__trigger::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #ACDD81;
    transition: transform .3s ease;
    flex-shrink: 0;
    margin-left: 12px;
  }
  .mob-accordion--open .mob-accordion__trigger::after {
    content: '−';
  }
  .mob-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .mob-accordion--open .mob-accordion__body {
    max-height: 6000px; /* avoid content clipping on long cards */
  }
  .mob-accordion__body-inner {
    padding: 0 20px 20px;
  }

  /* Hide original titles inside accordion body (already shown in trigger) */
  .mob-accordion__body h4:first-child,
  .mob-accordion__body .step__num,
  .mob-accordion__body .about__big-title,
  .mob-accordion__body .about__statement {
    display: none;
  }
  /* Left-align text in accordion body */
  .mob-accordion__body-inner,
  .mob-accordion__body-inner p,
  .mob-accordion__body-inner .about__card-interactive {
    text-align: left !important;
  }

  /* System card badge as subtitle in accordion */
  .mob-accordion .system-card__badge {
    display: inline-block;
    margin-right: 8px;
    font-size: 11px;
    opacity: .7;
  }

  /* Adjust nested spacing */
  .mob-accordion .panel__lead,
  .mob-accordion .panel__detail,
  .mob-accordion .step__lead,
  .mob-accordion .step__detail,
  .mob-accordion .system-card p {
    font-size: 14px;
    line-height: 1.6;
  }
  .mob-accordion .panel__features,
  .mob-accordion .system-card__features {
    font-size: 13px;
  }

  /* Fix: lists inside accordions must be 1-column on mobile to avoid clipping */
  .mob-accordion .panel__features {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .mob-accordion__body-inner { overflow: visible !important; }
  .mob-accordion .system-card__line { display: none; }
  .mob-accordion .system-card { border: none; padding: 0; margin: 0; background: none; }

  /* Process steps inside accordions: remove double-card look + use full width */
  .mob-accordion .step {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .mob-accordion .step::before { display: none !important; }
  .mob-accordion .step h4 { display: none !important; }

  /* Give the whole Process section more usable width on mobile */
  .process { padding-left: 16px !important; padding-right: 16px !important; }
  .process__steps { max-width: 100% !important; }
}

/* ── Language selector ── */
.nav__lang { display:flex; align-items:center; gap:6px; margin-left:16px; }
.nav__lang-link { color:rgba(245,245,245,0.5); font-size:13px; font-weight:500; text-decoration:none; transition:color 0.3s; }
.nav__lang-link:hover, .nav__lang-link--active { color:#ACDD81; }
.nav__lang-sep { color:rgba(245,245,245,0.3); font-size:13px; }
