/* ============================================================
   OmniaChron — V1 Website Stylesheet
   Static HTML/CSS only. No frameworks. No build step.
   ============================================================ */

/* --- Tokens --- */

:root {
  /* Backgrounds */
  --oc-obsidian: #0A0A0B;
  --oc-deep-graphite: #111114;
  --oc-surface: #16161A;
  --oc-surface-2: #1C1C22;
  --oc-gunmetal: #2C2C34;
  --oc-border: #222228;

  /* Silver text scale */
  --oc-whisper: #6E6F73;
  --oc-smoked: #8B8C90;
  --oc-core-silver: #A8A9AD;
  --oc-pale-steel: #D4D5D9;

  /* Accent */
  --oc-ice: #B8D4E3;
  --oc-ice-dim: rgba(184, 212, 227, 0.15);
  --oc-ice-ghost: rgba(184, 212, 227, 0.06);

  /* Symbol band colors (depth rendering) */
  --oc-band-6: #5A5B60;
  --oc-band-5: #63646A;
  --oc-band-4: #6E6F75;
  --oc-band-3: #7A7B82;
  --oc-band-2: #878890;
  --oc-band-1: #93949C;
  --oc-core: #A8A9AD;

  /* Layout */
  --oc-max-width: 1200px;
  --oc-page-pad: 48px;
  --oc-page-pad-mobile: 24px;
  --oc-body-max: 640px;
}


/* --- Reset & Base --- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--oc-smoked);
  background-color: var(--oc-obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--oc-pale-steel);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  list-style: none;
}


/* --- Layout --- */

.page-container {
  max-width: var(--oc-max-width);
  margin: 0 auto;
  padding: 0 var(--oc-page-pad);
}

@media (max-width: 767px) {
  .page-container {
    padding: 0 var(--oc-page-pad-mobile);
  }
}


/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--oc-pale-steel);
  line-height: 1.3;
}

h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

p {
  max-width: var(--oc-body-max);
}

.body-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--oc-smoked);
}

.small-body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--oc-smoked);
}

.section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--oc-ice);
  margin-bottom: 16px;
}

.caption {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oc-whisper);
}


/* --- Navigation --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--oc-obsidian);
  border-bottom: 1px solid var(--oc-border);
}

.site-nav .page-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.nav-logo svg {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
}

.nav-logo .wordmark {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--oc-pale-steel);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--oc-pale-steel);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links a.active {
  color: var(--oc-ice);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--oc-pale-steel);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 767px) {
  .site-nav .page-container {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: calc(-1 * var(--oc-page-pad-mobile));
    right: calc(-1 * var(--oc-page-pad-mobile));
    background-color: var(--oc-obsidian);
    border-bottom: 1px solid var(--oc-border);
    flex-direction: column;
    padding: 24px var(--oc-page-pad-mobile);
    gap: 20px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }
}


/* --- Hero --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  text-align: center;
  padding: 80px var(--oc-page-pad) 100px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--oc-ice-ghost) 0%, transparent 70%);
  pointer-events: none;
}

.hero-symbol {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  animation: fadeUp 1s ease-out both;
}

.hero-wordmark {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--oc-pale-steel);
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeUp 1s ease-out 0.15s both;
}

.hero-tagline {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--oc-whisper);
  margin-bottom: 48px;
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--oc-smoked);
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeUp 1s ease-out 0.45s both;
}

.hero-cta {
  animation: fadeUp 1s ease-out 0.6s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-symbol,
  .hero-wordmark,
  .hero-tagline,
  .hero-description,
  .hero-cta {
    animation: none;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 60px var(--oc-page-pad-mobile) 80px;
    min-height: calc(100vh - 64px);
  }

  .hero-wordmark {
    font-size: 36px;
  }

  .hero-symbol {
    width: 64px;
    height: 64px;
  }

  .hero-glow {
    width: 280px;
    height: 280px;
  }
}


/* --- Sections --- */

.section {
  padding: 100px 0 80px;
  border-top: 1px solid var(--oc-border);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-top: 0;
}

.section-header p {
  margin-top: 16px;
}

.section-centered {
  text-align: center;
}

.section-centered p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0 48px;
  }
}


/* --- Cards --- */

.card {
  background: var(--oc-surface);
  border-radius: 14px;
  padding: 40px;
}

.card-bordered {
  background: var(--oc-deep-graphite);
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  padding: 40px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  max-width: none;
}


/* --- Feature Grid --- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Buttons --- */

.btn-primary {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--oc-obsidian);
  background: var(--oc-pale-steel);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--oc-pale-steel);
  background: transparent;
  border: 1px solid var(--oc-border);
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--oc-whisper);
}


/* --- Trust Strip --- */

.trust-strip {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--oc-border);
}

.trust-strip p {
  margin: 0 auto;
  font-size: 14px;
  color: var(--oc-whisper);
}

.trust-strip a {
  color: var(--oc-ice);
}


/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--oc-border);
  padding: 48px 0 40px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  shape-rendering: geometricPrecision;
}

.footer-logo .wordmark {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--oc-pale-steel);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--oc-smoked);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--oc-pale-steel);
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  font-size: 12px;
  color: var(--oc-whisper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--oc-smoked);
}

.footer-copy {
  font-size: 12px;
  color: var(--oc-whisper);
}


/* --- Page Content (inner pages) --- */

.page-hero {
  padding: 80px 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.page-hero p {
  margin: 0 auto;
  color: var(--oc-smoked);
}

.page-body {
  padding: 0 0 80px;
}

.page-body h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p {
  margin-bottom: 16px;
  max-width: none;
}

.page-body ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.page-body ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--oc-smoked);
}

.page-body a {
  color: var(--oc-ice);
}

.page-body a:hover {
  opacity: 0.8;
}


/* --- Contact Info Block --- */

.contact-block {
  margin: 32px 0;
}

.contact-block dt {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oc-whisper);
  margin-bottom: 6px;
  margin-top: 24px;
}

.contact-block dt:first-child {
  margin-top: 0;
}

.contact-block dd {
  font-size: 15px;
  color: var(--oc-pale-steel);
}

.contact-block dd a {
  color: var(--oc-ice);
}


/* --- Legal Pages --- */

.legal-meta {
  font-size: 13px;
  color: var(--oc-whisper);
  margin-bottom: 40px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--oc-border);
  border-radius: 8px;
}

.legal-meta p {
  margin-bottom: 4px;
}

.legal-meta p:last-child {
  margin-bottom: 0;
}

.legal-meta strong {
  color: var(--oc-smoked);
}

.page-body h2 + p {
  margin-top: 0;
}

.page-body ul {
  margin-top: 12px;
  margin-bottom: 24px;
}


/* --- FAQ --- */

.faq-list {
  margin-top: 32px;
}

.faq-item {
  border-top: 1px solid var(--oc-border);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--oc-border);
}

.faq-question {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--oc-pale-steel);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: var(--oc-smoked);
}

.faq-answer a {
  color: var(--oc-ice);
}


/* --- Screenshot Container --- */

.screenshot-area {
  margin: 48px 0;
  text-align: center;
}

.screenshot-area img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.screenshot-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
  justify-content: center;
}

.screenshot-scroll img {
  flex-shrink: 0;
  width: 260px;
  border-radius: 16px;
  scroll-snap-align: start;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .screenshot-scroll {
    justify-content: flex-start;
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* --- Utility --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
