/* UpShotCode — modern dark (charcoal + cyan accent) */
:root {
  --bg-page: #0b0e14;
  --bg-card: #12161f;
  --bg-card-hover: #171c27;
  --bg-badge: rgba(0, 209, 255, 0.12);
  /* Headings / strong: near white on dark */
  --navy: #f0f3f7;
  /* Body: off-white per spec */
  --navy-muted: #e0e0e0;
  /* Muted secondary lines */
  --text-dim: #9aa3b2;
  --accent: #00d1ff;
  --accent-hover: #5ce1ff;
  --accent-pressed: #00b8e6;
  --accent-soft: rgba(0, 209, 255, 0.14);
  --accent-glow: rgba(0, 209, 255, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 209, 255, 0.22);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --on-accent: #0b0e14;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-muted);
  background: var(--bg-page);
  background-image: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(0, 209, 255, 0.06), transparent 50%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: min(100% - clamp(1rem, 5vw, 2rem), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  background: var(--accent);
  color: var(--on-accent) !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px var(--accent-glow);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
  box-shadow: none;
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.12);
}

/* Hero */
.hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.hero-shell {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -15% -20% auto;
  height: 75%;
  z-index: 0;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  animation: floaty 20s ease-in-out infinite;
}

.hero-glow::before {
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  background: radial-gradient(circle, rgba(0, 209, 255, 0.35) 0%, transparent 72%);
  top: -120px;
  right: 0;
}

.hero-glow::after {
  width: min(300px, 70vw);
  height: min(300px, 70vw);
  background: radial-gradient(circle, rgba(0, 180, 255, 0.18) 0%, transparent 72%);
  top: 20px;
  left: -8%;
  animation-delay: -7s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(14px, -22px) scale(1.06);
  }
}

.hero-shell > .container,
.hero-shell > .marquee {
  position: relative;
  z-index: 1;
}

/* ERPALO spotlight (above the fold) */
.spotlight {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: min(26rem, 100%);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  background: linear-gradient(145deg, #161b26 0%, #12161f 55%, #0f141d 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 209, 255, 0.06);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.spotlight:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 209, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 209, 255, 0.12);
}

.spotlight-kicker {
  grid-column: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.spotlight-title {
  grid-column: 1;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.25;
}

.spotlight-meta {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
  word-break: break-word;
}

.spotlight-go {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  align-self: center;
  line-height: 1;
}

/* Infinite tech strip */
.marquee {
  margin-top: 2rem;
  padding: 0.75rem 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(18, 22, 31, 0.75);
  backdrop-filter: blur(8px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 2rem;
  flex-shrink: 0;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-group span + span::before {
  content: "·";
  display: inline-block;
  margin: 0 1.1rem;
  color: var(--accent);
  font-weight: 700;
  opacity: 0.55;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* How we ship */
.section-ship {
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, #111620 42%, var(--bg-page) 100%);
}

.ship-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  counter-reset: none;
}

@media (min-width: 768px) {
  .ship-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.ship-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.ship-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.ship-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.ship-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.ship-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow::before,
  .hero-glow::after {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

/* Prevent grid blowout from long strings / wide children */
.hero-grid > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: end;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-badge);
  color: var(--accent);
  border: 1px solid rgba(0, 209, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 28rem;
}

@media (min-width: 380px) {
  .stats {
    gap: 0.65rem;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.stat-card span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Hero 3D illustration — fluid width, viewport-aware max-height */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
  }
}

.hero-figure {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: min(440px, 100%);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  background: radial-gradient(ellipse at 50% 75%, rgba(0, 209, 255, 0.2), transparent 70%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: min(50vh, 400px);
  display: block;
  margin-inline: auto;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
}

@media (min-width: 480px) {
  .hero-illustration {
    max-height: min(56vh, 460px);
  }
}

@media (min-width: 900px) {
  .hero-figure {
    max-width: min(440px, 44vw);
  }

  .hero-illustration {
    max-height: min(72vh, 580px);
  }
}

@media (max-width: 899px) and (orientation: landscape) {
  .hero-illustration {
    max-height: min(38vh, 280px);
  }
}

@media (min-width: 1200px) {
  .hero-figure {
    max-width: 460px;
  }
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-muted);
}

.trust-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-icon--a {
  background: rgba(52, 211, 153, 0.18);
}

.trust-icon--b {
  background: rgba(0, 209, 255, 0.2);
}

.trust-icon--c {
  background: rgba(251, 191, 36, 0.16);
}

.trust-icon--d {
  background: rgba(167, 139, 250, 0.2);
}

/* Sections */
.section {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, #0e1219 0%, var(--bg-page) 48%);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dim);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.project-featured {
  border: 2px solid var(--border-strong);
  background: linear-gradient(155deg, #1a222e 0%, #12161f 55%, #0d1118 100%);
  box-shadow: 0 0 48px rgba(0, 209, 255, 0.06);
}

.project-featured .erpalo-line {
  font-size: 0.9rem;
  color: var(--navy-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.project-featured .erpalo-line strong {
  color: var(--accent);
}

/* Contact */
.contact-box {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.contact-box > p {
  color: var(--navy-muted);
}

.contact-box .btn {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #06080d;
  color: var(--text-dim);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer .logo {
  color: var(--navy);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.site-footer a {
  color: var(--accent);
}

.site-footer a:hover {
  color: var(--accent-hover);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 14, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.65rem 0.85rem;
  }

  .stat-card strong {
    font-size: 0.85rem;
  }

  .stat-card span {
    font-size: 0.75rem;
  }
}

/* Very narrow phones: hero stats + trust labels */
@media (max-width: 360px) {
  .stat-card strong {
    font-size: 0.68rem;
  }

  .stat-card span {
    font-size: 0.62rem;
  }

  .trust-item {
    font-size: 0.78rem;
  }
}
