/* ==========================================================================
   YOWO AI Official Website — Core Stylesheet (v1.1.0 mono-black)
   Swiss Grid Architecture & Movie-Grade Minimalist Aesthetic
   ========================================================================== */

/* ---------- 1. Reset & Global Box Sizing ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--yowo-bg, #0E0E0D);
  color: var(--yowo-fg, #EFECE4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--yowo-bg, #0E0E0D);
  color: var(--yowo-fg, #EFECE4);
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

p, h1, h2, h3, h4, h5, h6, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--yowo-radius-none, 0px);
}

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

button, summary, a {
  -webkit-tap-highlight-color: transparent;
}

button, summary {
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
}

/* Open-Plane tiered tactile radius defaults */
button, input, textarea, select {
  border-radius: var(--yowo-button-radius, var(--yowo-radius-sm, 6px));
}
.yowo-card, .yw-card {
  border-radius: var(--yowo-card-radius, var(--yowo-radius-md, 10px));
}

/* Strictly zero box-shadow or text-shadow or decorative glow */
*, *::before, *::after {
  text-shadow: none !important;
}

/* ---------- 2. Accessibility & Focus Visible ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--yowo-fg, #EFECE4);
  color: var(--yowo-bg, #0E0E0D);
  padding: 8px 16px;
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  border-radius: var(--yowo-radius-none, 0px);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--yowo-focus, #E47B52);
  outline-offset: 2px;
}

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

:focus-visible {
  outline: 2px solid var(--yowo-focus, #E47B52);
  outline-offset: 2px;
}

main:focus-visible {
  outline: none !important;
}

/* Reduced motion safeguards */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 3. Typography Styles (13 Named Steps) ---------- */
.yowo-type-display-xl {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.yowo-type-display-l {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.yowo-type-display-m {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.yowo-type-title-l {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

.yowo-type-title-m {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.yowo-type-title-s {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(24px, 4.5vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.yowo-type-heading-l {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.yowo-type-heading-m {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(19px, 3.5vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0em;
}

.yowo-type-heading-s {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0em;
}

.yowo-type-body {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0em;
}

.yowo-type-body-s {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0em;
}

.yowo-type-label {
  font-family: var(--yowo-font-family-mono, "Recursive", monospace);
  font-variation-settings: var(--yowo-font-mono-variation, "MONO" 1, "CASL" 0);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yowo-type-label-s {
  font-family: var(--yowo-font-family-mono, "Recursive", monospace);
  font-variation-settings: var(--yowo-font-mono-variation, "MONO" 1, "CASL" 0);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 4. Swiss Grid & Container Tokens ---------- */
.yowo-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--yowo-space-16, 64px);
}

@media (max-width: 1024px) {
  .yowo-container {
    padding-inline: var(--yowo-space-6, 24px);
  }
}

@media (max-width: 768px) {
  .yowo-container {
    padding-inline: var(--yowo-space-4, 16px);
  }
}

.yowo-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--yowo-space-6, 24px);
  row-gap: var(--yowo-space-6, 24px);
}

.yowo-section {
  border-bottom: 1px solid var(--yowo-line, #2E2D2A);
  padding-block: var(--yowo-space-16, 64px);
}

@media (max-width: 768px) {
  .yowo-section {
    padding-block: var(--yowo-space-10, 40px);
  }
}

/* ---------- 5. Button Components ---------- */
.yowo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: var(--yowo-space-5, 20px);
  background-color: var(--yowo-fg, #EFECE4);
  color: var(--yowo-bg, #0E0E0D);
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 0;
  border-radius: var(--yowo-button-radius, var(--yowo-radius-sm, 6px));
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--yowo-motion-duration-fast, 120ms) var(--yowo-motion-ease-standard, ease);
}

.yowo-btn-primary:hover {
  background-color: #FFFFFF;
}

.yowo-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: var(--yowo-space-5, 20px);
  background-color: transparent;
  color: var(--yowo-fg, #EDE8DC);
  border: 1px solid var(--yowo-border-strong, #8A867D);
  border-radius: var(--yowo-button-radius, var(--yowo-radius-sm, 6px));
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--yowo-motion-duration-fast, 120ms) var(--yowo-motion-ease-standard, ease),
              background-color var(--yowo-motion-duration-fast, 120ms) var(--yowo-motion-ease-standard, ease);
}

.yowo-btn-secondary:hover {
  border-color: var(--yowo-fg, #EDE8DC);
  background-color: var(--yowo-surface, #1A1A18);
}

/* SVG icon standard */
.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  stroke: currentColor;
  vertical-align: -0.125em;
  pointer-events: none;
}

/* ---------- 6. Site Header Component ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--yowo-bg, #0E0E0D);
  border-bottom: 1px solid var(--yowo-line-solid, #2B2A27);
  width: 100%;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  --logo-h: 24px;
  padding: 8px 0;
  margin-bottom: calc(-1 * var(--logo-h) * 65 / 186);
}

.brand-logo-img {
  width: 114px;
  height: 24px;
  min-width: 96px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--yowo-space-8, 32px);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
}

.site-nav-link {
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--yowo-muted, #8A867D);
  text-decoration: none;
  padding-block: 8px;
  position: relative;
  transition: color var(--yowo-motion-duration-fast, 120ms) ease;
}

.site-nav-link:hover {
  color: var(--yowo-fg, #EDE8DC);
}

.site-nav-link.is-active,
.site-nav-link[aria-current="page"] {
  color: var(--yowo-fg, #EFECE4);
  border-bottom: 2px solid var(--yowo-accent-strong, #E47B52);
}

.site-nav-cta {
  height: 40px;
  padding-inline: 18px;
  margin-left: var(--yowo-space-4, 16px);
}

/* Small-screen navigation drawer */
.nav-drawer {
  display: none;
  position: relative;
}

@media (max-width: 768px) {
  .nav-drawer {
    display: block;
  }
}

.nav-drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background-color: var(--yowo-surface, #1A1A18);
  border: 1px solid var(--yowo-line, #2E2D2A);
  color: var(--yowo-fg, #EDE8DC);
  cursor: pointer;
  list-style: none;
  border-radius: var(--yowo-button-radius, var(--yowo-radius-sm, 6px));
}

.nav-drawer-toggle::-webkit-details-marker {
  display: none;
}

.nav-drawer-toggle .ui-icon {
  width: 14px;
  height: 14px;
}

.nav-drawer[open] .nav-drawer-toggle {
  border-color: var(--yowo-border-strong, #8A867D);
}

.nav-drawer-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background-color: var(--yowo-surface, #1A1A18);
  border: 1px solid var(--yowo-line, #2E2D2A);
  display: flex;
  flex-direction: column;
  padding: var(--yowo-space-3, 12px) 0;
  z-index: 1001;
}

.nav-drawer-link {
  padding: 10px 16px;
  font-family: var(--yowo-font-family-sans, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--yowo-muted, #8A867D);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--yowo-motion-duration-fast, 120ms) ease;
}

.nav-drawer-link:hover {
  color: var(--yowo-fg, #EDE8DC);
  background-color: var(--yowo-bg, #0E0E0D);
}

.nav-drawer-link.is-active,
.nav-drawer-link[aria-current="page"] {
  color: var(--yowo-fg, #EDE8DC);
  border-left-color: var(--yowo-fg, #EDE8DC);
  background-color: var(--yowo-bg, #0E0E0D);
}

.nav-drawer-cta {
  margin-top: 8px;
  border-top: 1px solid var(--yowo-line, #2E2D2A);
  padding-top: 12px;
  font-weight: 600;
  color: var(--yowo-fg, #EDE8DC);
}

/* ---------- 7. Site Footer Component ---------- */
.site-footer {
  background-color: var(--yowo-bg, #0E0E0D);
  border-top: 1px solid var(--yowo-line, #2E2D2A);
  padding-top: var(--yowo-space-16, 64px);
  padding-bottom: var(--yowo-space-12, 48px);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--yowo-space-10, 40px);
  margin-bottom: var(--yowo-space-12, 48px);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--yowo-space-8, 32px);
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--yowo-space-4, 16px);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  --logo-h: 24px;
  margin-bottom: calc(-1 * var(--logo-h) * 65 / 186);
}

.footer-logo-img {
  width: 114px;
  height: 24px;
  min-width: 96px;
  display: block;
}

.footer-tagline {
  color: var(--yowo-fg, #EDE8DC);
  font-weight: 700;
}

.footer-sub {
  color: var(--yowo-muted, #8A867D);
}

.footer-col-label {
  color: var(--yowo-muted, #8A867D);
  margin-bottom: var(--yowo-space-4, 16px);
  display: block;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--yowo-space-3, 12px);
}

.footer-nav a,
.footer-social a {
  color: var(--yowo-muted, #8A867D);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--yowo-motion-duration-fast, 120ms) ease;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--yowo-fg, #EDE8DC);
}

.footer-bottom {
  border-top: 1px solid var(--yowo-line, #2E2D2A);
  padding-top: var(--yowo-space-6, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--yowo-space-4, 16px);
  color: var(--yowo-muted, #8A867D);
}

/* ---------- 8. Compatibility Route Sections ---------- */
.compat-section {
  padding-block: clamp(60px, 12vh, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compat-card {
  background-color: var(--yowo-surface, #171715);
  border: 1px solid var(--yowo-line, rgba(239, 236, 228, 0.09));
  border-radius: var(--yowo-card-radius, var(--yowo-radius-md, 10px));
  box-shadow: var(--yowo-shadow-sm);
  padding: var(--yowo-space-10, 40px);
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--yowo-space-4, 16px);
}

.compat-card .yowo-type-label {
  color: var(--yowo-muted, #8A867D);
}

.compat-card p {
  color: var(--yowo-muted, #8A867D);
}

/* ==========================================================================
   YOWO UI v2.2 Open-Plane Additions
   ========================================================================== */
.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.yowo-btn-secondary {
  border-color: var(--yowo-line-solid, #2B2A27);
  color: var(--yowo-fg, #EFECE4);
  background-color: transparent;
}

.yowo-btn-secondary:hover {
  background-color: var(--yowo-fill-hover, rgba(239, 236, 228, 0.075));
  border-color: var(--yowo-border-strong, rgba(239, 236, 228, 0.22));
}

.site-nav-cta.yw-btn {
  min-height: 36px;
  height: 38px;
  padding-inline: var(--yowo-space-4, 16px);
  border-radius: var(--yowo-button-radius, var(--yowo-radius-xs, 4px));
  font-weight: 600;
}

.nav-drawer-toggle.yw-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  background-color: var(--yowo-surface, #171715);
  border: 1px solid var(--yowo-line-solid, #2B2A27);
  color: var(--yowo-fg, #EFECE4);
}

.nav-drawer-panel.yw-popover {
  background-color: var(--yowo-surface-raised, #21201D);
  border: 1px solid var(--yowo-line-solid, #2B2A27);
  border-radius: var(--yowo-popover-radius, var(--yowo-radius-md, 10px));
  box-shadow: var(--yowo-shadow-float);
  padding: 6px;
}

.nav-drawer[open] .nav-drawer-panel.yw-popover {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--yowo-motion-duration-fast, 120ms) var(--yowo-motion-ease-swing, ease-out),
    transform var(--yowo-motion-duration-fast, 120ms) var(--yowo-motion-ease-swing, ease-out),
    display var(--yowo-motion-duration-fast, 120ms) allow-discrete;
}

@starting-style {
  .nav-drawer[open] .nav-drawer-panel.yw-popover {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.nav-drawer-link {
  border-radius: var(--yowo-radius-sm, 6px);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--yowo-muted, #969086);
  background-color: transparent;
}

.nav-drawer-link:hover,
.nav-drawer-link.is-active,
.nav-drawer-link[aria-current="page"] {
  background-color: var(--yowo-fill-hover, rgba(239, 236, 228, 0.075));
  color: var(--yowo-fg, #EFECE4);
}

.site-footer {
  border-top-color: var(--yowo-line, rgba(239, 236, 228, 0.09));
}

.footer-legal {
  color: var(--yowo-muted, #969086);
}

@media (max-width: 768px) {
  .nav-drawer-toggle.yw-btn,
  .nav-drawer-toggle,
  .site-nav-cta.yw-btn,
  .site-nav-cta,
  .yowo-btn-primary,
  .yowo-btn-secondary,
  .yw-btn {
    min-height: 44px;
  }

  .nav-drawer-toggle.yw-btn,
  .nav-drawer-toggle {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }
}
