/* Highwood Software Inc. — Kananaskis theme */
:root {
  --night: #0B1A17;
  --forest: #0F2A22;
  --pine: #1C4A3A;
  --spruce: #2B5550;
  --glacier: #3FC1C9;
  --glacier-deep: #1D8A93;
  --snow: #F5F2EA;
  --paper: #FBF9F4;
  --granite: #5D6E69;
  --ink: #13231E;
  --larch: #D9A441;
  --gold: #C6A15B;
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; position: relative; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--snow); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--glacier); margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--glacier-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--glacier); outline-offset: 3px; }
.btn-primary { background: var(--larch); color: var(--night); box-shadow: 0 8px 24px -10px rgba(217,164,65,.8); }
.btn-primary:hover { background: #E6B456; }
.btn-ghost { color: var(--snow); border: 1.5px solid rgba(245,242,234,.45); }
.btn-ghost:hover { background: rgba(245,242,234,.1); }
.btn-teal { background: var(--glacier); color: #04121A; }
.btn-teal:hover { background: #5FD3DA; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(16px, calc((100% - 1160px) / 2));
  color: var(--snow);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(11,26,23,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.brand em { font-style: normal; font-weight: 500; opacity: .75; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav-links a:hover { opacity: 1; color: var(--glacier); }
.nav-links .nav-cta { border: 1.5px solid rgba(245,242,234,.45); padding: .45em 1.1em; border-radius: 999px; }
.nav-links .nav-cta:hover { border-color: var(--glacier); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--snow); transition: transform .25s ease, top .25s ease; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-start;
  background: linear-gradient(180deg, #0B1E2A 0%, #18394A 32%, #3F6C7C 58%, #C8A57A 82%, #E8C38C 100%);
  color: var(--snow); overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-copy { position: relative; z-index: 3; width: min(1160px, 100% - 32px); margin: 0 auto; padding-top: clamp(110px, 16vh, 170px); padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 17ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(5,15,20,.35); }
.lede { text-shadow: 0 1px 16px rgba(5,15,20,.5); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: rgba(245,242,234,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.range { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 56%; z-index: 2; }
.range .layer { will-change: transform; }
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 4s ease-in-out infinite; }
.s1 { top: 9%; left: 62%; } .s2 { top: 16%; left: 82%; animation-delay: 1s; } .s3 { top: 6%; left: 38%; animation-delay: 2s; }
.s4 { top: 22%; left: 92%; animation-delay: .5s; } .s5 { top: 13%; left: 72%; animation-delay: 3s; width: 2px; height: 2px; }
@keyframes twinkle { 50% { opacity: .15; } }

/* Products */
.products { position: relative; background: var(--night); color: var(--snow); padding: 110px 0 130px; overflow: hidden; }
.topo {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23F5F2EA' stroke-width='1.2'%3E%3Cpath d='M300 120c90 0 170 60 170 150s-60 200-170 200-190-70-190-170 100-180 190-180z'/%3E%3Cpath d='M300 165c65 0 125 45 125 110s-45 150-125 150-140-50-140-125 75-135 140-135z'/%3E%3Cpath d='M300 210c42 0 80 30 80 70s-30 100-80 100-90-32-90-80 48-90 90-90z'/%3E%3Cpath d='M300 252c20 0 38 14 38 32s-14 48-38 48-42-15-42-38 22-42 42-42z'/%3E%3Cpath d='M-20 520c120-40 200 30 330 10s210-80 310-40'/%3E%3Cpath d='M-20 570c120-40 200 30 330 10s210-80 310-40'/%3E%3Cpath d='M-20 60c100 40 180-20 280 0s180 70 360 20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p:last-child { color: rgba(245,242,234,.72); font-size: 1.1rem; }
.products .eyebrow.dark { color: var(--glacier); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.card {
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }
.card-body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.tagline { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; margin-bottom: .9rem; }
.tag-teal { background: rgba(63,193,201,.15); color: var(--glacier); }
.tag-gold { background: rgba(198,161,91,.18); color: #E2C27F; }

.card-wiredesk { background: #040A15; }
.card-wiredesk .card-media { background: #040A15; padding: 28px 24px 0; }
.card-wiredesk .tagline { color: var(--glacier); }
.card-wiredesk .card-body p:not(.tagline) { color: rgba(245,242,234,.75); }

.card-teenudge { background: linear-gradient(160deg, #1F4F38 0%, #12261C 100%); }
.card-teenudge .card-media { display: flex; align-items: center; gap: 22px; padding: 30px 30px 0; }
.app-icon { width: 104px; height: 104px; border-radius: 23px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); flex-shrink: 0; }
.media-copy h3 { margin-bottom: .15em; }
.media-copy .tag { margin-bottom: .6rem; }
.media-copy .tagline { color: #E2C27F; margin: 0; }
.card-teenudge .card-body > p:first-child { color: rgba(246,241,231,.85); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 18px; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: baseline; }
.steps li::before {
  content: counter(step); grid-row: span 2; align-self: start;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(198,161,91,.2); color: #E2C27F; font-weight: 600; font-size: .85rem;
}
.steps b { color: #F6F1E7; }
.steps span { color: rgba(246,241,231,.72); font-size: .95rem; }
.fine { font-size: .85rem; color: rgba(246,241,231,.6); border-top: 1px solid rgba(246,241,231,.12); padding-top: 14px; margin: auto 0 0; }

/* Foothills */
.foothills { background: var(--snow); padding-bottom: 110px; }
.lake-wrap { height: clamp(260px, 38vw, 460px); overflow: hidden; }
.lake { width: 100%; height: 100%; }
.foothills-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; margin-top: -70px; align-items: start; }
.foothills-copy { background: var(--paper); padding: 40px 40px 28px; border-radius: var(--radius); box-shadow: 0 30px 60px -36px rgba(15,42,34,.45); }
.foothills-copy p:last-child { color: var(--granite); font-size: 1.08rem; }
.markers { list-style: none; padding: 110px 0 0; margin: 0; display: grid; gap: 26px; }
.markers li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
.marker-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--forest); display: grid; place-items: center; }
.marker-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--larch); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.markers h3 { font-size: 1.3rem; margin: 2px 0 .2em; }
.markers p { color: var(--granite); margin: 0; }

/* Contact */
.contact { position: relative; background: linear-gradient(180deg, var(--pine), var(--forest)); color: var(--snow); padding: 110px 0 180px; text-align: center; overflow: hidden; }
.contact-inner { max-width: 720px; }
.contact h2 { margin-bottom: .4em; }
.contact p:not(.eyebrow) { color: rgba(245,242,234,.8); font-size: 1.1rem; margin-bottom: 1.8rem; }
.contact-ridge { position: absolute; bottom: -1px; left: 0; width: 100%; height: 120px; fill: var(--night); }

/* Footer */
.footer { background: var(--night); color: rgba(245,242,234,.7); padding: 34px 0 40px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { display: block; color: var(--snow); font-family: var(--serif); font-size: 1.05rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--glacier); }
.copy { grid-column: 1 / -1; margin: 0; font-size: .82rem; opacity: .7; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, #0B1E2A, #2B5550); color: var(--snow); padding: 24px; }
.lost h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.lost p { color: rgba(245,242,234,.8); }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .foothills-grid { grid-template-columns: 1fr; gap: 36px; }
  .markers { padding-top: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px 24px 32px;
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: rgba(11,26,23,.97); transform: translateY(-110%); transition: transform .35s ease; z-index: -1;
  }
  .nav-links a { font-size: 1.2rem; }
  .nav-links.open { transform: none; }
  .hero h1 { max-width: none; }
  .range { height: 48%; }
  .products { padding: 80px 0 90px; }
  .card-body { padding: 22px 22px 26px; }
  .card-teenudge .card-media { padding: 24px 22px 0; gap: 16px; }
  .app-icon { width: 80px; height: 80px; border-radius: 18px; }
  .foothills-copy { padding: 28px 24px 18px; }
  .foothills-grid { margin-top: -40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .star { animation: none; }
  .btn, .card { transition: none; }
}
