/* P-006 Qwen3.5-122 Website — Design System */
/* src_DESIGN.md + UX-SPECS.md compliant */

/* ==================== CSS Custom Properties ==================== */
:root {
  /* Colors */
  --color-accent-primary: #147d89;
  --color-accent-primary-subtle: rgba(20, 125, 137, 0.08);
  --color-accent-secondary: #f35a7b;
  --color-accent-secondary-subtle: rgba(243, 90, 123, 0.08);
  --color-bg-light: #f4f6f6;
  --color-bg-section: #ffffff;
  --color-bg-section-alt: #eaeeee;
  --color-bg-dark: #0b1214;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-link: var(--color-accent-primary);
  --color-divider: rgba(0, 0, 0, 0.08);

  /* Gradient Glow */
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(20, 125, 137, 0.25), rgba(243, 90, 123, 0.15), transparent 70%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(20, 125, 137, 0.05) 0%, rgba(243, 90, 123, 0.05) 100%);

  /* Typography */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-lg: 17px;
  --text-xl: 21px;
  --text-2xl: 28px;
  --text-3xl: clamp(32px, 5vw, 48px);
  --text-4xl: clamp(48px, 8vw, 96px);

  /* Spacing */
  --spacing-section: clamp(80px, 12vw, 160px);
  --spacing-block: clamp(40px, 6vw, 80px);
  --spacing-inline: clamp(20px, 4vw, 60px);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  /* Shadows (minimal, no drop shadows) */
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Z-Index */
  --z-nav: 1000;
  --z-overlay: 900;
  --z-modal: 1100;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.8s ease-out;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

/* ==================== Skip Link (Accessibility) ==================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 20px;
  background: var(--color-accent-primary);
  color: #fff;
  font-size: var(--text-sm);
  z-index: var(--z-modal);
  border-radius: 0 0 var(--radius-sm) 0;
}

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

/* ==================== Global Navigation ==================== */
.global-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 48px;
  background: rgba(244, 246, 246, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--color-divider);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-inline);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

.brand-mark {
  width: 24px;
  height: 24px;
  background: var(--color-accent-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: opacity var(--transition-fast);
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links a[aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: 600;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-accent-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: opacity var(--transition-fast);
}

.btn-pill:hover {
  opacity: 0.85;
}

/* Hamburger Menu (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-overlay {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-light);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  padding: 40px var(--spacing-inline);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-overlay[hidden] {
  display: none;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
}

.nav-overlay-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 8px;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-block) var(--spacing-inline);
  background: var(--color-bg-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.5;
  filter: blur(80px);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-grid {
  display: grid;
  gap: var(--spacing-block);
}

.hero-label {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #e8ecec;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.hero-subline {
  font-size: clamp(19px, 2.5vw, 28px);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--spacing-block);
}

.hero-ctas {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.link-cta {
  font-size: var(--text-xl);
  color: var(--color-link);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-cta::after {
  content: "›";
  font-size: 24px;
}

.hero-visual {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ==================== Section Base ==================== */
.section {
  padding: var(--spacing-section) var(--spacing-inline);
}

.section-alt {
  background: var(--color-bg-section-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-subline {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 680px;
  margin-bottom: var(--spacing-block);
}

/* ==================== Bento Grid ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: var(--spacing-block);
}

.bento-cell {
  background: var(--color-bg-section-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.bento-cell.dark {
  background: var(--color-bg-dark);
  color: #e8ecec;
}

.bento-cell.accent {
  background: var(--color-accent-primary-subtle);
}

.bento-cell.span-2 {
  grid-column: span 2;
}

/* ==================== Card Grid ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: var(--spacing-block);
}

.card {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==================== Highlights Carousel ==================== */
.highlights-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.highlights-carousel::-webkit-scrollbar {
  height: 6px;
}

.highlights-carousel::-webkit-scrollbar-track {
  background: var(--color-divider);
  border-radius: 3px;
}

.highlights-carousel::-webkit-scrollbar-thumb {
  background: var(--color-accent-primary);
  border-radius: 3px;
}

.highlight-card {
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 480px);
  aspect-ratio: 3/4;
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 32px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.highlight-card .icon {
  width: 80px;
  height: 80px;
  color: var(--color-accent-primary);
  margin-bottom: 20px;
}

.highlight-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ==================== CTA Strip ==================== */
.cta-strip {
  padding: var(--spacing-section) var(--spacing-inline);
  background: var(--gradient-brand-soft);
  text-align: center;
}

.cta-strip h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-strip p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto var(--spacing-block);
}

.cta-strip .cta-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== Footer ==================== */
.site-footer {
  background: var(--color-bg-section-alt);
  border-top: 1px solid var(--color-divider);
  padding: 40px var(--spacing-inline) 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.footer-meta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ==================== Scroll Reveal Animation ==================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.3s; }

/* ==================== Responsive ==================== */
@media (max-width: 1068px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(40px, 7vw, 64px);
  }

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

  .bento-cell.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 734px) {
  .hero-headline {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

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

  .bento-cell.span-2 {
    grid-column: span 1;
  }

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

  .highlights-carousel {
    scroll-snap-type: x mandatory;
  }

  .highlight-card {
    width: 85vw;
  }

  .section-headline {
    font-size: var(--text-2xl);
  }

  .cta-strip h2 {
    font-size: var(--text-2xl);
  }

  .cta-strip .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
