:root {
  --ink: #140e1a;
  --ink-2: #20142a;
  --paper: #f4f4ef;
  --white: #fff;
  --green: #ffbd2e;
  --green-deep: #714790;
  --line-dark: rgba(255,255,255,.15);
  --line-light: rgba(7,17,15,.16);
  --muted: #b9adc0;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: "DM Sans", sans-serif; font-size: 1rem; line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--green); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid var(--line-dark); }
.nav-wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 86px; height: 72px; object-fit: contain; filter: drop-shadow(0 5px 14px rgba(0,0,0,.22)); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: #d6dfdc; text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta { color: var(--ink); background: var(--green); padding: .8rem 1rem; font-weight: 700; }
.menu-toggle { display: none; }

.section-dark { background: radial-gradient(circle at 73% 20%, rgba(113,71,144,.34), transparent 32%), var(--ink); }
.hero { min-height: 100vh; padding: 170px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; min-height: 570px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: #c9d5d1; }
.eyebrow span { width: 28px; height: 1px; background: var(--green); }
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; line-height: 1.04; letter-spacing: -.055em; }
h1 { max-width: 700px; font-size: clamp(3.4rem, 6.1vw, 6.5rem); }
h1 em, h2 em { color: var(--green-deep); font-style: normal; }
.hero h1 em { color: var(--green); }
.hero-lead { max-width: 650px; color: #bdc9c5; font-size: 1.15rem; line-height: 1.7; margin: 2rem 0; }
.hero-actions { display: flex; align-items: center; gap: 1.7rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.3rem; padding: 1rem 1.25rem; text-decoration: none; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--green); }
.button-primary:hover { background: #89ffca; }
.text-link { color: #d6dfdc; text-decoration-color: #53635e; text-underline-offset: .35rem; }

.hero-visual { position: relative; min-height: 500px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #1d1325; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.hero-visual img { width: 100%; height: 500px; display: block; object-fit: cover; }
.hero-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(20,14,26,.82)); pointer-events: none; }
.visual-caption { position: absolute; z-index: 2; left: 1.25rem; bottom: 1.1rem; display: flex; align-items: center; gap: .55rem; color: #e8dff0; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.visual-caption span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.agent-map { position: relative; min-height: 500px; isolation: isolate; }
.map-glow { position: absolute; inset: 12% 14%; background: radial-gradient(circle, rgba(255,189,46,.12), transparent 67%); filter: blur(2px); }
.map-label { position: absolute; right: 0; top: 35px; color: #72827d; font: 600 .65rem/1 "Manrope", sans-serif; letter-spacing: .18em; }
.node { position: absolute; z-index: 2; width: 145px; padding: 1.05rem; background: rgba(8,24,19,.85); border: 1px solid #365249; backdrop-filter: blur(8px); }
.node small { display: block; color: #71847e; letter-spacing: .14em; font-size: .59rem; margin-bottom: .2rem; }
.node strong { font: 600 .95rem/1.2 "Manrope", sans-serif; }
.node-center { left: 43%; top: 42%; width: 115px; height: 115px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-color: var(--green); box-shadow: 0 0 50px rgba(255,189,46,.12); }
.node-center .pulse { position: absolute; inset: -10px; border: 1px solid rgba(103,245,187,.25); border-radius: 50%; animation: pulse 2.8s infinite; }
.node-input { left: 2%; top: 21%; }
.node-data { right: 0; top: 17%; }
.node-action { right: 2%; bottom: 12%; }
.connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.connections path { fill: none; stroke: #7e627f; stroke-width: 1.5; stroke-dasharray: 5 7; animation: dash 12s linear infinite; }
.map-status { position: absolute; bottom: 8%; left: 20%; display: flex; align-items: center; gap: .55rem; color: #91a19c; font-size: .75rem; }
.map-status span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.proof-strip { margin-top: 3rem; min-height: 130px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 200px 220px 1fr; align-items: center; gap: 2rem; }
.proof-strip div { display: flex; align-items: center; gap: .9rem; }
.proof-strip strong { font: 700 2.2rem/1 "Manrope", sans-serif; color: var(--green); }
.proof-strip span, .proof-strip p { color: #9aa9a4; font-size: .82rem; line-height: 1.4; }
.proof-strip p { text-align: right; }

.section-light { background: var(--paper); color: var(--ink); padding: 120px 0; }
.section-heading { max-width: 930px; margin-bottom: 4.5rem; }
.kicker { color: #53615d; margin: 0 0 1.2rem; }
.section-heading h2, .ai-copy h2, .contact-section h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.service-card { position: relative; min-height: 360px; padding: 2.1rem; background: var(--paper); display: flex; flex-direction: column; }
.service-card.featured { grid-row: span 2; min-height: 721px; justify-content: space-between; }
.service-number { color: #7b8884; font: 600 .75rem/1 "Manrope", sans-serif; }
.tag { width: fit-content; border: 1px solid #aab5b1; border-radius: 2rem; padding: .35rem .65rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin: auto 0 1.1rem; }
.service-card h3 { max-width: 520px; font-size: clamp(1.8rem, 3vw, 3.1rem); }
.service-card p:not(.tag) { max-width: 530px; color: #58635f; }
.accent-card { background: #eee4f5; }
.accent-card a { margin-top: 1rem; font-weight: 700; text-underline-offset: .3rem; }
.mini-diagram { position: relative; height: 195px; margin-top: 3rem; border: 1px solid #c4ceca; overflow: hidden; }
.mini-diagram:before, .mini-diagram:after { content: ""; position: absolute; background: #c4ceca; }
.mini-diagram:before { width: 1px; height: 100%; left: 50%; }
.mini-diagram:after { height: 1px; width: 100%; top: 50%; }
.mini-diagram span { position: absolute; z-index: 2; width: 10px; height: 10px; background: var(--green-deep); border-radius: 50%; }
.mini-diagram span:nth-child(1) { left: 20%; top: 35%; }.mini-diagram span:nth-child(2) { right: 20%; top: 20%; }.mini-diagram span:nth-child(3) { right: 28%; bottom: 18%; }
.mini-diagram i { position: absolute; width: 54px; height: 54px; border: 1px solid var(--green-deep); border-radius: 50%; left: calc(50% - 27px); top: calc(50% - 27px); }
.service-visual { height: 250px; margin: 3rem 0 0; overflow: hidden; border: 1px solid #c4ceca; background: #eee8e4; }
.service-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }

.products-section { padding: 125px 0; background: #714790; color: var(--white); }
.products-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6rem; align-items: end; margin-bottom: 5rem; }
.products-intro h2 { max-width: 760px; font-size: clamp(2.7rem, 5vw, 5.2rem); }
.products-intro h2 em { color: var(--green); }
.products-intro > p { margin: 0 0 .6rem; color: #e4d9eb; font-size: 1.05rem; }
.product-list { border-top: 1px solid rgba(255,255,255,.28); }
.product-row { display: grid; grid-template-columns: 55px 1fr 1.35fr 100px; gap: 2.5rem; align-items: center; min-height: 180px; border-bottom: 1px solid rgba(255,255,255,.28); }
.product-index { align-self: start; padding-top: 2.15rem; color: #d2bedf; font-size: .7rem; }
.product-name small { display: block; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; margin-bottom: .55rem; }
.product-name h3 { font-size: clamp(1.9rem, 3vw, 3rem); }
.product-row > p { color: #e4d9eb; font-size: .95rem; }
.product-row > a { justify-self: end; color: var(--white); font-weight: 700; text-underline-offset: .35rem; }

.section-ink { background: var(--ink-2); padding: 130px 0; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; }
.kicker-green { color: var(--green); }
.ai-copy { position: sticky; top: 3rem; align-self: start; }
.ai-copy h2 { max-width: 620px; }
.large-copy { color: #aebdb8; font-size: 1.15rem; line-height: 1.75; margin: 2rem 0 2.5rem; }
.ai-steps { border-top: 1px solid var(--line-dark); }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 1.4rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line-dark); }
.step > span { color: var(--green); font: 600 .75rem/1 "Manrope", sans-serif; padding-top: .45rem; }
.step h3 { font-size: 1.45rem; }
.step p { margin-bottom: 0; color: #9eada8; }

.process-section { padding-bottom: 130px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 180px 1.4fr 1fr; gap: 3rem; align-items: start; }
.split-heading p:last-child { color: #5a6662; margin: .3rem 0 0; }
.principles { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.principles div { min-height: 160px; padding: 1.5rem; border-right: 1px solid var(--line-light); display: flex; flex-direction: column; justify-content: space-between; }
.principles div:last-child { border: 0; }
.principles span { font-size: .7rem; color: #75817d; }
.principles strong { max-width: 180px; font: 600 1rem/1.4 "Manrope", sans-serif; }

.contact-section { padding: 120px 0; background: #2a1936; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8rem; align-items: end; }
.contact-section h2 { max-width: 750px; }
.contact-action > p { color: #b0bfba; font-size: 1.05rem; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.contact-links > a:last-child { color: #d4dedb; text-underline-offset: .3rem; }
footer { padding: 3rem 0; background: var(--ink); color: #a7b5b0; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 2rem; }
.footer-grid p { margin: 0; font-size: .78rem; line-height: 1.6; }
.back-top { width: 42px; height: 42px; border: 1px solid #42524d; display: grid; place-items: center; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes dash { to { stroke-dashoffset: -120; } }
@keyframes pulse { 0%,100% { transform: scale(.96); opacity: .25; } 50% { transform: scale(1.1); opacity: .8; } }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .menu-toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: none; border: 1px solid #40504b; }
  .menu-toggle span { display: block; width: 18px; height: 1px; background: var(--white); transition: transform .2s; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 88px; background: #0a1714; padding: 1.5rem 1rem 2rem; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line-dark); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .45rem; font-size: 1rem; }
  .main-nav .nav-cta { text-align: center; padding: 1rem; }
  .hero { padding-top: 125px; }
  .hero-grid, .ai-grid, .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-grid { min-height: auto; }
  .hero-visual { min-height: 440px; }
  .hero-visual img { height: 440px; }
  .proof-strip { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .proof-strip p { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .products-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-row { grid-template-columns: 45px 1fr 1.3fr; gap: 1.5rem; padding: 1.5rem 0; }
  .product-row > a { grid-column: 2; justify-self: start; }
  .service-card.featured { grid-row: auto; min-height: 610px; }
  .ai-copy { position: static; }
  .split-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .principles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; }
  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 355px; margin-inline: -10px; }
  .hero-visual img { height: 355px; }
  .node { width: 120px; padding: .8rem; }
  .node-center { left: calc(50% - 50px); top: 43%; width: 100px; height: 100px; }
  .node-input { left: 0; top: 15%; }.node-data { right: 0; top: 12%; }.node-action { right: 0; bottom: 3%; }
  .map-status { left: 5%; bottom: 10%; }
  .proof-strip { min-height: 120px; gap: 1rem; }
  .proof-strip div { display: block; }.proof-strip span { display: block; margin-top: .35rem; }
  .section-light, .section-ink, .contact-section { padding: 80px 0; }
  .products-section { padding: 80px 0; }
  .section-heading { margin-bottom: 3rem; }
  .service-card { min-height: 340px; padding: 1.5rem; }
  .service-card.featured { min-height: 570px; }
  .products-intro { margin-bottom: 3rem; }
  .product-row { grid-template-columns: 35px 1fr; gap: 1rem; }
  .product-row > p, .product-row > a { grid-column: 2; }
  .principles { grid-template-columns: 1fr; }
  .principles div { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .contact-grid { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid p { grid-column: 1 / -1; }
}

@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; }
}
