:root {
  --red: #ef4035;
  --red-dark: #bd241f;
  --ink: #101419;
  --graphite: #171d23;
  --steel: #5f6872;
  --muted: #eef1f3;
  --line: #dfe3e6;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(8, 12, 16, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-head p { margin: 0; color: var(--steel); font-size: 1.08rem; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(16,20,25,.08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { color: var(--red); font-size: 1.68rem; font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.brand-copy { padding-left: 12px; border-left: 1px solid var(--line); color: #454e57; font-size: .63rem; font-weight: 750; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a { position: relative; color: #343c44; font-size: .92rem; font-weight: 650; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--red); transition: right .22s ease; }
.main-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 10px 17px; color: var(--white) !important; background: var(--ink); border-radius: 5px; }
.language { display: inline-flex; align-items: center; gap: 5px; padding-left: 2px; }
.language a { padding: 7px 9px; border-radius: 4px; color: #69717a; font-size: .76rem; font-weight: 800; }
.language a[aria-current="page"] { color: var(--white); background: var(--red); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: white; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: var(--white);
  background: #0d1115 url("hero-automation.webp") center/cover no-repeat;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,15,.97) 0%, rgba(8,11,15,.91) 34%, rgba(8,11,15,.45) 61%, rgba(8,11,15,.2) 100%); }
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 5px; background: var(--red); }
.hero-inner { position: relative; z-index: 1; padding: 86px 0; }
.hero-copy { max-width: 690px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(255,255,255,.07); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(239,64,53,.15); }
.hero h1 { margin: 0 0 22px; max-width: 680px; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--red); }
.hero p { max-width: 630px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 5px; font-weight: 760; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: #ff4d42; }
.button-secondary { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.button-secondary:hover { border-color: white; background: rgba(255,255,255,.1); }

.metrics { position: relative; z-index: 2; margin-top: -60px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.metric { padding: 30px 34px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--red); font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.metric span { display: block; margin-top: 7px; color: var(--steel); font-size: .9rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 250px; padding: 30px; border: 1px solid var(--line); background: white; overflow: hidden; transition: transform .22s, border-color .22s, box-shadow .22s; }
.service-card::after { content: ""; position: absolute; right: -40px; bottom: -45px; width: 120px; height: 120px; border: 16px solid var(--muted); border-radius: 50%; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(239,64,53,.5); box-shadow: 0 20px 44px rgba(12,18,24,.09); }
.service-number { color: var(--red); font-size: .76rem; font-weight: 850; letter-spacing: .14em; }
.service-card h3 { margin: 20px 0 9px; font-size: 1.28rem; line-height: 1.25; }
.service-card p { position: relative; z-index: 1; margin: 0; color: var(--steel); font-size: .95rem; }

.experience { color: white; background: var(--graphite); }
.experience .section-head p { color: #aeb6bd; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tech-panel { padding: 36px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.tech-panel h3 { margin: 0 0 8px; font-size: 1.4rem; }
.tech-panel > p { margin: 0 0 26px; color: #aeb6bd; }
.tech-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-list span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; color: #f5f6f7; background: rgba(255,255,255,.05); font-size: .88rem; font-weight: 650; }

.case-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.case-visual { position: relative; min-height: 420px; padding: 44px; display: flex; flex-direction: column; justify-content: flex-end; color: white; background: linear-gradient(155deg, #20272e 0%, #0e1216 100%); overflow: hidden; }
.case-visual::before { content: "+40%"; position: absolute; top: 25px; right: 25px; color: rgba(255,255,255,.05); font-size: 8rem; font-weight: 900; line-height: 1; }
.case-visual strong { color: var(--red); font-size: clamp(4rem, 9vw, 7rem); line-height: .85; letter-spacing: -.07em; }
.case-visual span { margin-top: 20px; font-size: 1.04rem; font-weight: 700; }
.case-copy h2 { margin: 13px 0 20px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.case-copy p { color: var(--steel); }
.result-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 28px; }
.result-value { padding: 16px; border-left: 3px solid var(--red); background: var(--muted); }
.result-value strong { display: block; font-size: 1.65rem; line-height: 1.1; }
.result-value span { color: var(--steel); font-size: .84rem; }
.result-arrow { color: var(--red); font-size: 1.7rem; }

.clients { background: #f5f6f7; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logo-card { min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 24px; border: 1px solid #e1e4e6; background: white; }
.logo-card img { width: 100%; max-width: 145px; max-height: 54px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s, transform .2s; }
.logo-card:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.03); }
.logo-note { margin: 20px 0 0; color: #777f87; font-size: .78rem; text-align: center; }

.expansion { padding: 84px 0; color: white; background: var(--red); }
.expansion-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.expansion h2 { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.04; letter-spacing: -.05em; }
.expansion p { max-width: 750px; margin: 0; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.expansion-mark { min-width: 205px; padding: 26px; border: 1px solid rgba(255,255,255,.35); text-align: center; }
.expansion-mark strong { display: block; font-size: 1.28rem; }
.expansion-mark span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.about-grid h2 { margin: 13px 0 20px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.about-grid p { color: var(--steel); }
.values { display: grid; gap: 14px; }
.value { padding: 22px 24px; border-left: 4px solid var(--red); background: var(--muted); }
.value strong { display: block; margin-bottom: 3px; }
.value span { color: var(--steel); font-size: .91rem; }

.contact { padding: 95px 0; color: white; background: #0e1216; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.contact h2 { margin: 12px 0 18px; max-width: 650px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }
.contact p { color: #aeb6bd; }
.contact-card { padding: 32px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); }
.contact-label { color: #8e98a1; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-email { display: block; margin: 9px 0 24px; color: white; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 750; overflow-wrap: anywhere; }
.contact-meta { display: flex; gap: 24px; color: #aeb6bd; font-size: .88rem; }

.site-footer { padding: 24px 0; color: #86909a; background: #090c0f; border-top: 1px solid rgba(255,255,255,.07); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }

:focus-visible { outline: 3px solid rgba(239,64,53,.45); outline-offset: 3px; }

@media (max-width: 960px) {
  .menu-button { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 28px 20px 35px; flex-direction: column; align-items: flex-start; gap: 22px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
  .main-nav.is-open { display: flex; }
  .language { padding-top: 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid, .about-grid, .contact-grid { gap: 40px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 78px 0; }
  .hero { min-height: 690px; background-position: 63% center; }
  .hero::before { background: linear-gradient(90deg, rgba(8,11,15,.96) 0%, rgba(8,11,15,.83) 70%, rgba(8,11,15,.55) 100%); }
  .hero-inner { padding: 76px 0 125px; }
  .metrics { margin-top: -45px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { padding: 22px 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .services-grid, .experience-grid, .case-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .case-visual { min-height: 330px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .expansion-grid { grid-template-columns: 1fr; }
  .expansion-mark { min-width: 0; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 440px) {
  .brand-copy { display: none; }
  .hero h1 { font-size: 2.85rem; }
  .hero-actions .button { width: 100%; }
  .result-flow { grid-template-columns: 1fr; }
  .result-arrow { transform: rotate(90deg); text-align: center; }
  .logo-card { min-height: 100px; padding: 18px; }
  .contact-meta { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
