/* JC App Solutions - minimal charcoal / silver / blue accent */
:root {
  --bg: #0e1014;
  --bg-elevated: #14181f;
  --bg-card: #1a1f28;
  --charcoal: #12151a;
  --midnight: #0a0c10;
  --silver: #c8d0da;
  --silver-bright: #e8eef4;
  --silver-dim: #8a95a3;
  --accent: #3b9eff;
  --accent-bright: #6bb6ff;
  --accent-dim: #1e6fd9;
  --accent-glow: rgba(59, 158, 255, 0.22);
  --text: #f2f4f7;
  --text-muted: #a8b0bc;
  --text-dim: #6e7684;
  --border: rgba(200, 208, 218, 0.12);
  --border-strong: rgba(200, 208, 218, 0.24);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1040px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--silver-bright); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--silver-bright);
  color: var(--midnight);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 16, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(14, 16, 20, 0.97);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--silver-bright);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.logo-link:hover { color: #fff; }
.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9px;
  background: transparent;
}
.logo-text {
  display: none;
  color: var(--silver-bright);
  font-weight: 600;
}
@media (min-width: 480px) {
  .logo-text { display: inline; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--silver);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(14, 16, 20, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem 1.25rem;
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--bg-card);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
  }
  .site-nav a {
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: #2a303a;
  color: #fff;
  border-color: rgba(200, 208, 218, 0.2);
  box-shadow: 0 0 0 1px rgba(59, 158, 255, 0.12);
}
.btn-primary:hover {
  color: #fff;
  background: #343b48;
  border-color: rgba(107, 182, 255, 0.4);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  color: var(--silver-bright);
  border-color: var(--silver);
  background: rgba(200, 208, 218, 0.05);
}

/* Layout */
.section {
  padding: 5.5rem 1.5rem;
  position: relative;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 1rem;
  color: var(--silver-bright);
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%, #181c26 0%, transparent 60%),
    linear-gradient(180deg, #12151a 0%, var(--bg) 50%, var(--midnight) 100%);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.45;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.star.bright {
  width: 2.5px;
  height: 2.5px;
  box-shadow: 0 0 5px rgba(232, 238, 244, 0.5);
  background: var(--silver-bright);
  opacity: 0.7;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

.orbit-stage {
  position: absolute;
  width: min(88vw, 560px);
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 208, 218, 0.18);
  border-radius: 50%;
  animation: spin-orbit var(--spin, 70s) linear infinite;
}
.orbit-ring.r1 {
  inset: 8%;
  --spin: 80s;
  border-color: rgba(200, 208, 218, 0.14);
}
.orbit-ring.r2 {
  inset: 24%;
  border-style: dashed;
  border-color: rgba(200, 208, 218, 0.12);
  --spin: 55s;
  animation-direction: reverse;
}
.orbit-ring.r3 {
  inset: 40%;
  border-color: rgba(59, 158, 255, 0.14);
  --spin: 45s;
}
.orbit-ring .node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--silver);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(232, 238, 244, 0.35);
}
.orbit-ring .node.accent {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  width: 5px;
  height: 5px;
}

@keyframes spin-orbit {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  width: 100%;
}

/* Transparent lockup sits directly on the dark space background */
.hero-logo-card {
  display: inline-block;
  margin: 0 auto 2rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hero-logo {
  width: min(92vw, 560px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.45));
}

.hero-slogan {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--silver-bright);
  margin-bottom: 0.9rem;
}
.hero-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.about-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 700px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--silver-bright);
}
.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Principles */
.build {
  background: var(--bg-elevated);
}
.principles {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
}
.principle {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}
.principle-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(200, 208, 218, 0.06);
  color: var(--silver-dim);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}
.principle h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--silver-bright);
}
.principle p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== ON TOUR - refined ticket stub ========== */
.ontour {
  --ot-red: #9B302E;
  --ot-red-deep: #5c1a18;
  --ot-red-mid: #7a2422;
  --ot-cream: #E5DEC7;
  --ot-cream-dim: #c4bba0;
  --ot-orange: #C45A3A;
  --ot-black: #0a0a0a;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}
.ontour-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 880px) {
  .ontour-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.ontour-copy .section-lead { margin-bottom: 1.35rem; }
.ontour-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.ontour-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.ontour-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--ot-orange);
  opacity: 0.95;
}
.ontour-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ot-orange);
  margin-bottom: 1.25rem;
}

.ontour-ticket {
  --ot-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
  background:
    radial-gradient(ellipse 75% 45% at 18% 0%, rgba(196, 90, 58, 0.22), transparent 55%),
    linear-gradient(165deg, var(--ot-red) 0%, var(--ot-red-deep) 100%);
  border: 1px solid rgba(229, 222, 199, 0.18);
  border-radius: var(--ot-radius);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(92, 26, 24, 0.85),
    inset 0 1px 0 rgba(229, 222, 199, 0.08);
  overflow: hidden;
}
.ticket-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  padding: 1.85rem 1.6rem 1.35rem;
}
.ontour-thumb {
  width: min(168px, 48vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 28px;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
.ticket-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.ticket-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ot-orange);
  margin-bottom: 0.35rem;
}
.ontour-card-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ot-cream);
}
.ontour-card-sub {
  font-size: 0.8rem;
  color: var(--ot-cream-dim);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  margin-bottom: 0.9rem;
}
.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(196, 90, 58, 0.22);
  color: var(--ot-cream);
  border: 1px solid rgba(196, 90, 58, 0.55);
  margin-bottom: 1rem;
}
.ticket-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.ticket-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ot-cream);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.35);
  border: 1px solid rgba(196, 90, 58, 0.45);
}

/* Perforated tear line */
.ticket-perforation {
  position: relative;
  height: 0;
  margin: 0 1rem;
  border-top: 1px dashed rgba(229, 222, 199, 0.35);
}
.ticket-perforation::before,
.ticket-perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(155, 48, 46, 0.35);
}
.ticket-perforation::before { left: -1.55rem; }
.ticket-perforation::after { right: -1.55rem; }

.ticket-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.6rem 1.2rem;
  background: rgba(10, 10, 10, 0.45);
}
.stub-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ot-cream-dim);
}
.stub-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ot-orange);
  letter-spacing: 0.02em;
}

/* Ventures */
.ventures {
  background: var(--bg);
}
.venture-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 700px) {
  .venture-grid { grid-template-columns: repeat(3, 1fr); }
}
.venture-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.venture-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--silver-bright);
}
.venture-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Start a project */
.project {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.project-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.75rem;
  text-align: center;
}
@media (min-width: 640px) {
  .project-panel { padding: 3.5rem 3rem; }
}
.project-panel .section-title,
.project-panel .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.project-panel .section-lead { margin-bottom: 2rem; }
.project-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Contact */
.contact {
  background: var(--bg-elevated);
  padding-bottom: 4rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (min-width: 640px) {
  .contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.contact-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.contact-email {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--silver-bright);
  word-break: break-all;
}
.contact-email:hover { color: var(--accent-bright); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: var(--midnight);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: transparent;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-ring,
  .star {
    animation: none !important;
  }
  .orbit-ring { opacity: 0.7; }
}
