:root {
  --navy: #052d4b;
  --navy-deep: #021c30;
  --cyan: #00bfff;
  --cyan-light: #55d6ff;
  --offwhite: #f2f0ed;
  --paper: #f6f8f9;
  --ink: #102b3e;
  --muted: #607482;
  --line: #dce5ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy-deep); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }

.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; color: var(--offwhite); background: var(--navy-deep); }
.heroImage { position: absolute; z-index: -3; inset: 0; background: url('images/railroadbackground.png') center center / cover no-repeat; transform: scale(1.02); }
.heroShade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(2,24,41,.96) 0%, rgba(3,36,60,.88) 37%, rgba(3,39,63,.48) 67%, rgba(2,23,38,.68) 100%), linear-gradient(0deg, rgba(2,28,48,.82) 0%, transparent 38%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 46%; height: 3px; background: linear-gradient(90deg, var(--cyan), transparent); }

.siteHeader { width: min(calc(100% - 48px), 1180px); height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.14); }
.miniBrand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; }
.miniBrand img { width: 34px; height: 34px; object-fit: contain; }
.miniBrand strong { color: var(--cyan); }
.siteHeader nav { display: flex; align-items: center; gap: 34px; }
.siteHeader nav a { position: relative; color: #d8e6ee; text-decoration: none; font-size: .86rem; font-weight: 650; letter-spacing: .04em; }
.siteHeader nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--cyan); transition: right .22s ease; }
.siteHeader nav a:hover::after { right: 0; }

.heroContent { width: min(calc(100% - 48px), 1180px); margin: 0 auto; padding: clamp(70px, 12vh, 130px) 0 120px; }
.logoFrame { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(85,214,255,.38); border-radius: 22px; background: rgba(0,191,255,.07); box-shadow: inset 0 0 24px rgba(0,191,255,.08); backdrop-filter: blur(8px); }
.logoFrame img { width: 52px; height: 52px; object-fit: contain; }
.overline { margin: 0 0 14px; color: var(--cyan-light); font-size: .72rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(4rem, 10vw, 7.8rem); font-weight: 620; letter-spacing: -.075em; line-height: .85; }
.hero h1 span { color: var(--cyan); }
.tagline { margin: 22px 0 20px; color: var(--offwhite); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 370; letter-spacing: -.025em; }
.introText { max-width: 580px; margin: 0; color: #c4d6e1; font-size: clamp(.98rem, 1.8vw, 1.12rem); line-height: 1.7; }
.heroActions { display: flex; align-items: center; gap: 14px; margin-top: 38px; }
.primaryCta, .secondaryCta { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 0 22px; text-decoration: none; font-size: .9rem; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.primaryCta { gap: 22px; background: var(--cyan); color: var(--navy-deep); box-shadow: 0 13px 35px rgba(0,191,255,.2); }
.primaryCta span { font-size: 1.2rem; transition: transform .2s ease; }
.primaryCta:hover { transform: translateY(-2px); background: var(--cyan-light); }
.primaryCta:hover span { transform: translateX(4px); }
.secondaryCta { border: 1px solid rgba(255,255,255,.28); color: var(--offwhite); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.secondaryCta:hover { background: rgba(255,255,255,.1); }
.scrollCue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; transform: translateX(-50%); }
.scrollCue span { position: absolute; top: 9px; left: 50%; width: 3px; height: 7px; border-radius: 3px; background: var(--cyan); transform: translateX(-50%); animation: scroll 1.8s ease-in-out infinite; }

.tools { background: var(--paper); padding: clamp(74px, 11vw, 130px) 24px; }
.sectionInner { width: min(100%, 1080px); margin: auto; }
.sectionHeading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 52px; }
.sectionHeading h2 { margin: 0; color: var(--navy); font-size: clamp(2.25rem, 5vw, 4.2rem); font-weight: 620; letter-spacing: -.055em; line-height: 1.02; }
.sectionHeading > p { margin: 0 0 6px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.toolCard { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 190px; overflow: hidden; padding: 34px 38px; border: 1px solid var(--line); border-radius: 24px; background: white; color: inherit; text-decoration: none; box-shadow: 0 20px 55px rgba(3,38,62,.08); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.toolCard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--cyan); }
.toolCard:hover { transform: translateY(-4px); border-color: #b8dfec; box-shadow: 0 28px 70px rgba(3,38,62,.13); }
.toolIcon { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 20px; background: var(--navy); }
.toolIcon img { width: 48px; height: 48px; object-fit: contain; }
.toolLabel { margin: 0 0 8px; color: #0781ad; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.toolCopy h3 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.03em; }
.toolCopy > p:last-child { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.6; }
.cardArrow { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); font-size: 1.35rem; transition: background .2s ease, transform .2s ease; }
.toolCard:hover .cardArrow { background: var(--cyan); border-color: var(--cyan); transform: translateX(3px); }

footer { padding: 42px 24px; background: var(--navy-deep); color: #adc2ce; }
.footerInner { width: min(100%, 1080px); margin: auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 46px; }
.footerBrand { display: flex; align-items: center; gap: 13px; }
.footerBrand img { width: 38px; height: 38px; object-fit: contain; }
.footerBrand strong, .footerBrand span { display: block; }
.footerBrand strong { color: var(--offwhite); font-size: 1rem; }
.footerBrand span { margin-top: 2px; color: #819aa9; font-size: .7rem; }
footer a { color: var(--cyan-light); font-size: .82rem; text-decoration: none; }
footer p { margin: 0; color: #6f8998; font-size: .75rem; }

a:focus-visible { outline: 3px solid rgba(0,191,255,.6); outline-offset: 4px; }
@keyframes scroll { 0%,100% { transform: translate(-50%,0); opacity: .5; } 50% { transform: translate(-50%,10px); opacity: 1; } }

@media (max-width: 720px) {
  .siteHeader { width: calc(100% - 32px); height: 74px; }
  .siteHeader nav { gap: 18px; }
  .siteHeader nav a:first-child { display: none; }
  .heroContent { width: calc(100% - 36px); padding-top: 64px; }
  .logoFrame { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; }
  .logoFrame img { width: 43px; height: 43px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.4rem); }
  .heroActions { align-items: stretch; flex-direction: column; max-width: 340px; }
  .secondaryCta { display: none; }
  .scrollCue { display: none; }
  .sectionHeading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .sectionHeading h2 br { display: none; }
  .toolCard { grid-template-columns: auto 1fr; gap: 18px; padding: 26px 22px; }
  .toolIcon { width: 58px; height: 58px; border-radius: 16px; }
  .toolIcon img { width: 36px; height: 36px; }
  .toolCopy { min-width: 0; }
  .cardArrow { display: none; }
  .footerInner { grid-template-columns: 1fr; gap: 23px; }
}

@media (max-width: 420px) {
  .heroContent { padding-top: 50px; }
  .introText { line-height: 1.55; }
  .toolCard { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
