:root {
  --ink: #08120f;
  --muted: #59645f;
  --cream: #f3f1e9;
  --cream-2: #e9e6dc;
  --green: #47dd80;
  --green-dark: #123b2c;
  --night: #061a15;
  --night-2: #09231b;
  --line: rgba(8, 18, 15, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
svg { display: block; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: white;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(5, 24, 19, .94); border-color: rgba(255,255,255,.08); box-shadow: 0 8px 32px rgba(0,0,0,.12); backdrop-filter: blur(16px); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 35px; }
.brand-mark svg { width: 100%; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linejoin: round; }
.brand-mark svg path:nth-child(2) { opacity: .5; }
.brand-mark svg circle { fill: var(--green); stroke: none; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.brand-name strong { color: var(--green); font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; margin-right: 40px; }
.desktop-nav a { color: rgba(255,255,255,.72); font-size: 13px; transition: color .2s; }
.desktop-nav a:hover { color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; font-weight: 650; letter-spacing: .01em; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button-small { height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.28); color: white; font-size: 12px; }
.button-small svg { width: 15px; }
.button-small:hover { background: white; color: var(--ink); }
.menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; min-height: 780px; height: 100svh; color: white; overflow: hidden; background: #031622; }
.hero-image { position: absolute; inset: 0; background: url("assets/hero-rgm-hub.png") center / cover no-repeat; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,15,23,.96) 0%, rgba(2,15,23,.83) 34%, rgba(2,15,23,.23) 69%, rgba(2,15,23,.07)), linear-gradient(0deg, rgba(2,15,18,.65), transparent 40%); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-content { max-width: 720px; padding-top: 70px; }
.eyebrow, .kicker { margin: 0 0 28px; color: #52605a; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--green); }
.eyebrow span { width: 28px; height: 1px; background: var(--green); }
.hero h1 { margin: 0; font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 460; }
.hero h1 em { display: block; color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy { max-width: 600px; margin: 30px 0 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 36px; margin-top: 40px; }
.button-primary { min-height: 56px; padding: 0 25px; color: #04130d; background: var(--green); font-size: 13px; }
.button-primary:hover { background: #72ee9e; }
.text-link { color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.3); padding: 9px 0; font-size: 13px; }
.text-link span { color: var(--green); margin-left: 8px; }
.hero-status { position: absolute; right: 0; bottom: 62px; display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.14); background: rgba(3,22,25,.55); backdrop-filter: blur(12px); }
.hero-status > span:last-child { display: flex; flex-direction: column; gap: 3px; color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.hero-status strong { color: white; font-size: 11px; letter-spacing: .04em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(71,221,128,.12); }
.scroll-cue { position: absolute; bottom: 48px; left: 32px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.4); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-90deg); transform-origin: left center; }
.scroll-cue i { display: block; width: 50px; height: 1px; background: rgba(255,255,255,.3); }

.section { padding: 135px 0; }
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.section-heading h2, .solutions-intro h2, .systems-heading h2, .contact h2 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.06; letter-spacing: -.045em; font-weight: 480; }
.section-heading h2 span, .solutions-intro h2 span, .systems-heading h2 span { color: #8b948f; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; }
.about-copy { padding-top: 35px; }
.about-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-copy .lead { margin-bottom: 26px; color: var(--ink); font-size: 22px; line-height: 1.5; }
.principles { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.principles span { padding: 10px 15px; border: 1px solid var(--line); color: #44504a; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.solutions { color: white; background: var(--night); }
.solutions-intro { display: grid; grid-template-columns: 1.5fr .65fr; gap: 100px; align-items: end; }
.kicker-light { color: var(--green); }
.solutions-intro h2 span { color: var(--green); }
.solutions-intro > p { margin: 0 0 4px; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.8; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 75px; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.solution-card { position: relative; min-height: 365px; padding: 42px 35px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); transition: background .3s; }
.solution-card:hover { background: rgba(71,221,128,.045); }
.card-number { position: absolute; top: 24px; right: 25px; color: rgba(255,255,255,.26); font: italic 12px Georgia, serif; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(71,221,128,.35); color: var(--green); }
.card-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.solution-card h3 { margin: 80px 0 15px; font-size: 21px; font-weight: 540; }
.solution-card p { margin: 0; color: rgba(255,255,255,.48); font-size: 13px; line-height: 1.75; }

.systems { background: #f6f4ed; }
.systems-heading { display: grid; grid-template-columns: 1.2fr .8fr; }
.systems-heading .kicker { grid-column: 1 / -1; }
.systems-heading > p:last-child { max-width: 350px; margin: auto 0 5px auto; color: var(--muted); font-size: 14px; line-height: 1.7; }
.system-card { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 460px; margin-top: 70px; color: white; background: var(--night-2); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.system-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(7,29,22,.18); }
.system-visual { position: relative; display: flex; align-items: flex-end; padding: 80px 0 0 70px; background: radial-gradient(circle at 48% 30%, rgba(71,221,128,.22), transparent 45%), linear-gradient(135deg, #0c3328, #061c17); overflow: hidden; }
.system-visual::before { content: ""; position: absolute; width: 380px; height: 380px; top: -170px; left: -120px; border: 1px solid rgba(71,221,128,.22); border-radius: 50%; box-shadow: 0 0 0 55px rgba(71,221,128,.025), 0 0 0 110px rgba(71,221,128,.02); }
.mini-dashboard { position: relative; z-index: 1; width: 100%; height: 340px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px 0 0 0; background: #f3f4f0; box-shadow: -18px 25px 70px rgba(0,0,0,.38); overflow: hidden; transform: perspective(1100px) rotateY(4deg); transform-origin: bottom right; }
.mini-top { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: white; }
.mini-top span { width: 55px; height: 8px; margin-right: auto; border-radius: 5px; background: #184934; }
.mini-top i { width: 7px; height: 7px; border-radius: 50%; background: #d5d9d6; }
.mini-content { display: flex; height: calc(100% - 38px); }
.mini-side { width: 82px; background: #0b2b21; }
.mini-main { position: relative; flex: 1; padding: 32px 24px; }
.mini-main b { display: inline-block; width: 28%; height: 50px; margin-right: 3%; border-radius: 4px; background: white; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.mini-main svg { width: 90%; margin-top: 45px; overflow: visible; }
.mini-main svg path:first-child { fill: none; stroke: #26b769; stroke-width: 3; }
.mini-main svg path:last-child { fill: rgba(38,183,105,.12); stroke: none; }
.system-info { display: flex; flex-direction: column; justify-content: center; padding: 65px; }
.system-label { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.4); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.system-label span { color: var(--green); }
.system-label i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.3); }
.system-info h3 { margin: 30px 0 15px; font-size: 36px; letter-spacing: -.03em; font-weight: 520; }
.system-info p { margin: 0; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.8; }
.system-link { align-self: flex-start; margin-top: 45px; padding-bottom: 9px; border-bottom: 1px solid rgba(71,221,128,.5); color: var(--green); font-size: 12px; font-weight: 650; }
.system-link b { margin-left: 12px; font-size: 15px; }
.next-system { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 25px 30px; border: 1px solid var(--line); }
.next-system .plus { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); color: #6f7c76; }
.next-system p { margin: 0; color: #6e7873; font-size: 12px; }
.next-system p strong { color: var(--ink); font-weight: 650; }
.next-system > span:last-child { margin-left: auto; color: #7e8984; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.contact { padding: 135px 0; color: white; background: #0b2b21; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 120px; }
.contact h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; color: var(--green); }
.contact-copy > p:not(.kicker) { max-width: 390px; margin: 30px 0; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.8; }
.contact-copy > a { display: inline-flex; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 13px; }
.contact-copy > a span { color: var(--green); }
.contact-form { padding-top: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 11px; margin-bottom: 25px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); outline: 0; padding: 7px 0 13px; resize: vertical; color: white; background: transparent; font-size: 14px; letter-spacing: 0; text-transform: none; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.25); }
.button-submit { min-height: 54px; padding: 0 25px; color: var(--night); background: var(--green); font-size: 12px; }
.button-submit:hover { background: #7befa4; }
.form-note { margin: 14px 0 0; color: rgba(255,255,255,.3); font-size: 10px; }

.site-footer { padding: 70px 0 25px; color: white; background: #061a15; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 60px; }
.brand-footer { margin-bottom: 22px; }
.footer-main > div:first-child > p { color: rgba(255,255,255,.38); font-size: 12px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links span { margin-bottom: 6px; color: rgba(255,255,255,.3); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 12px; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.28); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.hero .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 1px; background: white; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 80px 0 auto; display: flex; flex-direction: column; padding: 25px 18px 35px; background: #061a15; transform: translateY(-130%); transition: transform .3s; z-index: -1; }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { padding: 17px 5px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); }
  .mobile-nav a:last-child { margin-top: 18px; text-align: center; color: var(--night); background: var(--green); }
  .hero { min-height: 720px; }
  .hero-image { background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(2,15,23,.96), rgba(2,15,23,.7)), linear-gradient(0deg, rgba(2,15,18,.75), transparent); }
  .hero-content { max-width: 650px; }
  .hero-status, .scroll-cue { display: none; }
  .section { padding: 95px 0; }
  .about-grid, .solutions-intro, .systems-heading, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .about-copy { padding-top: 0; }
  .solutions-intro > p, .systems-heading > p:last-child { margin: 0; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: auto; }
  .solution-card h3 { margin-top: 45px; }
  .system-card { grid-template-columns: 1fr; }
  .system-visual { min-height: 360px; }
  .system-info { padding: 50px; }
  .contact-grid { gap: 70px; }
  .footer-main { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 600px) {
  .header-inner { height: 70px; }
  .mobile-nav { inset: 70px 0 auto; }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 35px; }
  .hero h1 { font-size: clamp(45px, 14vw, 62px); }
  .hero-copy { font-size: 15px; line-height: 1.65; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 32px; }
  .button-primary { width: 100%; }
  .section { padding: 78px 0; }
  .section-heading h2, .solutions-intro h2, .systems-heading h2, .contact h2 { font-size: 42px; }
  .about-grid { gap: 35px; }
  .about-copy .lead { font-size: 19px; }
  .solution-grid { margin-top: 50px; }
  .solution-card { padding: 32px 28px; }
  .system-card { margin-top: 45px; }
  .system-visual { min-height: 280px; padding: 55px 0 0 35px; }
  .mini-dashboard { height: 260px; }
  .mini-side { width: 55px; }
  .system-info { padding: 38px 30px; }
  .system-info h3 { font-size: 30px; }
  .next-system { align-items: flex-start; }
  .next-system > span:last-child { display: none; }
  .contact { padding: 80px 0; }
  .contact-grid { gap: 55px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 50px; }
  .footer-links { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

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