:root {
  --red: #ee232d;
  --red-dark: #c9141d;
  --ink: #121316;
  --muted: #626770;
  --paper: #fbfbf8;
  --warm: #f1efe9;
  --line: #ddddd7;
  --white: #fff;
  --shadow: 0 30px 80px rgba(22, 24, 29, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 118px; }

.site-header { min-height: 78px; padding: 13px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 40px; color: white; background: #121316; position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 17px; margin-right: auto; }
.brand img { width: 156px; height: 28px; }
.brand span { padding-left: 17px; border-left: 1px solid #4a4b50; color: #d5d5d3; font-size: 13px; letter-spacing: .02em; }
nav { display: flex; gap: 28px; font-size: 14px; color: #dedede; }
nav a { transition: color .2s; }
nav a:hover { color: white; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 9px; padding: 0 22px; font-weight: 760; font-size: 14px; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-header { min-height: 42px; color: white; background: var(--red); }
.button-primary { min-height: 56px; color: white; background: var(--red); box-shadow: 0 14px 32px rgba(238, 35, 45, .23); }
.button-primary:hover { background: var(--red-dark); }
.button-primary span { font-size: 20px; }
.button-secondary { min-height: 56px; border: 1px solid #cfcfc9; background: rgba(255,255,255,.65); }
.button-outline { width: 100%; border: 1px solid #cfd0cc; background: transparent; }
.button-white { width: 100%; color: var(--ink); background: white; }

.hero { min-height: 710px; display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: 68px; padding-block: 76px 72px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: #5b5f66; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 830; }
.kicker span { width: 26px; height: 3px; background: var(--red); }
.kicker-light { color: #c8c8c4; }
h1, h2 { margin: 0; letter-spacing: -.057em; line-height: .98; }
h1 { max-width: 620px; font-size: clamp(54px, 5.8vw, 82px); font-weight: 850; }
h1 em { color: var(--red); font-style: normal; }
h2 { font-size: clamp(44px, 5vw, 68px); font-weight: 820; }
.hero-lead { max-width: 580px; margin: 28px 0 31px; color: #555b63; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--line); }
.hero-promises div { display: flex; flex-direction: column; gap: 5px; }
.hero-promises strong { font-size: 15px; }
.hero-promises span { color: #74777d; font-size: 11px; line-height: 1.4; }

.hero-visual { min-height: 540px; position: relative; }
.visual-glow { position: absolute; inset: 32px 30px 5px 55px; border-radius: 42% 58% 62% 38% / 48% 36% 64% 52%; background: linear-gradient(145deg, #ffe4e3, #ecebe7 70%); transform: rotate(-5deg); }
.browser-card { margin: 0; overflow: hidden; border: 7px solid white; background: white; border-radius: 16px; box-shadow: var(--shadow); position: absolute; }
.browser-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-card-main { width: 78%; height: 442px; top: 38px; left: 11%; z-index: 3; }
.browser-card-main img { height: calc(100% - 39px); }
.browser-bar { height: 39px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid #ececea; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d7d7d3; }
.browser-bar i:first-child { background: var(--red); }
.browser-bar span { margin-left: 7px; color: #8a8b8d; font-size: 9px; }
.browser-card-main figcaption { position: absolute; left: 16px; bottom: 15px; display: flex; flex-direction: column; padding: 10px 14px; color: #6b6b69; background: rgba(255,255,255,.92); border-radius: 8px; font-size: 10px; }
.browser-card-main figcaption strong { color: var(--ink); font-size: 14px; }
.browser-card-top { width: 38%; height: 190px; top: 0; right: 0; z-index: 4; transform: rotate(4deg); }
.browser-card-top img { object-position: 48% center; }
.browser-card-top figcaption { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; color: white; background: rgba(18,19,22,.9); border-radius: 7px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.browser-card-top figcaption span { color: #ff777d; font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.browser-card-top figcaption strong { font-size: 11px; }
.browser-card-bottom { width: 36%; height: 215px; left: 0; bottom: 0; z-index: 4; transform: rotate(-4deg); }
.turnaround-note { width: 122px; height: 122px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; right: 6px; bottom: 20px; z-index: 5; color: white; background: var(--red); border: 7px solid var(--paper); border-radius: 50%; text-align: center; box-shadow: 0 18px 40px rgba(131, 18, 24, .24); }
.turnaround-note b { font-size: 27px; letter-spacing: -.04em; }
.turnaround-note span { max-width: 80px; font-size: 9px; line-height: 1.25; }

.trust-strip { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.4vw, 55px); padding: 20px 24px; overflow: hidden; color: white; background: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.trust-strip i { font-style: normal; opacity: .55; }

.section-heading { margin-bottom: 54px; }
.heading-split { display: grid; grid-template-columns: 1.7fr .7fr; align-items: end; gap: 80px; }
.heading-split > p { margin: 0 0 5px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 65px rgba(22,24,29,.07); }
.service-item { min-height: 205px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 22px; padding: 31px; border-bottom: 1px solid var(--line); }
.service-item:nth-child(odd) { border-right: 1px solid var(--line); }
.service-item-wide { grid-column: 1 / -1; min-height: 180px; border-right: 0 !important; border-bottom: 0; }
.service-item-dark { color: white; background: var(--ink); }
.service-item-dark li { color: #c8c9cc; }
.icon-tile { width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 11px; font-size: 18px; }
.service-item h3 { max-width: 490px; margin: 2px 0 15px; font-size: 22px; letter-spacing: -.025em; }
.service-item ul { margin: 0; padding: 0; list-style: none; }
.service-item li { position: relative; margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.service-item li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.migration { color: white; background: var(--ink); overflow: hidden; position: relative; }
.migration::before { content: ""; width: 460px; height: 460px; position: absolute; top: -260px; right: -70px; border-radius: 50%; background: var(--red); filter: blur(1px); opacity: .9; }
.migration-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 90px; position: relative; z-index: 1; }
.migration-copy p:not(.kicker) { max-width: 600px; margin: 28px 0; color: #bfc0c4; font-size: 18px; line-height: 1.7; }
.text-link { display: inline-flex; gap: 15px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--red); font-weight: 780; }
.text-link span { color: var(--red); font-size: 20px; }
.migration-board { padding: 28px; color: var(--ink); background: #f6f5f1; border: 1px solid rgba(255,255,255,.45); border-radius: 22px; box-shadow: 0 35px 80px rgba(0,0,0,.28); }
.migration-card { display: flex; gap: 18px; align-items: center; padding: 20px; background: white; border: 1px solid #dddcd6; border-radius: 13px; box-shadow: 0 10px 24px rgba(18,19,22,.05); }
.migration-card b { width: 42px; min-width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 10px; }
.migration-card span { display: flex; flex-direction: column; gap: 5px; color: #6f7278; font-size: 13px; line-height: 1.45; }
.migration-card strong { color: var(--ink); font-size: 15px; }
.migration-card-accent { background: var(--red); border-color: var(--red); }
.migration-card-accent b { color: var(--red); background: white; }
.migration-card-accent span { color: #ffe5e6; }
.migration-arrow { height: 30px; display: grid; place-items: center; color: var(--red); font-weight: 900; }

.portfolio { overflow: hidden; }
.portfolio-heading { margin-bottom: 60px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 375px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, box-shadow .25s; }
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(22,24,29,.1); }
.case-featured { grid-column: 1 / -1; grid-template-columns: 1.65fr .75fr; min-height: 480px; color: white; background: var(--ink); border-color: var(--ink); }
.case-image { min-height: 280px; overflow: hidden; background: #e5e5e1; }
.case-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.case:hover .case-image img { transform: scale(1.025); }
.case-featured .case-image img { object-position: center; }
.case-porsche .case-image img { object-position: 50% center; }
.case-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.case-copy span { color: var(--red); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 850; }
.case-copy h3 { margin: 12px 0; font-size: clamp(25px, 2.4vw, 36px); letter-spacing: -.035em; }
.case-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.case-featured .case-copy p { color: #bdbfc3; font-size: 16px; }
.case-copy b { margin-top: 28px; color: var(--red); font-size: 13px; }
.case-featured .case-copy b { color: white; }
.case-stepchange .case-image { background: #17181c; }

.process { background: var(--warm); }
.process-heading { text-align: center; }
.process-heading .kicker { justify-content: center; }
.process-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; }
.process-flow article { min-height: 285px; padding: 31px; background: var(--paper); border: 1px solid #d8d6d0; border-radius: 16px; }
.process-flow article b { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 45px; color: white; background: var(--red); border-radius: 50%; font-size: 19px; }
.process-flow h3 { margin: 0 0 11px; font-size: 19px; }
.process-flow p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.process-flow > i { color: var(--red); font-size: 20px; font-style: normal; }
.brief-link { width: fit-content; display: flex; align-items: center; gap: 13px; margin: 38px auto 0; padding-bottom: 7px; border-bottom: 1px solid #aaa9a3; font-size: 14px; font-weight: 760; }
.brief-link span { color: var(--red); }

.pricing-heading { margin-bottom: 58px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { min-height: 650px; display: flex; flex-direction: column; padding: 34px; background: white; border: 1px solid var(--line); border-radius: 19px; position: relative; }
.price-card-featured { color: white; background: var(--ink); border-color: var(--ink); box-shadow: 0 28px 70px rgba(20,22,26,.18); transform: translateY(-10px); }
.price-card-custom { background: #f4f2ed; }
.recommended { position: absolute; top: 18px; right: 18px; padding: 7px 9px; color: white; background: var(--red); border-radius: 5px; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.price-top > span { color: var(--red); font-size: 12px; font-weight: 880; letter-spacing: .13em; }
.price-top p { min-height: 68px; margin: 18px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.price-card-featured .price-top p { color: #bdbfc3; }
.price { display: flex; align-items: end; gap: 8px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.price-card-featured .price { border-color: #383a40; }
.price strong { font-size: clamp(38px, 3.5vw, 50px); letter-spacing: -.055em; line-height: 1; }
.price span { padding-bottom: 5px; color: var(--muted); font-size: 11px; }
.price-card-featured .price span { color: #999ba0; }
.custom-price { padding: 5px 0 30px; border-bottom: 1px solid #d8d5ce; font-size: 36px; font-weight: 820; letter-spacing: -.045em; }
.price-card ul { margin: 27px 0 34px; padding: 0; list-style: none; }
.price-card li { position: relative; margin: 0 0 14px; padding-left: 25px; color: #4f535b; font-size: 13px; line-height: 1.45; }
.price-card-featured li { color: #d1d2d4; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.price-card .button { margin-top: auto; }
.extras { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 32px; padding: 23px; background: var(--warm); border-radius: 13px; }
.extras strong { margin-right: 10px; font-size: 13px; }
.extras span { padding: 8px 12px; background: white; border: 1px solid #dcdbd5; border-radius: 999px; font-size: 11px; }
.pricing-note { max-width: 900px; margin: 22px auto 0; color: #7c7f85; text-align: center; font-size: 11px; line-height: 1.55; }

.faq { background: white; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.faq-intro h2 { font-size: clamp(43px, 4.3vw, 60px); }
.faq-intro > p:last-child { max-width: 430px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 25px 45px 25px 0; cursor: pointer; list-style: none; font-weight: 760; font-size: 17px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; width: 27px; height: 27px; display: grid; place-items: center; position: absolute; right: 0; top: 21px; color: var(--red); border: 1px solid #d8d8d3; border-radius: 50%; font-size: 18px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -5px 0 26px; padding-right: 50px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact { color: white; background: var(--ink); position: relative; overflow: hidden; }
.contact::after { content: ""; width: 420px; height: 420px; position: absolute; left: -240px; bottom: -280px; background: var(--red); border-radius: 50%; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; position: relative; z-index: 1; }
.contact-copy > p:not(.kicker) { max-width: 460px; color: #bbbcc1; font-size: 17px; line-height: 1.65; }
.contact-direct { display: flex; flex-direction: column; gap: 17px; margin-top: 45px; }
.contact-direct a { display: flex; flex-direction: column; gap: 4px; }
.contact-direct small { color: #919399; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.contact-direct strong { font-size: 17px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 38px; color: var(--ink); background: white; border-radius: 20px; box-shadow: 0 35px 80px rgba(0,0,0,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 760; }
.contact-form label small { color: #898b90; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #d4d5d1; border-radius: 8px; padding: 13px 14px; color: var(--ink); background: #fbfbfa; outline: 0; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,35,45,.1); }
.contact-form textarea { resize: vertical; }
.submit-button { width: 100%; margin-top: 3px; }
.submit-button:disabled { transform: none; opacity: .65; cursor: wait; }
.form-honeypot { width: 1px; height: 1px; overflow: hidden; position: absolute; left: -10000px; }
.form-privacy { margin: -2px 0 0; color: #7e8186; text-align: center; font-size: 10px; line-height: 1.55; }
.form-privacy a { color: var(--ink); border-bottom: 1px solid #bbbcb8; }
.form-note { min-height: 16px; margin: -5px 0 0; color: #7e8186; text-align: center; font-size: 10px; line-height: 1.5; }
.form-note[data-state="success"] { color: #14723b; font-weight: 750; }
.form-note[data-state="error"] { color: var(--red-dark); font-weight: 750; }

footer { padding: 65px 0 25px; color: white; background: #08090a; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.15fr 1.25fr; gap: 42px; }
.footer-brand img { width: 175px; }
.footer-brand p { color: #85878c; font-size: 13px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid strong { margin-bottom: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { color: #a8aaae; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; color: #696b70; border-top: 1px solid #27282b; font-size: 10px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 65px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(650px, 100%); margin-inline: auto; }
  .heading-split { grid-template-columns: 1fr; gap: 25px; }
  .heading-split > p { max-width: 600px; }
  .migration-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .case-featured { grid-column: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .price-card { min-height: auto; }
  .price-card-featured { transform: none; }
  .process-flow { grid-template-columns: 1fr 1fr; }
  .process-flow > i { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 30px, 1180px); }
  .section { padding-block: 82px; }
  .site-header { min-height: 70px; padding-inline: 15px; }
  .brand img { width: 132px; }
  .brand span, .button-header { display: none; }
  .hero { min-height: auto; padding-block: 50px 45px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  h2 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-promises { gap: 10px; }
  .hero-visual { min-height: 415px; }
  .browser-card-main { height: 330px; width: 80%; left: 10%; }
  .browser-card-top { height: 155px; }
  .browser-card-bottom { height: 175px; }
  .turnaround-note { width: 97px; height: 97px; right: 0; bottom: 10px; }
  .trust-strip { justify-content: flex-start; white-space: nowrap; }
  .service-list { grid-template-columns: 1fr; }
  .service-item, .service-item-wide { grid-column: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-item:last-child { border-bottom: 0; }
  .migration-board { padding: 16px; }
  .migration-card { padding: 16px; }
  .case, .case-featured { grid-template-columns: 1fr; }
  .case-featured { min-height: auto; }
  .case-image { height: 280px; }
  .process-flow { grid-template-columns: 1fr; }
  .process-flow article { min-height: auto; }
  .process-flow article b { margin-bottom: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 25px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
