:root {
  --paper: #f4f2ed;
  --ink: #0e1726;
  --ink-muted: #4c586b;
  --ink-soft: #7c8798;
  --blue: #1a4fd8;
  --blue-deep: #102a78;
  --red: #e10613;
  --white: #ffffff;
  --line: rgba(14, 23, 38, 0.12);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --header-height: 84px;
  --max: 1180px;
  --accent-purple: var(--blue);
  --brand-orange: var(--red);
  --accent-gold: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

address {
  font-style: normal;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 42% at 80% 0%, rgba(232, 196, 214, 0.55), transparent 58%),
    radial-gradient(ellipse 45% 36% at 10% 18%, rgba(214, 206, 232, 0.45), transparent 55%),
    linear-gradient(180deg, #f7f1ea 0%, #f3ebe3 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: rgba(255, 252, 249, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 23, 38, 0.05);
}

.header-inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 6px 18px rgba(14, 23, 38, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  position: relative;
  padding: 0.45rem 0.15rem;
  margin-left: 1.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: #6b4c9a;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 12px;
  border-radius: 2px;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.swatch {
  width: 28px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #00a3e0 0 25%, #e10613 25% 50%, #f5c400 50% 75%, #111 75%);
}

.hero h1,
.section-head h2,
.about h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  max-width: min(11ch, 100%);
  margin-bottom: 1.1rem;
}

.hero-lead,
.about p,
.portal-body > p,
.location address,
.footer-inner p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero-lead {
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.hero-actions,
.portal-body .btn {
  margin-top: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(26, 79, 216, 0.28);
}

.btn-red {
  background: var(--red);
  box-shadow: 0 12px 24px rgba(225, 6, 19, 0.24);
}

.hero-plate {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 2.4rem 1.6rem 1.6rem;
  box-shadow: 0 30px 70px rgba(14, 23, 38, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-logo {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.plate-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.crop {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--red);
}

.c-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.c-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.c-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.spec-bar {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-bar li {
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-bar li + li {
  border-left: 1px solid var(--line);
}

.spec-bar span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec-bar strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.portals,
.about,
.location {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.section-head h2,
.about h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
}

.portals {
  padding-top: 1.6rem;
  padding-bottom: 3rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 1.35rem;
}

.app {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(70, 48, 40, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.app:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(70, 48, 40, 0.12);
}

.app-art {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.8rem 0;
}

.app-art svg {
  width: min(100%, 250px);
  height: auto;
}

.app-art--erp {
  background: linear-gradient(160deg, #f3e4ee 0%, #e7d7ef 55%, #f6efe8 100%);
}

.app-art--vms {
  background: linear-gradient(160deg, #f6efe4 0%, #efe2d2 48%, #e7efe8 100%);
}

.app-copy {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 1;
}

.app-kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.app-kicker--erp { color: #6b4c9a; }
.app-kicker--vms { color: #a68446; }

.app-copy h2 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.app-copy p {
  color: #5c6572;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.app-login {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}

.app-login:hover {
  background: #000;
  transform: translateY(-1px);
}

.about.is-visible,
.location.is-visible {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  padding-top: 4.5rem;
  opacity: 0;
  transform: translateY(18px);
}

.about p {
  font-size: 1.15rem;
  max-width: 40rem;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 4rem;
  opacity: 0;
  transform: translateY(18px);
}

.location-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}

.loc-ring {
  position: absolute;
  inset: -55%;
  background: conic-gradient(from 0deg, transparent 0 60%, #7eb0ff 78%, #fff 86%, #e10613 93%, transparent 100%);
  animation: gate-spin 9s linear infinite;
}

.loc-face {
  position: relative;
  z-index: 1;
  margin: 1.5px;
  border-radius: 26.5px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.7rem 1.8rem;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(61, 123, 255, 0.16), transparent 50%),
    radial-gradient(70% 100% at 0% 100%, rgba(225, 6, 19, 0.1), transparent 46%),
    linear-gradient(160deg, #ffffff 0%, #f7f5f0 100%);
}

.loc-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  right: 8%;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.28), transparent 68%);
  animation: orb-pulse 5s ease-in-out infinite;
}

.loc-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}

.loc-pin {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #0e1726;
  box-shadow: 0 12px 28px rgba(14, 23, 38, 0.18);
}

.loc-pulse {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(225, 6, 19, 0.45);
  animation: pin-pulse 2.2s ease-out infinite;
}

.loc-copy,
.loc-gst {
  position: relative;
  z-index: 1;
}

.location address {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.loc-gst {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #0e1726;
  color: #fff;
  box-shadow: 0 14px 30px rgba(14, 23, 38, 0.16);
}

.loc-gst span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb4b8;
}

.loc-gst strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(100deg, #fff 20%, #9ec0ff 45%, #fff 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gst-shine 4.2s ease-in-out infinite;
}

@keyframes pin-pulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes gst-shine {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 3rem 1.5rem 1.4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer-brand img {
  height: 48px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff !important;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-inner h2 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-inner a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero,
  .portal-grid,
  .about,
  .footer-inner,
  .spec-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero,
  .about,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-bar li:nth-child(odd) {
    border-left: 0;
  }

  .spec-bar li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 8px);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 18px 40px rgba(14, 23, 38, 0.12);
  }

  .nav.is-open { display: flex; }

  .nav a {
    margin-left: 0;
    padding: 0.7rem 0.85rem;
  }

  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner { position: relative; }

  .hero { padding-top: 2.4rem; }

  .hero h1 {
    font-size: 2.55rem;
  }

  .portal-grid,
  .spec-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .loc-face {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .loc-gst {
    grid-column: 1 / -1;
  }

  .spec-bar li,
  .spec-bar li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .spec-bar li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about,
  .location,
  .gate {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .gate-ring,
  .gate-orb,
  .gate-sheen,
  .drift-a,
  .drift-b,
  .loc-ring,
  .loc-orb,
  .loc-sheen,
  .loc-pulse,
  .loc-gst strong {
    animation: none;
  }
  .btn,
  .app,
  .app-login { transition: none; }
}
