/* Inter variable font loaded via viking-ui.css (self-hosted woff2) */

/* Tokens: design-tokens.css (synced from packages/deml-design-system) */
:root {
  --primary-color: var(--color-primary);
  --accent-color: var(--color-primary-container);
  --shadow-glow: 0 0 12px
    color-mix(in srgb, var(--viking-teal-600) 30%, transparent);
  --focus-offset: 4px;
  --color-amber: var(--viking-gold-500);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--viking-font-family, "Inter", ui-sans-serif, system-ui, sans-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.3s,
    color 0.3s;
  position: relative;
}

html[data-theme="light"] body {
  background-color: var(--bg-color);
}

main.main {
  min-height: 100vh;
  margin: 0 auto;
  padding: 5rem 1rem 2.5rem;
  max-width: var(--container-max-width, 1260px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
}

.content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Glassmorphism Card style */
.backend-card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 27px;
  padding: 3rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.backend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.logo {
  max-width: 100px;
  width: 100%;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

h1.title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
  text-transform: uppercase;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 auto 1.5rem auto;
  max-width: 720px;
  text-align: center;
  letter-spacing: 0.05em;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

/* Status Indicator Dot styling */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(51, 161, 253, 0.12);
  border: 1px solid rgba(51, 161, 253, 0.25);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 2.5rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background-color: var(--color-success);
  border-radius: 50%;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 161, 253, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(51, 161, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 161, 253, 0);
  }
}

.status-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-success);
  letter-spacing: 0.5px;
}

/* Interactive CTA group styling */
.cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.primary-btn {
  background-color: var(--primary-color);
  color: var(--viking-white-pure);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  box-shadow: var(--shadow-glow);
  background-color: var(--accent-color);
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-color);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

footer {
  margin-top: 5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.4px;
}

.footer-line {
  display: inline;
  text-align: center;
}

.copyright-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.copyright a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright a:hover,
.copyright a:focus-visible {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  main.main {
    padding: 5.5rem 2rem;
  }
  .backend-card {
    padding: 4rem 3rem;
  }
}

.footer-compliance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.4px;
  margin-top: 0.75rem;
}

.footer-compliance a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-compliance a:hover,
.footer-compliance a:focus-visible {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.usa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(45, 71, 57, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.usa-badge:hover {
  background-color: rgba(45, 71, 57, 0.1);
  border-color: var(--text-color);
}

.usa-badge .usa-badge-icon {
  font-size: 1rem;
  line-height: 1;
}

.footer-badge-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .copyright,
  .footer-compliance {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
  }

  .footer-line {
    display: inline-block;
  }

  .copyright-text {
    display: inline-block;
  }

  .copyright-text span {
    display: inline;
    margin-right: 0.25rem;
  }

  .copyright-text span:last-child {
    margin-right: 0;
  }

  .copyright .footer-line:not(:last-child)::after,
  .footer-compliance .footer-line:not(:last-child)::after {
    content: "|";
    margin-left: 0.8rem;
    color: var(--border);
    opacity: 0.7;
  }
}

/* Mega Footer Styles */
.mega-footer {
  margin-top: 3rem;
  padding: 2.5rem 1rem 1.5rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border);
  color: var(--text-color);
}

@media (min-width: 768px) {
  .mega-footer {
    margin-top: 5rem;
    padding: 4rem 2rem 2rem;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--text-color);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.footer-compliance-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.copyright-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.copyright-info a {
  color: var(--text-color);
  text-decoration: none;
}

.copyright-info a:hover {
  text-decoration: underline;
}

.footer-separator {
  display: none;
}

@media (min-width: 768px) {
  .footer-compliance-row {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .copyright-info {
    flex-direction: row;
  }

  .footer-separator {
    display: inline;
    margin: 0 0.5rem;
    color: var(--border);
  }
}

/* Extracted Inline Styles */
.u-style-94ea73 {
  width: 20px;
  height: 20px;
  display: none;
}
.u-style-4b23f2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Extracted Inline Styles */
.u-style-94ea73 {
  width: 20px;
  height: 20px;
  display: none;
}
.u-style-4b23f2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Extracted Inline Styles */
.u-style-94ea73 {
  width: 20px;
  height: 20px;
  display: none;
}

/* Simplified Hero Section */
.hero-section {
  width: 100%;
  max-width: 896px;
  margin: 0 auto 3rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 1000px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-success);
  margin-right: 9px;
  flex-shrink: 0;
}

.badge-text {
  font-size: var(--base-font-size);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

/* Bento Features Grid */
.bento-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  width: 100%;
  max-width: var(--container-max-width);
  margin: 2rem auto;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  color: var(--color-primary);
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.feature-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
