/* =========================================================
   Syntrael — Design System
   Dark charcoal/black · metallic silver/platinum · electric-blue accents
   ========================================================= */

:root {
  /* Core palette */
  --color-bg: #0a0b0d;
  --color-bg-alt: #0f1114;
  --color-surface: #15171b;
  --color-surface-2: #1b1e23;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);

  --color-silver: #c9ced6;
  --color-silver-bright: #eef0f3;
  --color-platinum: #a9afb9;
  --color-text: #e7e9ec;
  --color-text-muted: #9aa0aa;
  --color-text-secondary: #b6bcc6;
  --color-text-dim: #6b7078;

  --color-accent: #3d8bff;
  --color-accent-bright: #6ba8ff;
  --color-accent-dim: #245ab0;
  --color-accent-glow: rgba(61, 139, 255, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px var(--color-accent-glow);

  --container-width: 1180px;

  --transition-fast: 160ms ease;
  --transition-med: 280ms ease;
}

/* -----------------------------
   Reset & base
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-silver-bright);
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-bright);
  margin: 0 0 0.75em;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* -----------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
              background-color 220ms ease,
              border-color 220ms ease,
              color 220ms ease,
              opacity 220ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.35), 0 0 0 1px var(--color-accent-bright);
}

/* Primary — visually dominant CTA */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(61, 139, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(61, 139, 255, 0.42);
}

/* Secondary — muted ghost style, clearly subordinate to primary */
.btn-secondary {
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  border-color: var(--color-border);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: rgba(61, 139, 255, 0.45);
  color: var(--color-accent-bright);
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.12), 0 6px 20px rgba(61, 139, 255, 0.12);
}

.btn-small {
  padding: 0.6em 1.3em;
  font-size: 0.85rem;
}

/* -----------------------------
   Header
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.primary-nav ul {
  display: flex;
  gap: 2rem;
}

.primary-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.primary-nav a:not(.btn):hover {
  color: var(--color-silver-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-silver-bright);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* -----------------------------
   Hero
------------------------------ */
.hero {
  position: relative;
  padding: 7.5rem 0 6.5rem;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

/* Faint technology grid, masked to a soft radial falloff so it stays understated */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 32%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 32%, black 0%, transparent 72%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 140vw;
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 84px;
  width: auto;
  margin-bottom: 2.75rem;
  image-rendering: -webkit-optimize-contrast;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin-bottom: 0.7em;
  background: linear-gradient(135deg, var(--color-silver-bright) 20%, var(--color-platinum) 55%, var(--color-accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .line {
  display: block;
}

.hero-subtext {
  max-width: 620px;
  font-size: 1.15rem;
  line-height: 1.7;
  letter-spacing: 0.001em;
  color: var(--color-text-secondary);
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* -----------------------------
   Sections
------------------------------ */
.section {
  padding: 6rem 0;
  scroll-margin-top: 84px;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  max-width: 24ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 2.25rem;
}

/* -----------------------------
   Products
------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

.product-card {
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 260ms ease,
              box-shadow 260ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

.product-card-featured {
  border-color: rgba(61, 139, 255, 0.32);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(61, 139, 255, 0.16);
}

.product-card-featured:hover {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 30px rgba(61, 139, 255, 0.22);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.product-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.product-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
  border: 1px solid var(--color-border-strong);
}

.badge-progress {
  background: rgba(61, 139, 255, 0.14);
  color: var(--color-accent-bright);
  border: 1px solid rgba(61, 139, 255, 0.4);
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent-bright);
  transition: color var(--transition-fast);
}

.card-link:hover {
  color: #fff;
}

/* -----------------------------
   Markets teaser
------------------------------ */
.markets-section {
  background: radial-gradient(circle at 85% 20%, rgba(61, 139, 255, 0.08), transparent 55%), var(--color-bg);
}

.markets-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 1.75rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: var(--color-text);
}

.feature-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  border-left: 2px solid var(--color-border-strong);
  padding-left: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.markets-panel {
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.panel-row-head {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.7;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.panel-chart {
  padding: 24px 18px 8px;
}

.panel-chart svg {
  width: 100%;
  height: 140px;
}

.panel-chart polyline {
  fill: none;
  stroke: var(--color-accent-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--color-accent-glow));
}

.panel-row-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
}

.stat-block {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--color-border);
}

.stat-block:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
}

.stat-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-accent-bright);
}

/* -----------------------------
   Early access
------------------------------ */
.early-access {
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.early-access-inner {
  max-width: 620px;
}

.early-access .eyebrow,
.early-access h2,
.early-access .lead {
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  margin-top: 2.5rem;
}

.signup-field {
  display: flex;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}

.signup-field input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.signup-field input[type="email"]:focus {
  outline: none;
}

.signup-field input[type="email"]::placeholder {
  color: var(--color-text-dim);
}

.signup-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.signup-note.is-success {
  color: var(--color-accent-bright);
}

.signup-note.is-error {
  color: #ff8a80;
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  background: var(--color-bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.85;
}

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

.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent-bright);
}

/* -----------------------------
   Simple content pages (legal)
------------------------------ */
.legal-page {
  padding: 4rem 0 6rem;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.3em;
}

.legal-page .updated {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1em;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--color-accent-bright);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .markets-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .markets-visual {
    order: -1;
  }
}

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 24px 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-med), opacity var(--transition-med);
  }

  .primary-nav.is-open {
    max-height: 400px;
    opacity: 1;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav ul li a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav .btn {
    margin-top: 1rem;
    width: 100%;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .signup-field {
    flex-direction: column;
  }

  .signup-field .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    height: 48px;
  }

  .brand-logo {
    height: 28px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
