:root {
  --cream: #F6EEDF;
  --ink: #1E1024;
  --orange: #FF5C00;
  --peach: #FF9A5C;
  --yellow: #FFC42E;
  --muted: #6E6559;
  --body: #4A4038;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
}

::selection {
  background: var(--orange);
  color: var(--cream);
}

/* Language toggle */
.l-en {
  display: none;
}

[data-lang="en"] .l-es {
  display: none;
}

[data-lang="en"] .l-en {
  display: revert;
}

/* Animations */
@keyframes wipeUp {
  to {
    transform: translateY(-101%);
  }
}

@keyframes rise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(-2deg);
  }
}

/* Intro overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--orange);
  z-index: 300;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wipeUp 0.8s cubic-bezier(0.75, 0, 0.2, 1) 0.55s forwards;
}

.intro-text {
  color: var(--cream);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -0.03em;
}

.intro-text span {
  color: var(--ink);
}

/* Noise background */
.noise-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 250;
  opacity: 0.05;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%22140%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22140%22 height=%22140%22 filter=%22url(%23n)%22/%3E%3C/svg%3E');
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--orange);
  z-index: 290;
  width: 0%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--ink);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.nav-links a {
  padding-bottom: 2px;
}

.nav-links a[href="/"] {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--cream);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  transition: all 0.18s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--orange);
}

.btn-dark:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--orange);
}

.btn-outline {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-outline:hover {
  color: var(--orange);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.btn-large {
  font-size: 16px;
  padding: 18px 32px;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Layout */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 20px 0;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s backwards;
  flex-wrap: wrap;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
  margin-right: 8px;
  animation: blink 1.6s infinite;
}

.hero-title {
  margin: 34px 0 0;
  font-size: clamp(58px, 12.5vw, 196px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-transform: uppercase;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.03em;
}

.title-line span {
  display: inline-block;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.15s backwards;
}

.title-line:nth-child(2) span {
  animation-delay: 1.3s;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.title-line:nth-child(3) {
  padding-bottom: 0.08em;
}

.title-line:nth-child(3) span {
  animation-delay: 1.45s;
}

.title-line:nth-child(3) span:last-child {
  color: var(--orange);
}

.hero-badge {
  position: absolute;
  top: clamp(60px, 10vw, 140px);
  right: 0;
  width: clamp(110px, 13vw, 190px);
  height: clamp(110px, 13vw, 190px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s backwards;
}

.rotating-badge {
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
  display: block;
}

.badge-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  fill: var(--ink);
  font-weight: 700;
}

.hero-cta-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 44px 0 60px;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s backwards;
}

.hero-subtitle {
  margin: 0;
  max-width: 480px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  font-weight: 500;
}

.highlight {
  background: var(--yellow);
  padding: 0 6px;
  border: 1.5px solid var(--ink);
  display: inline-block;
}

/* Marquee */
.marquee-section {
  background: var(--orange);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  padding: 13px 0;
}

.marquee {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Services section */
.services-section {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 2px solid var(--ink);
  padding: 90px 20px 70px;
}

.services-section .wrap {
  max-width: 1280px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--peach);
}

.subtitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--peach);
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  border-top: 2px solid rgba(246, 238, 223, 0.25);
  padding: 36px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: baseline;
  transition: all 0.25s;
  cursor: default;
}

.service-item:hover {
  background: var(--orange);
  color: var(--ink);
  padding-left: 22px;
}

.service-item:last-child {
  border-bottom: 2px solid rgba(246, 238, 223, 0.25);
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  width: 40px;
  opacity: 0.6;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
  flex: 1 1 300px;
}

.service-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  flex: 1 1 320px;
  max-width: 440px;
  opacity: 0.85;
}

/* Stats section */
.stats-section {
  border-bottom: 2px solid var(--ink);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 240px;
  padding: 44px 28px;
  border-right: 2px solid var(--ink);
  border-top: 2px solid transparent;
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--muted);
}

/* Pricing section */
.pricing-section {
  padding: 90px 20px;
  border-bottom: 2px solid var(--ink);
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.card {
  display: block;
  border: 2px solid var(--ink);
  background: var(--cream);
  padding: 38px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: all 0.2s;
  color: var(--ink);
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 var(--ink);
}

.plan {
  flex: 1 1 380px;
  position: relative;
}

.plan.popular {
  background: var(--orange);
  box-shadow: 8px 8px 0 var(--ink);
}

.plan-badge {
  position: absolute;
  top: -16px;
  right: 22px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  transform: rotate(3deg);
  animation: wiggle 3s ease-in-out infinite;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}

.plan-freq {
  font-size: 11px;
  opacity: 0.7;
}

.plan-price {
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 22px 0 14px;
}

.plan p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
}

.plan.popular p {
  color: var(--ink);
}

.plan-cta {
  margin-top: 26px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.plan.popular .plan-cta {
  color: var(--ink);
}

/* Work section */
.work-section {
  padding: 90px 20px;
  border-bottom: 2px solid var(--ink);
  background: #EFE5D2;
}

.work-section h2 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  max-width: 900px;
}

.work-section h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--orange);
}

.see-more {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

.work-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 44px;
}

.work-card {
  flex: 1 1 300px;
  display: block;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
  transition: all 0.2s;
  color: var(--ink);
}

.work-card:hover {
  transform: translate(-3px, -3px) rotate(-0.5deg);
  box-shadow: 12px 12px 0 var(--orange);
}

.work-card-header {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

.work-card-header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.work-card-header span.active {
  background: var(--orange);
}

.work-url {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
}

.work-card-screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 12px,
    rgba(30, 16, 36, 0.06) 12px 13px
  );
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.work-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-top: 2px solid var(--ink);
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(30, 16, 36, 0.08);
  padding: 4px 8px;
  border: 1px solid var(--ink);
}

.badge.pro {
  background: var(--orange);
  color: var(--ink);
}

/* CTA section */
.cta-section {
  padding: 90px 20px;
  border-bottom: 2px solid var(--ink);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 20px;
}

.cta-section p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--body);
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 20px 20px;
  border-top: 2px solid var(--ink);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(246, 238, 223, 0.2);
}

.footer-brand {
  flex: 1 1 240px;
}

.footer-wordmark {
  font-weight: 800;
  font-size: 19px;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--peach);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--cream);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal a {
  color: var(--cream);
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-kicker {
    flex-direction: column;
    text-align: center;
  }

  .hero-badge {
    display: none;
  }

  .stats-grid {
    flex-direction: column;
  }

  .stat {
    border-right: none;
    border-bottom: 2px solid var(--ink);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .footer-content {
    flex-direction: column;
  }
}
