/* ============================================
   FRANESMARK - MAIN STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import 'variables.css';

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button, a {
  cursor: pointer;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Section Base ── */
.section {
  position: relative;
  padding: var(--s-xl) 0;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-md);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--s-md);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 56ch;
}

/* ── Shader Canvas ── */
.shader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-shader);
  pointer-events: none;
}

.shader-fallback {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1401 50%, #0f0f0f 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gold);
  color: #0f0f0f;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 172, 83, 0.35);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-secondary:active,
.btn-ghost:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ── Gold Divider ── */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: var(--s-md) 0;
}

/* ============================================
   AI EXPERIENCE
   ============================================ */
.ai-experience {
  background:
    radial-gradient(circle at 72% 34%, rgba(212, 172, 83, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(15, 15, 15, 0), rgba(212, 172, 83, 0.025), rgba(15, 15, 15, 0));
}

.ai-experience-bg {
  position: absolute;
  inset: 8% 0 auto;
  height: 55%;
  background:
    radial-gradient(circle at 70% 50%, rgba(212, 172, 83, 0.13), transparent 34%),
    radial-gradient(circle at 42% 70%, rgba(212, 172, 83, 0.07), transparent 28%);
  filter: blur(10px);
  pointer-events: none;
}

.ai-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  min-height: 560px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    radial-gradient(circle at 78% 18%, rgba(212, 172, 83, 0.13), transparent 26%),
    rgba(15, 15, 15, 0.76);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ai-copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

.ai-copy .section-title {
  margin-bottom: var(--s-sm);
}

.ai-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--s-md) 0 var(--s-lg);
}

.ai-benefits span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(212, 172, 83, 0.22);
  border-radius: 999px;
  background: rgba(212, 172, 83, 0.06);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ai-visual {
  position: relative;
  z-index: 2;
  min-height: 430px;
  cursor: crosshair;
}

.ai-visual::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 2%;
  bottom: 4%;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 172, 83, 0.16), transparent 68%);
  filter: blur(22px);
}

.ai-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ai-robot-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ai-robot-head {
  position: relative;
  width: min(360px, 75%);
  aspect-ratio: 1.7;
  border: 16px solid #f7efe2;
  border-bottom-color: #d5ab62;
  border-radius: 34px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.ai-robot-head span {
  position: absolute;
  top: 47%;
  width: 16px;
  height: 12px;
  border-radius: 999px;
  background: #ffd57d;
  box-shadow: 0 0 22px rgba(255, 203, 104, 0.7);
}

.ai-robot-head span:first-child {
  left: 35%;
}

.ai-robot-head span:last-child {
  right: 35%;
}

.ai-robot-neck,
.ai-robot-body {
  display: none;
}

.ai-robot-static-body {
  display: none;
}

.ai-robot-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  padding: 8px 12px;
  border: 1px solid rgba(212, 172, 83, 0.24);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.48);
  color: var(--gold);
  font-size: 0.75rem;
  backdrop-filter: blur(10px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  transition: background var(--t-slow), border-color var(--t-slow);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.nav-logo-mark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
}

.nav-logo-mark span {
  color: var(--gold);
}

.nav-logo-sub {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  list-style: none;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.nav-btn {
  padding: 10px 24px;
  font-size: 0.8125rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 7px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 21px;
  height: 1.4px;
  background: var(--text);
  transition: transform var(--t-base), opacity var(--t-base), background-color var(--t-base);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-nav) - 1);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: clamp(44px, 9vh, 76px) var(--px) var(--s-lg);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-link {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.05;
  transition: color var(--t-base);
}

.nav-mobile-link:hover {
  color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 5;
}

.hero-inner {
  position: relative;
  z-index: var(--z-base);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--nav-h) var(--px) 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-lg);
  align-items: center;
  justify-items: center;
  min-height: 100svh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.55);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-md);
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: var(--s-md);
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-logo {
  width: min(560px, 82vw);
  height: auto;
  margin-bottom: var(--s-sm);
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.58));
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  color: var(--text);
  font-family: var(--font-heading);
  font-style: italic;
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: var(--s-lg);
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  opacity: 1;
  transform: none;
  animation: none;
  justify-content: center;
}

.hero-meta {
  display: flex;
  gap: var(--s-lg);
  margin-top: var(--s-xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--border);
  opacity: 1;
  transform: none;
  animation: none;
  justify-content: center;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-meta-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Hero right side visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.9s forwards;
}

.hero-visual-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--s-md);
}

.hero-card-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s ease infinite;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--s-sm);
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--s-lg);
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hero-card-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-item-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--gold);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-md);
  border-top: 1px solid var(--border);
}

.hero-card-rating {
  display: flex;
  gap: 3px;
}

.star {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.hero-card-tag {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Floating decorative elements */
.hero-float {
  position: absolute;
  border-radius: var(--r-md);
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-float-1 {
  top: 10%;
  right: -20px;
  animation: floatY 4s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 15%;
  left: -20px;
  animation: floatY 5s ease-in-out 1s infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--s-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: var(--z-base);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.hero-scroll-text {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--bg);
  padding: var(--s-2xl) 0;
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--s-xl);
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--gold-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.service-card-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-slow);
}

.service-card:hover .service-card-canvas {
  opacity: 1;
}

.service-card-inner {
  position: relative;
  z-index: var(--z-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(212, 172, 83, 0.08);
  border: 1px solid rgba(212, 172, 83, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-lg);
  transition: background var(--t-base), border-color var(--t-base);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.service-card:hover .service-icon {
  background: var(--gold-glow-md);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: var(--s-xs);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s-sm);
  line-height: 1.2;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--s-md);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  padding: 4px 12px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: var(--s-md);
  transition: gap var(--t-fast);
}

.service-link:hover {
  gap: 10px;
}

.service-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

/* ============================================
   WHY FRANESMARK SECTION
   ============================================ */
.why {
  background: var(--bg-2);
  padding: var(--s-2xl) 0;
  position: relative;
  overflow: hidden;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2xl);
  align-items: center;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-md);
}

.why-feature {
  padding: var(--s-md);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), transform var(--t-base);
}

.why-feature:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.why-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-sm);
}

.why-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.why-feature-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   TRUST / STATS SECTION
   ============================================ */
.trust {
  position: relative;
  padding: var(--s-2xl) 0;
  background: var(--bg);
  overflow: hidden;
}

.trust-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 172, 83, 0.04) 0%, transparent 70%);
}

.trust-inner {
  position: relative;
  z-index: var(--z-base);
}

.trust-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--s-xl);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-xl);
}

.trust-stat {
  padding: var(--s-lg);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background var(--t-base);
}

.trust-stat:hover {
  background: var(--bg-card-hover);
}

.trust-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Logos / Client row */
.trust-clients {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xl);
  flex-wrap: wrap;
}

.trust-client-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 150px));
  align-items: center;
  gap: 14px;
  justify-content: center;
  width: 100%;
  max-width: 980px;
}

.trust-logo {
  width: 100%;
  max-width: 150px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(212, 172, 83, 0.16);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base);
}

.trust-logo:hover {
  border-color: var(--border-gold);
  background: rgba(212, 172, 83, 0.055);
  transform: translateY(-3px);
}

.trust-logo img {
  max-width: min(118px, 82%);
  max-height: 42px;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(1) brightness(1.25);
  transition: opacity var(--t-base), filter var(--t-base), transform var(--t-base);
}

.trust-logo:hover img {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.03);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
  background: var(--bg-2);
  padding: var(--s-2xl) 0;
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--s-xl);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--border) 50%, var(--border) 100%);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: var(--s-md);
  position: relative;
  z-index: 2;
  transition: border-color var(--t-base), color var(--t-base), background-color var(--t-base), transform var(--t-base);
}

.process-step.active .process-step-num,
.process-step:hover .process-step-num {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
  box-shadow: var(--shadow-gold);
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   CASOS / PORTFOLIO SECTION
   ============================================ */
.casos {
  background: var(--bg);
  padding: var(--s-2xl) 0;
}

.casos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s-xl);
  gap: var(--s-md);
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

.caso-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.caso-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.caso-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--border-hover);
  position: relative;
  overflow: hidden;
}

.caso-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
}

.caso-card-body {
  padding: var(--s-md);
}

.caso-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.caso-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.25;
}

.caso-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s-md);
}

.caso-results {
  display: flex;
  gap: var(--s-md);
}

.caso-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caso-result-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.caso-result-lbl {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonios {
  background: var(--bg-2);
  padding: var(--s-2xl) 0;
}

.testimonios-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--s-xl);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

.testimonio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  transition: border-color var(--t-base), transform var(--t-base);
  cursor: default;
}

.testimonio-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.testimonio-stars {
  display: flex;
  gap: 4px;
}

.testimonio-quote {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding-top: var(--s-md);
  border-top: 1px solid var(--border);
}

.testimonio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.testimonio-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.testimonio-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  background: var(--bg);
  padding: var(--s-2xl) 0;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section .section-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-top: var(--s-lg);
}

.cta-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 172, 83, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--s-xl) 0 var(--s-lg);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-xl);
  padding-bottom: var(--s-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-lg);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-sm);
}

.footer-brand-name span { color: var(--gold); }

.footer-logo {
  width: min(220px, 100%);
  height: auto;
  margin-bottom: var(--s-sm);
}

.footer-logo-small {
  width: 150px;
  margin-bottom: 0;
}

.footer-brand-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 30ch;
  margin-bottom: var(--s-md);
}

.footer-social {
  display: flex;
  gap: var(--s-sm);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.footer-social-link:hover {
  background: var(--gold-glow);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  transition: stroke var(--t-fast);
}

.footer-social-link:hover svg {
  stroke: var(--gold);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--s-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-copy span { color: var(--gold); }

.footer-legal {
  display: flex;
  gap: var(--s-md);
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-dim);
  transition: color var(--t-fast);
}

.footer-legal a:hover {
  color: var(--text-muted);
}

/* ============================================
   REVEAL ANIMATIONS (JS-driven)
   ============================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-enter), transform var(--t-enter);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--s-md);
  left: var(--s-md);
  right: var(--s-md);
  max-width: 640px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-md);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  box-shadow: var(--shadow-card);
  transform: translateY(120%);
  transition: transform var(--t-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.back-to-top {
  position: fixed;
  right: var(--s-md);
  bottom: var(--s-md);
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm);
  background: rgba(15, 15, 15, 0.84);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), background-color var(--t-base), border-color var(--t-base);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0f0f0f;
}

.back-to-top:active {
  transform: scale(0.97);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   NAV LOGO IMAGE
   ============================================ */
.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.nav-logo-img-horizontal {
  height: 34px;
}

.nav-logo-text {
  flex-direction: column;
  gap: 1px;
}

/* ── Hero title single-line variant ── */
.hero-title:not(:has(em)) {
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: 0.04em;
}

/* ============================================
   TRUST CLIENT LINKS
   ============================================ */
.trust-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color var(--t-base), border-color var(--t-base), background-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.trust-logo-link:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-glow);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(212, 172, 83, 0.12);
}

/* ============================================
   NUESTROS PROYECTOS SECTION
   ============================================ */
.proyectos {
  background: var(--bg-2);
  padding: var(--s-2xl) 0;
}

.proyectos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-md);
  margin-bottom: var(--s-xl);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

.proyecto-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.proyecto-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.proyecto-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}

.proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
}

.proyecto-card:hover .proyecto-img img {
  transform: scale(1.04);
}

.proyecto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 172, 83, 0.08);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
}

.proyecto-card:hover .proyecto-overlay {
  opacity: 1;
}

.proyecto-overlay-text {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.proyecto-info {
  padding: var(--s-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.proyecto-type {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.proyecto-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.proyecto-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shader-canvas { display: none; }
  .shader-fallback { animation: none !important; }
}
