:root {
  --ink: #24272b;
  --muted: #62666c;
  --red: #bd243d;
  --red-dark: #9d1730;
  --line: #e4e6e8;
  --soft: #f6f7f8;
  --container: 1480px;
  --body-size: 18px;
  --small-size: 16px;
  --title-size: clamp(42px, 4.2vw, 64px);
  --heading-size: 36px;
  --card-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-size: var(--body-size); line-height: 1.6; }
body.nav-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a, button { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: var(--title-size); line-height: 1.12; }
h2 { font-size: var(--heading-size); }
h3 { font-size: var(--card-size); }
p { color: var(--muted); }
em { color: var(--red); font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 128px)); margin-inline: auto; }
.section { padding: 88px 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* One family and a small, shared type scale across all pages. */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-bar { height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; width: 148px; height: 80px; flex-shrink: 0; }
.logo img { width: 148px; }
nav { display: flex; align-items: center; gap: 36px; }
nav > a { font-size: var(--small-size); white-space: nowrap; }
nav > a:hover, nav > a[aria-current] { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 13px 24px; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: #fff; font-size: var(--small-size); line-height: 1.5; white-space: nowrap; transition: background .2s; }
.btn:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.btn > span { font-size: 20px; }
.btn-small { min-height: 48px; }
.nav-toggle { display: none; }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; min-height: 640px; padding-block: 48px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > p { margin-top: 28px; max-width: 550px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }
.video-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: none; font-size: var(--small-size); }
.video-link:hover { color: var(--red); }
.play { display: grid; place-items: center; width: 36px; height: 36px; padding-left: 2px; border: 1px solid #d6d8da; border-radius: 50%; font-size: 12px; }
.hero-visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero-visual img { width: 100%; max-width: 580px; max-height: 550px; object-fit: contain; }
.section-heading { margin-bottom: 42px; }
.section-heading p { margin-top: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; border-top: 1px solid var(--line); }
.feature-card { padding-top: 32px; }
.feature-card > svg, .case-card > svg { display: block; width: 36px; height: 36px; margin-bottom: 28px; color: var(--red); }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { max-width: 340px; }
.solutions-section { background: var(--soft); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { min-width: 0; text-align: left; padding: 32px; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .2s; }
.case-card:hover { border-color: var(--red); }
.case-card p { margin-top: 10px; }
.case-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; font-size: var(--small-size); color: var(--red); }
.case-link > span { font-size: 20px; }
.cta { padding: 64px 0; border-bottom: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-footer { padding: 24px 0; }
.footer-row { display: flex; align-items: center; gap: 40px; }
.footer-row > .logo { width: 112px; height: 60px; }
.footer-row > p, .footer-row > div { font-size: 14px; }
.footer-row > div { margin-left: auto; display: flex; gap: 32px; }
.footer-row a:hover { color: var(--red); }

.page-intro { padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.page-intro p { max-width: 580px; margin-top: 28px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-grid > img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 4px; }
.about-grid h2 { max-width: 500px; }
.about-grid p { margin-top: 24px; max-width: 500px; }
.capability-list { list-style: none; padding: 0; margin: 30px 0; }
.capability-list li { border-bottom: 1px solid var(--line); padding: 14px 0; font-size: var(--small-size); }
.capability-list li:first-child { border-top: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding: 6px 0; border: 0; background: none; color: var(--red); font-size: var(--small-size); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 96px; }
.contact-copy { padding-top: 10px; }
.contact-copy > p { margin-top: 28px; max-width: 480px; }
.contact-panel { padding: 36px; border: 1px solid var(--line); border-radius: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: var(--small-size); }
label > span { color: var(--red); }
label > .optional { color: var(--muted); }
input, textarea, select { display: block; width: 100%; margin: 10px 0 24px; padding: 12px; min-height: 50px; border: 1px solid #d6d8da; border-radius: 4px; background: #fff; color: var(--ink); font-size: var(--small-size); }
input::placeholder, textarea::placeholder { color: #7b7f85; }
textarea { resize: vertical; }
select { cursor: pointer; }
input:user-invalid, select:user-invalid { border-color: var(--red); }
.contact-submit { width: 100%; justify-content: space-between; }
.form-note { margin-top: 16px; font-size: 14px; }
.form-status { margin-top: 20px; padding: 16px; border: 1px solid #dce9e2; border-radius: 4px; background: #f3f8f4; color: #28664e; font-size: var(--small-size); }
.copy-message { margin-top: 12px; }
.error-page { min-height: 65vh; }
.error-code { margin-bottom: 24px; color: var(--red); }
.error-page p:not(.error-code) { margin-top: 28px; }
.error-page .btn { margin-top: 32px; }

dialog { width: min(1000px, calc(100% - 40px)); max-height: 90vh; padding: 24px; overflow: auto; border: 0; border-radius: 6px; box-shadow: 0 30px 100px #0005; }
dialog::backdrop { background: #10131bba; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading h2 { font-size: var(--card-size); }
.dialog-heading button, .case-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; }
.video-frame { aspect-ratio: 16/9; background: #111; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-fallback, #case-dialog p { margin-top: 16px; font-size: 14px; }
.video-fallback a { color: var(--red); text-decoration: underline; }
.case-close { margin: 0 0 20px auto; }
#case-dialog img { width: 100%; max-height: 65vh; object-fit: contain; }

@media (max-width: 1200px) {
  .container { width: calc(100% - 80px); }
  .hero-grid { gap: 32px; min-height: 580px; }
  .hero-copy h1 { font-size: 48px; }
  .desktop-break { display: none; }
  .feature-grid { gap: 36px; }
  .about-grid, .contact-grid { gap: 56px; }
  nav { gap: 28px; }
  .case-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 800px) {
  :root { --body-size: 17px; --heading-size: 32px; --card-size: 23px; }
  .container { width: calc(100% - 48px); }
  .section { padding: 64px 0; }
  .header-bar { height: 76px; }
  .logo { width: 128px; height: 68px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); }
  nav { display: none; position: absolute; top: 76px; left: 0; right: 0; max-height: calc(100dvh - 76px); padding: 24px; overflow: auto; border-bottom: 1px solid var(--line); background: #fff; }
  nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  nav > a { padding: 14px 0; }
  nav > .btn { margin-top: 16px; padding: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 56px 32px; }
  .hero-copy h1 { font-size: var(--title-size); }
  .hero-copy > p { max-width: 520px; }
  .hero-visual img { max-height: 410px; }
  .section-heading { margin-bottom: 32px; }
  .feature-grid { gap: 28px; }
  .feature-card > svg, .case-card > svg { margin-bottom: 24px; }
  .case-grid { gap: 16px; }
  .case-card { padding: 24px 20px; }
  .case-link { margin-top: 28px; gap: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid > img { max-height: 420px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-panel { max-width: 680px; width: 100%; }
  .contact-copy { padding-top: 0; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-row { flex-wrap: wrap; gap: 20px 32px; }
}
@media (max-width: 600px) {
  :root { --title-size: 42px; --heading-size: 30px; --card-size: 23px; }
  .container { width: calc(100% - 40px); }
  .section { padding: 52px 0; }
  .hero-grid { padding-block: 44px 24px; gap: 16px; }
  .hero-copy > p { margin-top: 24px; }
  .hero-actions { gap: 20px; margin-top: 28px; }
  .hero-actions > .btn { gap: 16px; padding-inline: 18px; }
  .hero-visual img { max-height: 350px; }
  .feature-grid, .case-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 0; }
  .feature-card { display: grid; grid-template-columns: 36px 1fr; gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .feature-card > svg { grid-row: 1/3; margin: 0; width: 32px; height: 32px; }
  .feature-card h3 { margin: 0; }
  .feature-card p { grid-column: 2; max-width: none; }
  .case-grid { gap: 16px; }
  .case-card { display: grid; grid-template-columns: 32px 1fr; column-gap: 20px; padding: 24px; }
  .case-card > svg { grid-row: 1/3; width: 32px; height: 32px; margin: 0; }
  .case-card p { grid-column: 2; margin-top: 6px; }
  .case-link { grid-column: 2; margin-top: 20px; }
  .cta { padding: 44px 0; }
  .cta-inner { align-items: start; flex-direction: column; gap: 24px; }
  .footer-row > .logo { width: 104px; height: 56px; }
  .footer-row > div { width: 100%; margin: 0; justify-content: space-between; }
  .footer-row > p { margin-left: auto; }
  .contact-panel { padding: 24px 20px; }
  .contact-copy > p { margin-top: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .page-intro p { margin-top: 24px; }
  .about-grid { gap: 32px; }
  .about-grid > img { aspect-ratio: 1.2; }
  dialog { width: calc(100% - 24px); padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .hero-actions { display: none; }
  .container { width: 100%; }
  .section { padding: 30px 0; }
  .hero-grid { min-height: 0; }
}

/* Restore the original site's movement without changing the shared type scale. */
.hero { background: linear-gradient(115deg, #fff 45%, #fffaf7); }
.hero-visual { position: relative; isolation: isolate; }
.hero-screen { position: relative; z-index: 1; animation: screen-float 8s ease-in-out infinite; }
.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-visual .shape { position: absolute; max-height: none; object-fit: contain; }
.hero-visual .shape-ring { width: 86%; max-width: none; right: -5%; top: 8%; opacity: .55; animation: shape-turn 50s linear infinite; }
.hero-visual .shape-mint { width: 26%; left: 0; top: 6%; opacity: .8; animation: shape-turn 30s linear infinite reverse; }
.hero-visual .shape-peach { width: 28%; right: -3%; bottom: 1%; opacity: .85; animation: screen-float 11s ease-in-out infinite reverse; }
.orbit-dot { position: absolute; width: 12px; height: 12px; border: 2px solid #e7949a; border-radius: 50%; animation: dot-float 7s ease-in-out infinite; }
.dot-one { top: 18%; right: 20%; }
.dot-two { bottom: 16%; left: 8%; width: 8px; height: 8px; border-color: #75b8aa; animation-delay: -3s; }
.feature-grid { gap: 24px; border: 0; }
.feature-card { position: relative; display: block; padding: 32px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; isolation: isolate; background: #fff; transition: transform .35s, box-shadow .35s; }
.feature-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #c1244e, #c12331); clip-path: circle(0% at 0% 0%); transition: clip-path .55s ease; }
.feature-card > svg, .feature-card h3, .feature-card p { transition: color .35s; }
.feature-card > p { max-width: 390px; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px #96213a1a; }
.feature-card:hover::before { clip-path: circle(150% at 0% 0%); }
.feature-card:hover > svg, .feature-card:hover h3, .feature-card:hover p { color: #fff; }
.card-particles { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.card-particles i { position: absolute; display: block; width: 6px; height: 6px; border-radius: 50%; background: #ffffff55; animation: dot-float 5s ease-in-out infinite; }
.card-particles i:nth-child(1) { top: 20%; right: 15%; }
.card-particles i:nth-child(2) { top: 38%; right: 28%; animation-delay: -2s; width: 4px; height: 4px; }
.card-particles i:nth-child(3) { bottom: 15%; right: 8%; animation-delay: -3s; }
.feature-card:hover .card-particles { opacity: 1; }
.product-section { background: #f9fafb; overflow: hidden; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.product-visual { position: relative; display: grid; place-items: center; min-width: 0; isolation: isolate; }
.product-visual > img { position: relative; z-index: 1; width: min(370px, 85%); max-height: 520px; object-fit: contain; animation: screen-float 9s ease-in-out infinite; }
.product-orbit { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed #dab8be; animation: shape-turn 60s linear infinite; }
.product-orbit::before { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #c1244e; top: 14%; left: 13%; }
.product-copy > p { margin-top: 24px; max-width: 500px; }
.product-steps { margin: 32px 0; }
.product-steps > div { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.product-steps > div:first-child { border-top: 1px solid var(--line); }
.product-steps > div > span { color: var(--red); font-size: var(--small-size); padding-top: 3px; }
.product-steps h3 { margin-bottom: 8px; }
.case-card { transition: transform .3s, box-shadow .3s, border-color .3s; }
.case-card:hover, .case-card:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 36px #24272b0c; }
.case-link > span { transition: transform .3s; }
.case-card:hover .case-link > span { transform: translate(3px, -3px); }
.btn { transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #bd243d24; }
.play { transition: border-color .2s, transform .2s; }
.video-link:hover .play { border-color: var(--red); transform: scale(1.08); }
.motion-toggle { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: inherit; }
.motion-toggle:hover { color: var(--red); }
.is-revealed { animation: reveal-up .65s ease both; }
.feature-card:nth-child(3n + 2).is-revealed, .case-card:nth-child(2).is-revealed { animation-delay: .08s; }
.feature-card:nth-child(3n).is-revealed, .case-card:nth-child(3).is-revealed { animation-delay: .16s; }
@keyframes screen-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shape-turn { to { transform: rotate(360deg); } }
@keyframes dot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes reveal-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.animations-paused *, .animations-paused *::before, .animations-paused *::after { animation: none !important; transition: none !important; }
@media (max-width: 800px) {
  .product-grid { gap: 40px; }
  .feature-card { padding: 24px; }
  .product-steps > div { gap: 18px; }
  .footer-row > div { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .feature-grid { gap: 16px; }
  .feature-card { display: grid; grid-template-columns: 32px 1fr; padding: 24px; }
  .feature-card > svg { margin: 0; }
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-visual > img { max-height: 380px; }
  .product-orbit { width: 85%; max-width: 350px; }
  .product-steps { margin-block: 24px; }
  .hero-visual .shape-mint { left: 3%; }
  .hero-visual .shape-peach { right: 0; }
  .footer-row > div { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
