:root {
  --yellow: #f4d93e;
  --gold: #b9962f;
  --dark: #151515;
  --dark2: #1c1c1c;
  --offwhite: #f0ede8;
  --black: #000;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

button,
select {
  font: inherit;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

.container {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.narrow-container {
  width: min(100% - 48px, 896px);
}

.section {
  padding: 112px 0;
}

.section-black {
  background: #000;
}

.section-dark {
  background: var(--dark);
}

.section-dark2 {
  background: var(--dark2);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img,
.footer-brand img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.footer-email:hover {
  color: var(--yellow);
}

.header-cta,
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

.header-cta:hover,
.mobile-cta:hover,
.btn-primary:hover {
  background: rgba(244, 217, 62, 0.85);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--yellow);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:not(.mobile-cta) {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}

.floating-tags span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(185, 150, 47, 0.2);
  white-space: nowrap;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(244, 217, 62, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 217, 62, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  padding: 96px 0 128px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.eyebrow span {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--yellow);
}

.eyebrow p {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.muted {
  margin-bottom: 16px;
}

.eyebrow.muted span {
  background: var(--gold);
}

.eyebrow.muted p,
.eyebrow.centered p {
  color: var(--gold);
  font-size: 0.65rem;
}

.eyebrow.centered {
  justify-content: center;
  margin-bottom: 24px;
}

.hero h1,
.section-header h2,
.specialist-section h2,
.about-section h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--offwhite);
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 9rem);
}

.hero h1 span,
.specialist-section h2 span,
.about-section h2 span,
.contact-section h2 span {
  color: var(--yellow);
}

.hero h1 strong {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  text-stroke: 2px var(--yellow);
  font-weight: 900;
}

.hero-subtitle {
  max-width: 576px;
  margin: 32px 0 48px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  transition: background-color 0.2s ease;
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.text-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.stats-grid {
  max-width: 672px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid strong {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.trust-bar {
  background: var(--dark);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.trust-inner span {
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.trust-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-inner i {
  color: rgba(185, 150, 47, 0.4);
  font-style: normal;
}

.section-header {
  margin-bottom: 64px;
}

.split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-header h2,
.specialist-section h2,
.about-section h2,
.contact-section h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.section-description {
  max-width: 320px;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.service-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: #000;
  transition: background-color 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover {
  background: var(--dark);
}

.service-card-complement {
  background: var(--dark);
  border-left: 1px dashed rgba(185, 150, 47, 0.2);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-top span {
  color: rgba(185, 150, 47, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.service-card h3,
.case-content h3,
.step-card h3 {
  margin: 0 0 12px;
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.service-card:hover h3 {
  color: var(--yellow);
}

.service-card p,
.step-card p,
.case-content dd,
.specialist-text,
.bullet-list p,
.about-text p,
.testimonial-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.service-card a {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(244, 217, 62, 0.3);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: border-color 0.2s ease;
}

.service-card a:hover {
  border-color: var(--yellow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--dark2);
  overflow: hidden;
}

.case-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 18, 22, 0.45), transparent 70%);
  pointer-events: none;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.02);
  opacity: 0.9;
}

.case-image span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 8px;
}

.case-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.case-content dl,
.case-content dd {
  margin: 0;
}

.case-content dl {
  display: grid;
  gap: 16px;
}

.case-content dt {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 32px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
}

.specialist-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
}

.specialist-section h2,
.about-section h2 {
  margin-bottom: 32px;
}

.specialist-text {
  max-width: 680px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.bullet-list {
  display: grid;
  gap: 24px;
}

.bullet-list div {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.bullet-list span {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 1.125rem;
}

.bullet-list p {
  color: rgba(255, 255, 255, 0.7);
}

.code-panel-wrap {
  position: relative;
}

.code-panel-wrap::after {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(244, 217, 62, 0.2);
  z-index: 0;
}

.code-panel {
  position: relative;
  z-index: 1;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.terminal-header span:nth-child(1) {
  background: rgba(239, 68, 68, 0.6);
}
.terminal-header span:nth-child(2) {
  background: rgba(244, 217, 62, 0.6);
}
.terminal-header span:nth-child(3) {
  background: rgba(34, 197, 94, 0.6);
}

.terminal-header p {
  margin: 0 0 0 8px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.code-lines {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  line-height: 1.7;
}

.code-lines p {
  margin: 0;
}

.code-lines .gold {
  color: var(--gold);
}
.code-lines .yellow {
  color: var(--yellow);
}
.code-lines .success {
  color: #4ade80;
}
.code-lines .indent {
  padding-left: 16px;
}
.code-lines .spacer {
  margin-top: 16px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: #000;
  transition: background-color 0.3s ease;
}

.quote-mark {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.8;
}

.testimonial-card p {
  flex: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box {
  position: relative;
  width: min(384px, 100%);
  aspect-ratio: 1;
}

.logo-box-line,
.logo-box > div {
  position: absolute;
  inset: 0;
}

.logo-box-line.one {
  border: 1px solid rgba(244, 217, 62, 0.2);
  transform: translate(12px, 12px);
}

.logo-box-line.two {
  border: 1px solid rgba(185, 150, 47, 0.15);
  transform: translate(24px, 24px);
}

.logo-box > div {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.about-text {
  display: grid;
  gap: 20px;
}

.about-text p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  font-weight: 300;
}

.about-btn {
  margin-top: 40px;
  padding: 14px 28px;
  font-size: 1rem;
}

.faq-section .section-header {
  margin-bottom: 64px;
}

.accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--offwhite);
  text-align: left;
  cursor: pointer;
}

.accordion-item button span {
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.accordion-item button:hover span,
.accordion-item.is-open button span {
  color: var(--yellow);
}

.accordion-item button i {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: normal;
  transition: border-color 0.2s ease;
}

.accordion-item button:hover i,
.accordion-item.is-open button i {
  border-color: var(--yellow);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.accordion-item.is-open .accordion-content {
  max-height: 600px;
}

.accordion-content p {
  margin: 0;
  padding: 0 0 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1.7;
  font-weight: 300;
}

.contact-container {
  width: min(100% - 48px, 672px);
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin-bottom: 16px;
}

.contact-intro {
  margin: 0 0 56px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-field {
  text-align: left;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field select,
.form-field input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: 0;
  background: #000;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-field select {
  cursor: pointer;
}

.form-field select:focus,
.form-field input:focus {
  border-color: var(--yellow);
}

.submit-btn {
  width: 100%;
  margin-top: 12px;
  padding: 20px;
  font-size: 1.25rem;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.form-success {
  border: 1px solid rgba(244, 217, 62, 0.3);
  background: rgba(244, 217, 62, 0.05);
  padding: 48px;
  text-align: center;
  margin-top: 40px;
}

.form-success strong {
  display: block;
  margin-bottom: 16px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-success p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer h3 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.social-links a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.footer-email {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.footer-bottom p:last-child {
  color: rgba(255, 255, 255, 0.15);
}

.mobile-break {
  display: none;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .step-card::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .stats-grid,
  .portfolio-grid,
  .specialist-grid,
  .about-grid,
  .testimonials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow-container,
  .contact-container {
    width: min(100% - 32px, 1280px);
  }

  .section {
    padding: 80px 0;
  }

  .hero-content {
    padding: 72px 0 96px;
  }

  .floating-tags {
    opacity: 0.5;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .mobile-break {
    display: block;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .services-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .case-content,
  .testimonial-card,
  .code-panel {
    padding: 24px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .logo-box {
    width: min(288px, 100%);
  }

  .logo-box img {
    width: 128px;
    height: 128px;
  }
}

/* =========================================================
   Cases: preview da home + página dedicada
   ========================================================= */

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--yellow);
}

.btn-outline {
  padding: 14px 28px;
  border: 1px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-outline:hover {
  background: var(--yellow);
  color: #000;
}

.cases-preview-header .section-description {
  max-width: 480px;
}

.featured-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.featured-case-card {
  min-width: 0;
  background: #000;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.featured-case-card:hover {
  background: var(--dark2);
}

.featured-case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.featured-case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 65%);
  pointer-events: none;
}

.featured-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

.featured-case-card:hover .featured-case-media img {
  transform: scale(1.025);
  opacity: 0.95;
}

.case-play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 217, 62, 0.8);
  background: rgba(0, 0, 0, 0.74);
  color: var(--yellow);
  font-size: 0.8rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.featured-case-card:hover .case-play {
  background: var(--yellow);
  color: #000;
}

.featured-case-body {
  padding: 28px;
}

.case-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-case-body h3,
.case-library-body h2,
.case-modal-copy h2,
.cases-cta-inner h2 {
  margin: 0;
  color: var(--offwhite);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.featured-case-body h3 {
  font-size: 2rem;
}

.featured-case-body p {
  min-height: 72px;
  margin: 16px 0 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.7;
}

.case-link,
.case-library-action {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.cases-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cases-preview-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  line-height: 1.7;
}

.cases-hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.cases-hero-inner {
  position: relative;
  z-index: 1;
  padding: 136px 0 104px;
}

.cases-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cases-hero h1 span,
.cases-cta-inner h2 span {
  color: var(--yellow);
}

.cases-hero > .grid-overlay {
  opacity: 0.8;
}

.cases-hero-inner > p {
  max-width: 720px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
}

.cases-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.cases-hero-tags span,
.case-tech-list span {
  border: 1px solid rgba(185, 150, 47, 0.35);
  background: rgba(185, 150, 47, 0.06);
  color: rgba(244, 217, 62, 0.78);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 7px 10px;
}

.cases-library-header .section-description {
  max-width: 470px;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -24px 0 40px;
}

.case-filters button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.case-filters button:hover,
.case-filters button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #000;
}

.cases-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.case-library-card {
  min-width: 0;
  background: #000;
}

.case-library-card[hidden] {
  display: none;
}

.case-library-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border: 0;
  background: #050505;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.case-library-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 68%);
  pointer-events: none;
}

.case-library-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

.case-library-card:hover .case-library-media img {
  transform: scale(1.02);
  opacity: 0.96;
}

.case-library-play {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--offwhite);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-library-play i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-size: 0.7rem;
  font-style: normal;
}

.case-library-body {
  padding: 32px;
}

.case-library-body h2 {
  font-size: 2.35rem;
}

.case-library-body > p {
  min-height: 72px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.72;
}

.case-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-library-action {
  display: inline-block;
  margin-top: 28px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(244, 217, 62, 0.4);
  background: transparent;
  cursor: pointer;
}

.case-library-action:hover {
  border-color: var(--yellow);
}

.cases-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 80px;
}

.cases-cta-inner h2 {
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.cases-cta-copy p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.95rem;
  line-height: 1.8;
}

body.modal-open {
  overflow: hidden;
}

.case-modal[hidden] {
  display: none;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.case-modal.is-open {
  opacity: 1;
}

.case-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: default;
}

.case-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: auto;
  background: var(--dark);
  border: 1px solid rgba(244, 217, 62, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.18s ease;
}

.case-modal.is-open .case-modal-panel {
  transform: translateY(0);
}

.case-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.case-modal-close:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.case-modal-video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}

.case-modal-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.case-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 48px;
  padding: 40px;
}

.case-modal-copy h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.case-modal-copy > p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.92rem;
  line-height: 1.8;
}

.case-modal-details {
  display: grid;
  gap: 28px;
}

.case-modal-details h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-modal-details ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-modal-details li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

.case-modal-details li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--yellow);
}

@media (max-width: 1024px) {
  .featured-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-case-card:last-child {
    grid-column: 1 / -1;
  }

  .cases-cta-inner,
  .case-modal-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .featured-cases-grid,
  .cases-library-grid {
    grid-template-columns: 1fr;
  }

  .featured-case-card:last-child {
    grid-column: auto;
  }

  .featured-case-body p,
  .case-library-body > p {
    min-height: 0;
  }

  .cases-preview-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cases-hero-inner {
    padding: 112px 0 88px;
  }
}

@media (max-width: 640px) {
  .featured-case-body,
  .case-library-body {
    padding: 24px;
  }

  .cases-preview-footer .btn,
  .cases-cta-copy .btn {
    width: 100%;
  }

  .case-filters {
    margin-top: -16px;
  }

  .case-filters button {
    flex: 1 1 calc(50% - 8px);
  }

  .case-library-body h2 {
    font-size: 2rem;
  }

  .case-modal {
    align-items: start;
    padding: 16px;
  }

  .case-modal-content {
    padding: 28px 22px;
  }

  .case-modal-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-case-media img,
  .case-library-media img,
  .case-modal,
  .case-modal-panel {
    transition: none;
  }
}


/* =========================================================
   Language switcher (PT / EN)
   ========================================================= */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.language-switcher button {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher button:hover {
  color: var(--yellow);
}

.language-switcher button.is-active {
  background: var(--yellow);
  color: #000;
}

.language-switcher--mobile {
  display: none;
}

/* Long English copy can wrap without forcing cards or controls wider. */
.service-card,
.featured-case-body,
.case-library-body,
.step-card,
.testimonial-card,
.accordion-item,
.form-field,
.cases-cta-copy {
  min-width: 0;
}

@media (max-width: 1100px) and (min-width: 861px) {
  .header-inner {
    gap: 14px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .header-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 860px) {
  .header-actions {
    margin-left: auto;
    gap: 4px;
  }

  .language-switcher--desktop {
    display: none;
  }

  .language-switcher--mobile {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 2px;
  }
}
