@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cutive Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cutive-mono-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Geostar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geostar-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/press-start-2p-latin-400.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --accent: #64a19d;
  --accent-dark: #467370;
  --ink: #161616;
  --muted: rgba(255, 255, 255, .58);
  --light-muted: rgba(22, 22, 22, .55);
  --max: 1140px;
  --nav-height: 72px;
  --hero-title-font: "Cutive Mono", "Courier New", Courier, monospace;
  --company-name-font: "Courier Prime", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .045em;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-150%);
  padding: .75rem 1rem; color: #fff; background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed; z-index: 20; inset: 0 0 auto; min-height: var(--nav-height);
  background: #fff; transition: background .25s ease, box-shadow .25s ease;
}
.nav-shell { max-width: var(--max); min-height: var(--nav-height); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-weight: 700; }
.brand span { color: var(--accent); margin-right: .3rem; }
.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: .6rem 1.5rem 1.2rem; background: #fff; }
.primary-nav.is-open { display: grid; }
.primary-nav a { padding: .65rem 0; color: rgba(22,22,22,.72); }
.nav-toggle { display: flex; gap: .55rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--accent); border-radius: .2rem; color: var(--accent); background: transparent; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }

.hero {
  min-height: 100vh; display: grid; place-items: center; padding: 8rem 1.5rem 5rem; color: #fff; text-align: center;
  background: linear-gradient(to bottom, rgba(22,22,22,.1), rgba(22,22,22,.5) 75%, #161616), url("/assets/images/hero.webp") center/cover no-repeat;
}
.hero-content { max-width: 760px; }
.hero h1 {
  margin: 0; font-family: var(--hero-title-font); font-size: clamp(3rem, 11vw, 6.5rem); line-height: 1;
  letter-spacing: clamp(.25rem, 1.5vw, .8rem); text-transform: uppercase; color: transparent;
  background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,0)); background-clip: text; -webkit-background-clip: text;
}
.company-name { margin: .8rem 0 0; font-family: var(--company-name-font); font-size: 1.7rem; line-height: 1.25; color: var(--muted); }
.tagline { margin: 1.2rem auto 2.7rem; color: var(--muted); font-size: clamp(.9rem, 2vw, 1.2rem); }
.tagline span { margin: 0 .25rem; }
.button {
  display: inline-block; padding: 1.15rem 1.8rem; border: 0; border-radius: .15rem; cursor: pointer;
  color: #fff; background: var(--accent); box-shadow: 0 .18rem .18rem rgba(0,0,0,.12);
  font-size: .78rem; font-weight: 700; letter-spacing: .15rem; text-transform: uppercase;
}
.button:hover, .button:focus-visible { color: #fff; background: #4f837f; }

.section-dark { color: #fff; background: var(--ink); }
.section-light { background: #f8f9fa; }
.narrow { width: min(760px, calc(100% - 3rem)); margin: 0 auto; text-align: center; }
.narrow h2 { font-size: 2rem; font-weight: 500; }
.narrow p { color: var(--muted); }
.about { padding: 9rem 0 0; overflow: hidden; background: linear-gradient(to bottom, #161616, rgba(22,22,22,.9) 75%, rgba(22,22,22,.8)); }
.about .narrow p { margin-bottom: 4.5rem; }
.about-device { width: min(100%, 1650px); margin: 0 auto; }

.services { padding: 8rem 0; }
.content-shell { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.feature { display: grid; }
.feature img { width: 100%; height: 100%; object-fit: cover; }
.feature-primary { margin-bottom: 3rem; }
.feature-copy { padding: 2rem; text-align: center; }
.feature-copy h3 { margin-bottom: .6rem; font-size: 1.35rem; font-weight: 500; }
.feature-copy p { margin-bottom: 0; color: var(--light-muted); }
.feature-dark { color: #fff; background: var(--ink); }
.feature-dark .feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.feature-dark .feature-copy p { color: var(--muted); }
.accent-line { width: 30%; height: .22rem; margin: 1.6rem auto 0; background: var(--accent); }

.contact-intro {
  padding: 9rem 0; color: #fff;
  background: linear-gradient(to bottom, rgba(22,22,22,.1), rgba(22,22,22,.5) 75%, #161616), url("/assets/images/contact.webp") center/cover no-repeat;
}
.section-icon { width: 2.1rem; margin-bottom: .4rem; fill: #fff; }
.contact-intro .section-icon { margin-inline: auto; }
.contact-cards { padding: 5rem 0 0; }
.card-grid { display: grid; gap: 1.5rem; }
.contact-card { padding: 2.1rem 1rem; color: var(--ink); text-align: center; background: #fff; border-bottom: .25rem solid var(--accent); }
.contact-card:hover { color: var(--ink); transform: translateY(-2px); }
.contact-card svg { width: 1.25rem; fill: var(--accent); }
.contact-card svg { margin: 0 auto .75rem; }
.contact-card h3 { margin-bottom: 1.2rem; font-size: .78rem; font-weight: 700; letter-spacing: .15rem; text-transform: uppercase; }
.contact-card span { display: block; width: 3rem; height: .22rem; margin: 0 auto; background: var(--accent); }
.site-footer { padding: 4.5rem 1.5rem; color: var(--muted); text-align: center; font-size: .8rem; }
.site-footer p { margin: .1rem 0; }

.login-page { min-height: 100vh; background: linear-gradient(rgba(22,22,22,.65), rgba(22,22,22,.92)), url("/assets/images/hero.webp") center/cover fixed; }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav-height) + 3rem) 1.25rem 3rem; }
.login-panel { width: min(100%, 470px); padding: clamp(2rem, 5vw, 3.5rem); background: #fff; box-shadow: 0 1.5rem 5rem rgba(0,0,0,.35); }
.login-kicker { margin-bottom: .35rem; color: var(--accent-dark); font-size: .72rem; font-weight: 700; letter-spacing: .13rem; text-transform: uppercase; }
.login-panel h1 { margin-bottom: 1.5rem; font-size: 2rem; font-weight: 500; }
.demo-form { display: grid; gap: .55rem; }
.demo-form label { margin-top: .4rem; font-size: .82rem; font-weight: 700; }
.demo-form input[type="text"], .demo-form input[type="password"] { width: 100%; padding: .8rem .9rem; border: 1px solid #cfd3d7; border-radius: .15rem; color: #70757a; background: #f4f5f6; }
.demo-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkbox-row { display: flex; gap: .55rem; align-items: center; color: #777; }
.login-button { margin-top: 1rem; }
.login-note { margin: 1.3rem 0 0; padding-top: 1.1rem; border-top: 1px solid #eceff1; color: #666; font-size: .78rem; line-height: 1.5; }
.login-note.is-active { color: var(--accent-dark); font-weight: 700; }
.login-nav { display: flex; position: static; padding: 0; background: transparent; }
.error-panel p:not(.login-kicker) { margin-bottom: 1.8rem; color: #555; }

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .site-header { background: transparent; }
  .site-header .brand, .site-header .primary-nav a { color: rgba(255,255,255,.62); }
  .site-header .primary-nav a:hover { color: rgba(255,255,255,.9); }
  .site-header.is-scrolled { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
  .site-header.is-scrolled .brand, .site-header.is-scrolled .primary-nav a { color: var(--ink); }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; position: static; gap: .15rem; padding: 0; background: transparent; }
  .primary-nav a { padding: 1.45rem 1.35rem 1.2rem; border-bottom: .25rem solid transparent; }
  .site-header.is-scrolled .primary-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
  .feature { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .feature-primary .feature-copy { align-self: center; text-align: left; }
  .accent-border { border-left: .5rem solid var(--accent); }
  .feature-dark { grid-template-columns: 1fr 1fr; }
  .feature-dark .feature-copy { min-height: 24rem; text-align: left; }
  .feature-reverse img { grid-column: 2; }
  .feature-reverse .feature-copy { grid-column: 1; grid-row: 1; text-align: right; }
  .feature-dark:not(.feature-reverse) .accent-line { margin-left: 0; }
  .feature-reverse .accent-line { margin-right: 0; }
}

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