/* Trinity Lunar Company — landing page
   Dark space-industrial · cyan accent · system + IBM Plex */

:root {
  --bg: #0a0c10;
  --bg-elevated: #10141b;
  --bg-alt: #0d1118;
  --surface: #151a24;
  --border: rgba(180, 200, 220, 0.12);
  --border-strong: rgba(180, 200, 220, 0.22);
  --text: #e8edf4;
  --text-muted: #9aa8b8;
  --text-dim: #6b7a8c;
  --accent: #3dd6c6;
  --accent-dim: rgba(61, 214, 198, 0.14);
  --accent-hover: #5ee0d2;
  --amber: #e8b84a;
  --radius: 6px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --header-h: 64px;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(61, 214, 198, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 214, 198, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #061014;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--accent) !important;
  background: var(--accent-dim);
}

.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(61, 214, 198, 0.22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

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

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(10, 12, 16, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }

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

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
    border: 1px solid var(--border-strong) !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #061014;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #061014;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.section-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 2.5rem;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  max-width: 58ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong,
.prose em {
  color: var(--text);
}

.prose.muted {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.label-est {
  font-size: 0.85em;
  color: var(--text-dim);
  font-weight: 400;
}

.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* —— Hero (full-bleed) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.88) 0%, rgba(5, 7, 11, 0.62) 42%, rgba(5, 7, 11, 0.28) 68%, rgba(5, 7, 11, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.55) 0%, transparent 28%, transparent 55%, rgba(5, 7, 11, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h, 64px) + 3rem);
  padding-bottom: 3.5rem;
}

.hero-copy {
  max-width: 38rem;
}

.hero .eyebrow {
  color: rgba(232, 237, 244, 0.72);
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  color: #f3f6fa;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero .lede {
  color: rgba(220, 228, 238, 0.88);
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

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

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(180, 192, 208, 0.7);
  letter-spacing: 0.02em;
  margin: 0 0 1.75rem;
}

.hero-offer {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  max-width: 34rem;
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(61, 214, 198, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hero-offer li {
  font-size: 0.88rem;
  color: rgba(220, 228, 238, 0.9);
  font-family: var(--font-mono);
}

.hero-offer li:first-child {
  flex: 1 1 100%;
  color: #f3f6fa;
  font-family: var(--font-sans, var(--font-body, inherit));
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-offer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180, 192, 208, 0.75);
  margin-bottom: 0.2rem;
}

@media (max-width: 700px) {
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: calc(var(--header-h, 64px) + 2rem);
    padding-bottom: 2.25rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.5) 0%, rgba(5, 7, 11, 0.35) 35%, rgba(5, 7, 11, 0.92) 100%);
  }
}

/* —— Product cards —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s var(--ease), background 0.2s;
}

.product-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.diff-note {
  margin: 2rem 0 0;
  padding: 1.15rem 1.35rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: none;
}

.diff-note strong {
  color: var(--text);
}

/* —— Technology —— */
.landscape-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.landscape-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.85rem;
}

.landscape-box ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.landscape-box li + li {
  margin-top: 0.65rem;
}

.landscape-box strong {
  color: var(--text);
}

.phase2-note {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 1.5rem;
}

.phase2-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.5rem;
}

.phase2-note h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.phase2-note p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.phase2-note strong {
  color: var(--text);
}

/* —— Roadmap —— */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: none;
}

@media (max-width: 900px) {
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .roadmap {
    grid-template-columns: 1fr;
  }
}

.roadmap-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.roadmap-step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.roadmap-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* —— Partners —— */
.partners-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

.ask-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ask-list li {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 2rem;
}

.contact-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.contact-card > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.contact-fine {
  margin: 1rem 0 0 !important;
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  font-family: var(--font-mono);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: #07090c;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.footer-tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}


/* —— Simple (hero-only) page —— */
.page-simple {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-simple .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(10, 12, 16, 0.35);
  border-bottom-color: transparent;
}

.page-simple main {
  flex: 1;
}

.page-simple .hero {
  min-height: 100vh;
  min-height: 100dvh;
}

.nav-menu-simple {
  display: flex !important;
}

.page-simple .nav-toggle {
  display: none !important;
}

.site-footer-simple {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
  background: transparent;
  border-top: none;
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.site-footer-simple .footer-inner {
  align-items: flex-end;
}

.site-footer-simple .footer-wordmark,
.site-footer-simple .footer-tag,
.site-footer-simple .footer-disclaimer {
  color: rgba(220, 228, 238, 0.75);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.site-footer-simple .footer-disclaimer {
  max-width: 28rem;
  font-size: 0.72rem;
}
