/* ============================================================
   OMNA — Marketing Site Stylesheet
   Visual language mirrors web/config_app/config_app.css
   ============================================================ */


/* === Base & Reset === */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f1a;
  color: #e0e0f0;
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: rgba(159, 18, 57, 0.3);
  color: #e0e0f0;
}


/* === Scrollbars === */

* {
  scrollbar-width: thin;
  scrollbar-color: #2a2a4a transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a2a4a;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a5a;
  border-color: transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: rgba(159, 18, 57, 0.53);
  border-color: transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}


/* === Typography === */

h1, h2, h3, h4, h5, h6, .subtitle {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1 {
  color: #9f1239;
  text-shadow: 0 0 3px rgba(255, 80, 110, 0.45), 0 0 14px rgba(220, 40, 80, 0.3);
  font-size: 2.5em;
}

h2 {
  color: #9f1239;
  text-shadow: 0 0 1px rgba(255, 80, 110, 0.15), 0 0 7px rgba(220, 40, 80, 0.12);
  font-size: 1.5em;
  margin-bottom: 0.75em;
}

h3 {
  color: #9f1239;
  text-shadow: 0 0 6px rgba(220, 40, 80, 0.2);
  font-size: 1.1em;
  margin-top: 1.1em;
  margin-bottom: 0.4em;
}

h1, h2, h3 {
  background-image: linear-gradient(
    100deg,
    #9f1239 0%,
    #9f1239 42%,
    #ffb0c0 50%,
    #9f1239 58%,
    #9f1239 100%
  );
  background-size: 220% auto;
  background-position: -60% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: omna-shimmer 10s ease-in-out infinite;
}

#overview      h2 { animation-delay: 0s;   }
#pattern-engine h2 { animation-delay: 1.3s; }
#moving-heads  h2 { animation-delay: 2.7s; }
#signal-path   h2 { animation-delay: 3.5s; }
#reactive      h2 { animation-delay: 4.9s; }
#architecture  h2 { animation-delay: 6.2s; }
#configuration h2 { animation-delay: 7.4s; }
#platform      h2 { animation-delay: 8.1s; }
#specs         h2 { animation-delay: 9.0s; }
#signup        h2 { animation-delay: 5.6s; }

h3:nth-of-type(4n+1) { animation-delay: 1.1s; }
h3:nth-of-type(4n+2) { animation-delay: 4.7s; }
h3:nth-of-type(4n+3) { animation-delay: 7.9s; }
h3:nth-of-type(4n)   { animation-delay: 3.3s; }

p {
  margin-bottom: 1em;
}

a {
  color: #9f1239;
  text-decoration: none;
  transition: text-shadow 0.2s;
}

a:hover {
  text-shadow: 0 0 8px rgba(255, 80, 110, 0.5);
}

strong {
  color: #e0e0f0;
}


/* === Layout === */

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: #1a1a2e;
}

.section-alt-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}


/* === Hero === */

.hero {
  text-align: center;
  padding: 75px 0 60px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  animation-duration: 5s;
}

@keyframes omna-shimmer {
  0%   { background-position: -60% 0; }
  55%  { background-position: 160% 0; }
  100% { background-position: 160% 0; }
}

@media (prefers-reduced-motion: reduce) {
  h1, h2, h3 {
    animation: none;
    background-position: -60% 0;
  }
}

.hero .subtitle {
  font-size: 11px;
  color: #7a7a9a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero .pitch {
  font-size: 18px;
  color: #c0c0e0;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero .cta-link {
  color: #9f1239;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(255, 80, 110, 0.35), 0 0 9px rgba(220, 40, 80, 0.25);
}

.hero .cta-link:hover {
  text-shadow: 0 0 3px rgba(255, 80, 110, 0.55), 0 0 13px rgba(220, 40, 80, 0.4);
}


/* === Tables === */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th {
  text-align: left;
  color: #9f1239;
  padding: 8px 12px;
  border-bottom: 2px solid #2a2a4a;
  font-weight: 600;
}

.spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #2a2a4a;
  color: #e0e0f0;
}

.spec-table tr:nth-child(even) td {
  background: #16162e;
}

.spec-table td:first-child {
  color: #7a7a9a;
  white-space: nowrap;
}

.spec-table .spec-section th {
  padding-top: 20px;
  border-bottom: 1px solid #3a3a5a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-table .spec-section:first-child th {
  padding-top: 8px;
}

.spec-subtitle {
  color: #7a7a9a;
  font-style: italic;
  margin-bottom: 1.5em;
}


/* === Image Placeholders === */

.placeholder {
  background: #1a1a2e;
  border: 2px dashed #2a2a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5a7a;
  font-size: 14px;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.placeholder-hero {
  aspect-ratio: 16 / 9;
  max-height: 400px;
}

.placeholder-screenshot {
  aspect-ratio: 4 / 3;
  max-height: 300px;
}

.placeholder-diagram {
  aspect-ratio: 1 / 1;
  max-height: 250px;
}

.section-alt .placeholder {
  background: #16162e;
}


/* === Email Signup Form === */

.signup-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 20px 0;
}

.signup-input {
  flex: 1;
  background: #1e1e36;
  color: #e0e0f0;
  border: 2px solid #3a3a5a;
  padding: 9px 14px;
  font-size: 15px;
  font-family: inherit;
}

.signup-input:focus {
  outline: none;
  border-color: #9f1239;
  box-shadow: 0 0 0 2px rgba(159, 18, 57, 0.15);
}

.signup-input::placeholder {
  color: #5a5a7a;
}

.signup-btn {
  background: #9f1239;
  color: #0f0f1a;
  border: 2px solid #9f1239;
  padding: 9px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 0 8px rgba(255, 80, 110, 0.3);
  transition: box-shadow 0.15s, background 0.15s;
}

.signup-btn:hover {
  box-shadow: 0 0 14px rgba(255, 80, 110, 0.55);
}


/* === Footer === */

.footer {
  padding: 40px 0;
  text-align: center;
  color: #5a5a7a;
  font-size: 13px;
  border-top: 1px solid #2a2a4a;
}

.footer a {
  color: #7a7a9a;
}

.footer a:hover {
  color: #9f1239;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}


/* === Responsive === */

@media (max-width: 600px) {
  .hero h1 { font-size: 2em; }
  .hero .pitch { font-size: 16px; }
  .section { padding: 38px 0; }
  .section-alt-inner { padding: 38px 20px; }
  .signup-form { flex-direction: column; }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 6px 8px; }
}
