:root {
  color-scheme: light;
  --color-background: #f4f6fb;
  --color-surface: #ffffff;
  --color-primary: #1f4d8f;
  --color-primary-accent: #2f7dd1;
  --color-primary-soft: #e1ecff;
  --color-accent: #f5ac42;
  --color-text: #1b2a41;
  --color-text-muted: #4c5c74;
  --shadow-soft: 0 25px 60px -35px rgba(23, 52, 92, 0.45);
  --shadow-card: 0 20px 45px -30px rgba(26, 46, 73, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34, 72, 118, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(11%) sepia(20%) saturate(2084%) hue-rotate(183deg) brightness(95%) contrast(95%);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-primary-accent);
}

.hero {
  padding: var(--space-xl) 0;
  background: radial-gradient(
      circle at top left,
      rgba(47, 125, 209, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(245, 172, 66, 0.22),
      transparent 50%
    ),
    linear-gradient(135deg, #0b1f37 0%, #142f54 35%, #1f4d8f 70%, #2f7dd1 100%);
  color: #f7faff;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: "Source Serif 4", "Source Serif Pro", serif;
}

.hero p {
  margin-bottom: var(--space-md);
  color: rgba(247, 250, 255, 0.92);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--color-accent);
  color: #0b1f37;
  box-shadow: 0 12px 20px -10px rgba(245, 172, 66, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px -18px rgba(245, 172, 66, 0.8);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #f7faff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn.inline {
  padding: 0.6rem 1.2rem;
  background: rgba(31, 77, 143, 0.15);
  color: inherit;
}

.btn.text {
  padding: 0;
  color: var(--color-primary);
}

.btn.text:hover {
  transform: none;
  text-decoration: underline;
}

.hero-card {
  background: rgba(11, 31, 55, 0.36);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 35px 60px -45px rgba(3, 6, 10, 0.85);
  backdrop-filter: blur(12px);
}

.hero-card h2 {
  font-family: "Source Serif 4", serif;
  font-size: 1.9rem;
  margin: 0.2rem 0 0.8rem;
}

.hero-card p {
  color: rgba(241, 245, 255, 0.85);
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 1.2rem 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.hero-card li + li {
  margin-top: 0.4rem;
}

.card-header {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 172, 66, 0.85);
}

section {
  padding: var(--space-xl) 0;
}

.products header,
.roadmap header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--space-lg);
}

.products h2,
.mission h2,
.roadmap h2,
.cta h2 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2rem, 3.3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.products p,
.roadmap p {
  color: var(--color-text-muted);
}

.product-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.product-logo img {
  max-width: 120px;
  height: auto;
}

.product-card h3 {
  font-family: "Source Serif 4", serif;
  font-size: 1.6rem;
}

.product-card ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 1rem;
  color: var(--color-text-muted);
}

.product-card li + li {
  margin-top: 0.3rem;
}

.status {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  align-self: flex-start;
}

.status.live {
  background: rgba(47, 125, 209, 0.12);
  color: var(--color-primary);
}

.status.beta {
  background: rgba(245, 172, 66, 0.16);
  color: #b06c00;
}

.status.concept {
  background: rgba(71, 182, 164, 0.16);
  color: #1c6f63;
}

.mission {
  background: linear-gradient(
    135deg,
    rgba(31, 77, 143, 0.06),
    rgba(11, 31, 55, 0.04)
  );
}

.mission-content {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.pillars article {
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 18px 40px -32px rgba(26, 46, 73, 0.65);
}

.pillars h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.roadmap {
  background: var(--color-surface);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.timeline li {
  background: rgba(244, 246, 251, 0.6);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 45px -35px rgba(26, 46, 73, 0.45);
}

.timeline .date {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.timeline h3 {
  margin: 0.4rem 0;
  font-family: "Source Serif 4", serif;
}

.newsletter {
  background: var(--color-surface);
  border-top: 1px solid rgba(31, 77, 143, 0.1);
}

.newsletter-card {
  background: linear-gradient(
    135deg,
    rgba(47, 125, 209, 0.06),
    rgba(245, 172, 66, 0.06)
  );
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--space-md);
  border: 1px solid rgba(31, 77, 143, 0.08);
}

.newsletter-card header {
  display: grid;
  gap: 0.5rem;
  max-width: 58ch;
}

.newsletter-form {
  display: grid;
  gap: var(--space-sm);
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-fields input {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 77, 143, 0.2);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: rgba(244, 246, 251, 0.6);
}

.newsletter-fields input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 125, 209, 0.2);
}

.newsletter-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .newsletter-fields {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-fields input {
    flex: 1;
  }
}

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

.cta {
  text-align: center;
  background: linear-gradient(
    135deg,
    #1f4d8f,
    #0f2749
  );
  color: #f6f8ff;
  box-shadow: 0 -2px 20px rgba(31, 77, 143, 0.15);
}

.cta p {
  max-width: 52ch;
  margin: 0.5rem auto var(--space-md);
  color: rgba(246, 248, 255, 0.85);
}

.site-footer {
  background: #0b1f37;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .container {
  padding: var(--space-xl) 0 var(--space-lg);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 2fr repeat(3, 1fr);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-logo strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.25rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-note a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-note a:hover {
  color: rgba(255, 255, 255, 1);
}

.visitor-counter {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.visitor-counter .counter-display {
  font-weight: 600;
  color: var(--color-accent);
  font-family: 'Courier New', monospace;
  margin-left: 0.25rem;
}

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 12;
}

.hamburger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  transition: transform 0.3s ease;
}

.hamburger-icon::before {
  top: -7px;
}

.hamburger-icon::after {
  top: 7px;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 720px) {
  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(34, 72, 118, 0.06);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 10px 25px rgba(26, 46, 73, 0.1);
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(34, 72, 118, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding-top: calc(var(--space-xl) + 1.5rem);
  }

  .hero-card {
    padding: var(--space-md);
  }
}

/* Messages */
.message {
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.message.fade-out {
  opacity: 0;
}

/* Content Section Styles */
.content-section {
  line-height: 1.8;
  font-size: 1.1rem;
}

.content-section h2 {
  margin-top: 3rem;
  font-size: 1.75rem;
  font-family: "Source Serif 4", serif;
  color: var(--color-text);
}

.content-section h2:first-child {
  margin-top: 2rem;
}

.content-section a {
  color: var(--color-primary-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.content-section a:hover {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
}

.quote-block {
  background: var(--color-background);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  border: 1px solid rgba(31, 77, 143, 0.08);
}

.quote-text {
  font-style: italic;
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text);
}

.quote-attribution {
  margin: 0.5rem 0 0 0;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Page Layout Styles */
.hero-sm {
  padding: 3rem 0;
}

.hero-about {
  padding: 4rem 0;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.hero-about .container {
  display: block;
  text-align: center;
}

.hero-about h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 1rem;
}

.hero-center {
  text-align: center;
}

.last-updated {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.content-page {
  padding: 4rem 0;
  background: var(--color-background);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn.ghost-alt {
  background: rgba(31, 77, 143, 0.12);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn.ghost-alt:hover {
  background: rgba(31, 77, 143, 0.2);
}

/* Legal Content Styles */
.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-family: "Source Serif 4", serif;
  color: var(--color-text);
}

.legal-content ul {
  margin-left: 2rem;
  margin-top: 1rem;
}

.legal-content .contact-info {
  margin-left: 2rem;
  margin-top: 1rem;
}

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