:root {
  --ink: #0b1018;
  --ink-soft: #111925;
  --surface: #182231;
  --surface-2: #202c3d;
  --line: rgba(247, 248, 250, 0.14);
  --line-strong: rgba(247, 248, 250, 0.28);
  --text: #f7f8fa;
  --text-muted: #aeb7c4;
  --brand-red: #d72638;
  --brand-red-soft: #ff4d5f;
  --white: #ffffff;
  --radius: 1.25rem;
  --max: 1280px;
  --header: 5.25rem;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection { background: var(--brand-red); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .7rem 1rem; background: var(--brand-red); color: var(--white); transform: translateY(-180%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.scrolled { background: rgba(11,16,24,.88); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 780; letter-spacing: -.035em; }
.brand-mark { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(247,248,250,.2); background: var(--white); border-radius: .58rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.24); }
.brand-mark img { width: 2.35rem; height: 2.35rem; object-fit: contain; }
.brand-name { font-size: 1rem; }
.brand-name span { color: var(--text-muted); font-weight: 520; margin-left: .25rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; color: var(--text-muted); font-size: .9rem; }
.site-nav a { transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.nav-cta { color: var(--white) !important; background: var(--brand-red); padding: .65rem 1.05rem; border-radius: 999px; font-weight: 720; }
.menu-button { display: none; border: 0; background: transparent; width: 2.75rem; height: 2.75rem; padding: .7rem; }
.menu-button > span:not(.sr-only) { display: block; height: 1px; background: var(--text); margin: .36rem 0; transition: transform .2s; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: calc(var(--header) + 3rem) clamp(1.25rem, 6vw, 6rem) 5rem;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; width: 42rem; height: 42rem; left: -24rem; top: 0; background: radial-gradient(circle, rgba(215,38,56,.18), transparent 68%); z-index: -1; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .27; background-image: linear-gradient(rgba(247,248,250,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(247,248,250,.07) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero-copy { max-width: 760px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .16em; font-weight: 720; font-size: .75rem; color: var(--brand-red-soft); margin: 0 0 1.6rem; }
.eyebrow { display: flex; align-items: center; gap: .75rem; }
.eyebrow span { width: 2.5rem; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.2rem, 7vw, 7.4rem); line-height: .92; letter-spacing: -.067em; font-weight: 650; margin-bottom: 1.9rem; max-width: 900px; }
h1 em, h2 em { color: var(--brand-red-soft); font-style: normal; }
.hero-lead { max-width: 650px; font-size: clamp(1.05rem, 1.45vw, 1.32rem); color: var(--text-muted); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.35rem; gap: .85rem; padding: .86rem 1.3rem; border: 1px solid transparent; border-radius: 999px; font-weight: 760; font-size: .94rem; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand-red); color: var(--white); }
.button-primary:hover { background: var(--brand-red-soft); }
.button-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: var(--text-muted); }
.hero-signals { display: flex; gap: 2.3rem; margin: 4rem 0 0; }
.hero-signals div { display: grid; grid-template-columns: auto auto; gap: .55rem; align-items: baseline; }
.hero-signals dt { color: var(--brand-red-soft); font: 650 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-signals dd { margin: 0; color: var(--text-muted); font-size: .83rem; text-transform: uppercase; letter-spacing: .11em; }

.hero-visual { position: relative; }
.visual-frame { aspect-ratio: 1 / .86; position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 1.6rem; background: linear-gradient(135deg, #182231, #0b1018); box-shadow: 0 2rem 7rem rgba(0,0,0,.38); }
.visual-frame::before { content: ""; position: absolute; inset: .75rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.1rem; z-index: 2; pointer-events: none; }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.08); }
.visual-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(11,16,24,.4), transparent 45%), linear-gradient(to top, rgba(11,16,24,.68), transparent 48%); }
.visual-status { position: absolute; z-index: 3; border: 1px solid rgba(247,248,250,.22); background: rgba(11,16,24,.76); backdrop-filter: blur(16px); border-radius: .8rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.2); }
.visual-status-top { top: 1.75rem; right: 1.75rem; display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; font-size: .76rem; color: var(--white); }
.status-pulse { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 .28rem rgba(215,38,56,.18); }
.visual-status-bottom { left: 1.75rem; bottom: 1.75rem; min-width: 13rem; padding: .9rem 1rem; }
.visual-status-bottom span { display: block; color: var(--brand-red-soft); font-size: .62rem; letter-spacing: .17em; margin-bottom: .2rem; }
.visual-status-bottom strong { font-size: .86rem; }
.hero-scroll { position: absolute; right: clamp(1.25rem, 4vw, 4.5rem); bottom: 1.5rem; display: flex; gap: .7rem; align-items: center; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.hero-scroll span { color: var(--brand-red-soft); }

.capabilities { overflow: hidden; border-block: 1px solid var(--line); background: #101722; }
.capability-track { width: max-content; min-width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2.5vw, 2.8rem); padding: 1.25rem 2rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; white-space: nowrap; }
.capability-track i { width: .34rem; height: .34rem; border-radius: 50%; background: var(--brand-red); }

.section-shell { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.problem { padding-block: clamp(6rem, 11vw, 10rem); }
.problem-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6rem; align-items: start; }
h2 { font-size: clamp(2.6rem, 5.3vw, 5.4rem); line-height: .98; letter-spacing: -.055em; font-weight: 610; margin-bottom: 2rem; }
.problem-copy { font-size: 1.14rem; color: var(--text); max-width: 540px; }
.problem-copy .muted { color: var(--text-muted); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 5rem; border: 1px solid var(--line); }
.pain-card { background: var(--ink); min-height: 19rem; padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.card-index, .solution-meta, .industry-row > span { font: 650 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand-red-soft); }
.pain-card h3 { font-size: 1.45rem; letter-spacing: -.025em; margin: auto 0 .8rem; }
.pain-card p { color: var(--text-muted); margin-bottom: 0; }

.solutions { padding-block: 2rem clamp(7rem, 12vw, 11rem); }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 5rem; align-items: end; margin-bottom: 4rem; }
.section-heading h2 { font-size: clamp(2.4rem, 4.6vw, 4.7rem); margin: 0; }
.section-heading > p { color: var(--text-muted); max-width: 480px; margin-bottom: .4rem; }
.solution-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution-card { min-height: 35rem; position: relative; padding: clamp(1.5rem, 3.5vw, 3rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; background: linear-gradient(155deg, rgba(255,255,255,.025), transparent 48%); overflow: hidden; transition: background .35s; }
.solution-card::after { content: ""; position: absolute; width: 18rem; height: 18rem; border-radius: 50%; right: -10rem; bottom: -12rem; background: radial-gradient(circle, rgba(215,38,56,.16), transparent 70%); transition: transform .5s var(--ease); }
.solution-card:hover { background-color: rgba(215,38,56,.045); }
.solution-card:hover::after { transform: translate(-2rem, -2rem) scale(1.2); }
.solution-meta { display: flex; justify-content: space-between; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.solution-meta span:first-child { color: var(--brand-red-soft); }
.solution-card > div:nth-child(2) { margin: auto 0 2rem; }
.solution-card h3 { font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: .96; letter-spacing: -.05em; font-weight: 360; margin-bottom: 1.5rem; }
.solution-card h3 strong { color: var(--brand-red-soft); font-weight: 660; }
.solution-card p { color: var(--text-muted); max-width: 520px; }
.solution-card ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.solution-card li { padding: .63rem 0; border-bottom: 1px solid var(--line); color: #d8dde5; font-size: .88rem; }
.solution-arrow { position: absolute; top: 2.8rem; right: 2.8rem; color: var(--brand-red-soft); font-size: 1.2rem; opacity: 0; transform: translate(-.5rem,.5rem); transition: opacity .2s, transform .2s; }
.solution-card:hover .solution-arrow { opacity: 1; transform: none; }
.solution-note { max-width: 680px; margin: 2rem 0 0 auto; color: var(--text-muted); font-size: .86rem; }

.industries { background: var(--brand-red); color: var(--white); }
.industries-inner { padding-block: clamp(6rem, 10vw, 9rem); display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(4rem, 8vw, 8rem); }
.industry-intro { position: sticky; top: 8rem; align-self: start; }
.industries .section-kicker { color: rgba(255,255,255,.76); }
.industry-intro h2 { font-size: clamp(2.7rem, 4.8vw, 5rem); }
.industry-intro > p:last-child { max-width: 430px; color: rgba(255,255,255,.82); }
.industry-stack { border-top: 1px solid rgba(255,255,255,.3); }
.industry-row { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.2rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.industry-row > span { color: rgba(255,255,255,.7); padding-top: .4rem; }
.industry-row h3 { margin-bottom: .25rem; font-size: 1.35rem; letter-spacing: -.02em; }
.industry-row p { color: rgba(255,255,255,.82); margin: 0; }
.industry-row strong { font: 650 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; border: 1px solid rgba(255,255,255,.34); padding: .55rem .7rem; border-radius: 999px; white-space: nowrap; }

.integration { padding-block: clamp(7rem, 12vw, 11rem); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.integration-copy p:not(.section-kicker) { color: var(--text-muted); max-width: 560px; font-size: 1.08rem; }
.text-link { display: inline-flex; gap: .75rem; color: var(--brand-red-soft); margin-top: 1.2rem; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }
.integration-map { position: relative; min-height: 31rem; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at center, rgba(215,38,56,.16), transparent 34%), linear-gradient(135deg, rgba(255,255,255,.025), transparent); overflow: hidden; }
.integration-map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(215,38,56,.2) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(circle, black, transparent 75%); }
.integration-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.integration-map path { fill: none; stroke: rgba(215,38,56,.65); stroke-width: 1.2; stroke-dasharray: 5 7; animation: flow 10s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -120; } }
.integration-source, .integration-core { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(11,16,24,.88); backdrop-filter: blur(12px); box-shadow: 0 .8rem 2.4rem rgba(0,0,0,.26); }
.integration-source { width: 6.6rem; min-height: 2.7rem; border-radius: 999px; color: #e3e7ed; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.source-a { left: 3rem; top: 3rem; }
.source-b { right: 2.5rem; top: 3rem; }
.source-c { left: 2.2rem; bottom: 3.2rem; }
.source-d { right: 2.2rem; bottom: 3.3rem; }
.source-e { left: 50%; top: 1rem; transform: translateX(-50%); }
.integration-core { width: 10rem; height: 10rem; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; }
.integration-logo { display: grid; place-items: center; width: 3rem; height: 3rem; overflow: hidden; border: 1px solid rgba(247,248,250,.24); border-radius: .65rem; background: var(--white); margin-bottom: -1.6rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.24); }
.integration-logo img { width: 2.7rem; height: 2.7rem; object-fit: contain; }
.integration-core strong { font-size: .86rem; line-height: 1.25; }

.method { background: #f3f5f7; color: var(--ink); }
.method .section-shell { padding-block: clamp(6rem, 10vw, 9rem); }
.method .section-kicker { color: var(--brand-red); }
.method .section-heading > p { color: #596272; }
.method-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(11,16,24,.2); }
.method-steps li { display: grid; grid-template-columns: 5rem .8fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(11,16,24,.2); }
.method-steps > li > span { font: 720 .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand-red); padding-top: .4rem; }
.method-steps h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.method-steps p { color: #596272; margin: 0; max-width: 670px; }

.contact { padding-block: clamp(7rem, 12vw, 11rem); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-copy { position: sticky; top: 8rem; }
.contact-copy h2 { font-size: clamp(2.6rem, 4.8vw, 4.8rem); }
.contact-copy > p:not(.section-kicker) { color: var(--text-muted); max-width: 540px; }
.contact-points { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.contact-points span { padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; color: #dce1e8; font-size: .75rem; }
.contact-form { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-form label { display: block; color: #e3e7ed; font-size: .84rem; margin-bottom: 1rem; }
.contact-form label span { color: var(--text-muted); }
.contact-form input, .contact-form textarea { width: 100%; margin-top: .45rem; border: 1px solid var(--line-strong); border-radius: .65rem; background: #101722; color: var(--text); outline: none; padding: .88rem .95rem; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-red-soft); box-shadow: 0 0 0 3px rgba(215,38,56,.14); }
.contact-form [aria-invalid="true"] { border-color: #ff8e72; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.form-footer p { max-width: 300px; margin: 0; color: var(--text-muted); font-size: .75rem; }
.form-feedback { min-height: 1.5rem; margin-top: 1rem; color: var(--brand-red-soft); font-size: .84rem; }

.site-footer { border-top: 1px solid var(--line); padding: 4rem clamp(1.25rem, 4vw, 4.5rem) 1.5rem; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.footer-main p { color: var(--text-muted); }
.footer-top { color: var(--brand-red-soft); font-size: .84rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.3rem; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { height: 4.6rem; }
  .menu-button { display: block; z-index: 2; }
  .site-nav { position: fixed; inset: 0 auto auto 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(11,16,24,.98); flex-direction: column; justify-content: center; gap: 1.5rem; font-size: 1.25rem; transform: translateY(-105%); transition: transform .35s var(--ease); }
  .site-nav.open { transform: none; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(.19rem) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-.19rem) rotate(-45deg); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 8.5rem; }
  .hero-copy { max-width: 800px; }
  .hero-visual { max-width: 720px; }
  .hero-scroll { display: none; }
  .problem-layout, .section-heading, .industries-inner, .integration, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .industry-intro, .contact-copy { position: static; }
  .solution-card { min-height: 31rem; }
}

@media (max-width: 680px) {
  :root { --radius: 1rem; }
  .brand-name span { display: none; }
  .hero { padding-inline: 1.25rem; padding-bottom: 4rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-signals { gap: 1.25rem; flex-wrap: wrap; }
  .hero-signals div { grid-template-columns: 1fr; gap: .25rem; }
  .visual-frame { aspect-ratio: 1 / 1; }
  .visual-status-top { top: 1.2rem; right: 1.2rem; }
  .visual-status-bottom { left: 1.2rem; bottom: 1.2rem; }
  .capability-track {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    padding: 1rem 1.25rem;
    white-space: normal;
    font-size: .64rem;
    letter-spacing: .1em;
  }
  .capability-track span {
    min-height: 2.8rem;
    display: grid;
    place-items: center;
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: rgba(255,255,255,.025);
    text-align: center;
    line-height: 1.35;
  }
  .capability-track span:last-of-type { grid-column: 1 / -1; }
  .capability-track i { display: none; }
  .pain-grid, .solution-list { grid-template-columns: 1fr; }
  .pain-card { min-height: 15rem; }
  .solution-card { min-height: 32rem; }
  .solution-arrow { display: none; }
  .industry-row { grid-template-columns: 2rem 1fr; }
  .industry-row strong { grid-column: 2; justify-self: start; white-space: normal; }
  .integration-map { min-height: 27rem; }
  .integration-source { width: 5.6rem; font-size: .62rem; }
  .source-a { left: 1rem; }
  .source-b { right: 1rem; }
  .source-c { left: .8rem; }
  .source-d { right: .8rem; }
  .integration-core { width: 8.3rem; height: 8.3rem; }
  .method-steps li { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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