/* Project Janus demo site. Supaste-inspired: white, near-black type,
   huge weight contrast, grey 24px cards, generous air. No external assets. */

:root {
  --ink: #0b0b0c;
  --muted: #5f6165;
  --card: #f5f5f6;
  --hair: #e7e7ea;
  --accent: #e8722a;
  --radius: 24px;
  --col: 1100px;
}

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

@media (min-width: 801px) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }

::selection { background: #ffdcc7; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* anchored sections clear the fixed nav pill */
#features, #operations, #specs, #capabilities, #top { scroll-margin-top: 84px; }

.skip {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 10px 12px 10px 18px;
  background: rgba(16, 16, 18, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease;
  white-space: nowrap;
}
.nav.scrolled { box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4); }

.nav-brand {
  display: flex; align-items: center; gap: 9px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.nav-brand svg { width: 26px; height: 17px; color: var(--accent); }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 2px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: #fff; color: #0b0b0c;
  text-decoration: none;
  font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: scale(1.04); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 1080px);
  min-height: min(94svh, 1080px);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.42) 0%, rgba(6, 8, 10, 0.12) 34%, rgba(255, 255, 255, 0) 55%, #fff 96%);
}
.hero-copy {
  position: relative;
  text-align: center;
  padding: 0 24px clamp(70px, 15vh, 150px);
  max-width: 900px;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}
.hero-copy p {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* ---------- intro ---------- */

.intro {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 24px 20px;
  text-align: center;
}
.intro h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
}
.intro .lede {
  margin: 20px auto 30px;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.09rem;
  line-height: 1.55;
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 10px;
}
.chips span {
  border: 1px solid var(--hair);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px; font-weight: 600;
  color: #3c3c41;
}

/* ---------- feature cards ---------- */

main { max-width: var(--col); margin: 0 auto; padding: 40px 24px 20px; }

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 58px) clamp(20px, 4vw, 54px) clamp(22px, 3vw, 40px);
  margin: 44px 0;
  text-align: center;
}
.feature h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 800;
}
.feature > p {
  margin: 16px auto 34px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.feature figure img,
.feature figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(11, 11, 12, 0.16);
  border: 1px solid rgba(11, 11, 12, 0.06);
}

.video-figure { position: relative; }
.video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }

/* ---------- capability grid ---------- */

.grid-section {
  max-width: var(--col);
  margin: 0 auto;
  padding: 60px 24px 30px;
  text-align: center;
}
.grid-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.cap {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}
.cap h3 { font-size: 1.08rem; font-weight: 700; padding: 16px 18px 0; }
.cap p { color: var(--muted); font-size: 0.94rem; line-height: 1.5; padding: 7px 18px 18px; }
.cap.text-only { justify-content: center; padding-top: 10px; padding-bottom: 10px; }

.pos-teams { object-position: 68% 12%; }
.pos-settings { object-position: 50% 20%; }
.pos-rf { object-position: 0% 40%; }

/* ---------- built for ---------- */

.ops {
  max-width: var(--col);
  margin: 0 auto;
  padding: 60px 24px 30px;
  text-align: center;
}
.ops h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.op-card {
  background: #101012;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.op-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}
.op-card h3 {
  padding: 18px 20px 0;
  font-size: 1.15rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.op-card p { padding: 8px 20px 20px; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.5; }

/* ---------- specs / faq ---------- */

.specs {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.specs h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 34px;
}
.specs details {
  border-bottom: 1px solid var(--hair);
}
.specs summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px;
  font-weight: 700; font-size: 1.05rem;
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0; margin-left: 16px;
}
.specs details[open] summary::after { transform: rotate(45deg); }
.specs details p {
  padding: 0 4px 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.99rem;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  background: #0b0b0c;
  color: #fff;
  overflow: hidden;
}
.footer-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
}
.footer-inner {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  padding: 130px 24px 46px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem;
}
.footer-brand svg { width: 34px; height: 22px; color: var(--accent); }
.footer-inner > p {
  margin: 14px auto 20px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.97rem;
  line-height: 1.55;
}
.footer-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 12px 10px;
}
.footer-links a:hover { color: #fff; }

/* ---------- reveal animation ---------- */

/* hidden only when JS runs (html.js) AND reveals are enabled (no .reveal-off),
   so no-JS and mobile both render everything immediately */
.js:not(.reveal-off) .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js:not(.reveal-off) .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablet: 2-col grids ---------- */

@media (min-width: 641px) and (max-width: 1024px) {
  .cap-grid, .ops-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- narrow / mobile ---------- */

@media (max-width: 800px) {
  .nav {
    gap: 16px;
    padding: 8px 16px;
    backdrop-filter: none;
    background: rgba(16, 16, 18, 0.97);
  }
  .nav-cta { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13.5px; padding: 10px 2px; }
  .hero { min-height: 78vh; min-height: 78svh; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(6, 8, 10, 0.5) 0%, rgba(6, 8, 10, 0.16) 32%, rgba(255, 255, 255, 0) 52%, #fff 97%);
  }
  .hero-copy { padding-bottom: 11vh; }
  .intro { padding-top: 64px; }
  .feature { margin: 22px 0; }
  .feature figure img,
  .feature figure video { border-radius: 10px; }
  .video-play { width: 64px; height: 64px; }
  main { padding: 16px 14px 8px; }
  .grid-section, .ops { padding-left: 14px; padding-right: 14px; }
  .footer-inner { padding-top: 100px; }
}

@media (max-width: 420px) {
  .hero-copy h1 br { display: none; }
}

/* ---------- mobile carousels (reduce vertical scroll) ---------- */

@media (max-width: 640px) {
  .cap-grid, .ops-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cap-grid::-webkit-scrollbar, .ops-grid::-webkit-scrollbar { display: none; }
  .cap, .op-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .cap.text-only { flex-basis: 64%; }
}
