/* ============================================================
   D2C Base Styles — base.css
   Modern Reset, Accessible Defaults, & Fluid Layout Utilities
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-page-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Accessibility: Visible Focus Indicators (keyboard only) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Suppress outline on mouse/touch interactions for links & buttons */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link for screen readers and keyboard users */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-surface);
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-out-smooth);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Page Outer Frame Wrapper */
.page_wrapper {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 100%;
}

/* Hero Card enclosing Header, Content, and Ticker */
.hero_card {
  position: relative;
  width: calc(100% - 8px);
  margin: 4px auto 24px;
  max-width: var(--hero-card-max-width);
  height: calc(100vh - 8px);
  height: calc(100dvh - 8px);
  min-height: 520px;
  border-radius: 16px;
  border: 1px solid var(--color-card-border);
  background-color: var(--color-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 0;
}

@media (min-width: 768px) {
  .hero_card {
    width: calc(100% - 24px);
    margin: 12px auto 40px;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    min-height: 560px;
    max-height: 960px;
    border-radius: var(--hero-card-radius);
    border: 1px solid var(--color-card-border);
    padding-block: 0;
  }
}

/* Exact Figma Background Layers */
.hero_card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero_card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.01);
  background-color: #FFFFFF03;
  backdrop-filter: blur(84px);
  -webkit-backdrop-filter: blur(84px);
  z-index: 1;
  pointer-events: none;
}

.hero_card-ellipse {
  position: absolute;
  left: 50%;
  top: -976px;
  transform: translateX(-50%);
  width: 2017.213px;
  height: 1660.262px;
  border-radius: 2017.213px;
  background: #FFFFFF;
  filter: blur(286px);
  -webkit-filter: blur(286px);
  z-index: 1;
  pointer-events: none;
}