/* ==========================================================================
   FishCloud Flow — Page Architecture & Spatial Grid Layouts
   ========================================================================== */

.container {
  width: min(100% - 2rem, var(--fc-container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, var(--fc-container-narrow));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--fc-section-py);
}

.section-alt {
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.72) 0%, rgba(247, 250, 255, 0.9) 100%);
}

.section-compact {
  padding-block: clamp(2.25rem, 4.5vw, 3.6rem);
}

/* Section header with asymmetric accent line */
.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.1rem);
}

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head-split .section-head {
  margin-bottom: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-size: var(--fc-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-ocean);
  background: rgba(38, 117, 245, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--fc-radius-pill);
}

.section-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fc-aqua);
  box-shadow: 0 0 0 4px rgba(64, 217, 208, 0.22);
}

.section-lead {
  font-size: var(--fc-text-md);
  color: var(--fc-muted);
  margin: 0;
}

/* Scroll Progress Rail */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: var(--fc-z-progress);
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--fc-grad-brand);
  box-shadow: 0 0 12px rgba(64, 217, 208, 0.65);
  transition: width 80ms linear;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--fc-z-header);
  height: var(--fc-header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 250, 255, 0.64);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 117, 245, 0.08);
  transition: background var(--fc-dur-med) var(--fc-ease),
              box-shadow var(--fc-dur-med) var(--fc-ease),
              border-color var(--fc-dur-med) var(--fc-ease);
}

.site-header.is-scrolled {
  background: var(--fc-surface-glass-strong);
  border-bottom-color: rgba(38, 117, 245, 0.16);
  box-shadow: 0 10px 32px rgba(16, 32, 57, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--fc-ink);
  font-weight: 800;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--fc-ocean);
}

.brand-logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-title {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fc-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--fc-radius-pill);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(38, 117, 245, 0.1);
}

.nav-link {
  position: relative;
  z-index: 2;
  padding: 0.5rem 0.95rem;
  border-radius: var(--fc-radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fc-ink-secondary);
  transition: color var(--fc-dur-fast) var(--fc-ease), background var(--fc-dur-fast) var(--fc-ease);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--fc-ocean);
  background: rgba(38, 117, 245, 0.06);
}

.nav-link.is-active {
  color: var(--fc-ocean);
  background: rgba(38, 117, 245, 0.11);
}

.nav-indicator {
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 3px;
  border-radius: var(--fc-radius-pill);
  background: var(--fc-grad-brand);
  pointer-events: none;
  opacity: 0;
  transition: transform 320ms var(--fc-ease), width 320ms var(--fc-ease), opacity 220ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  color: var(--fc-ink);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--fc-header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-lg);
  padding: 1.25rem 1.25rem 1.75rem;
  z-index: calc(var(--fc-z-header) - 1);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--fc-ink);
  background: var(--fc-bg);
}

.mobile-nav-list a.is-active {
  background: var(--fc-ocean-soft);
  color: var(--fc-ocean);
}

/* Hero Asymmetric Split */
.hero-section {
  position: relative;
  padding-block: clamp(2.8rem, 6vw, 5.25rem) clamp(3.2rem, 6vw, 4.75rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: var(--fc-radius-pill);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-xs);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--fc-ocean);
  margin-bottom: 1.15rem;
}

.hero-h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--fc-ink-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.hero-slogan {
  font-size: clamp(2.45rem, 5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  background: linear-gradient(125deg, #102039 0%, #2675F5 54%, #1BB5AC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--fc-ink-secondary);
  max-width: 560px;
  margin-bottom: 1.65rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-disclosure {
  font-size: var(--fc-text-xs);
  color: var(--fc-muted);
  max-width: 540px;
  line-height: 1.6;
  margin: 0;
}

.hero-visual-stage {
  position: relative;
  border-radius: var(--fc-radius-lg);
  padding: 1rem;
  background: radial-gradient(circle at 60% 35%, rgba(255, 255, 255, 0.92), rgba(237, 245, 255, 0.55));
  border: 1px solid rgba(38, 117, 245, 0.14);
  box-shadow: var(--fc-shadow-md);
}

.hero-visual-stage svg {
  width: 100%;
  height: auto;
}

/* Wave Section Divider */
.wave-divider {
  width: 100%;
  height: clamp(36px, 5vw, 68px);
  display: block;
  margin-top: -1px;
}

/* Page Sub-Hero for Internal Pages */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background: var(--fc-grad-ocean-soft);
  border-bottom: 1px solid var(--fc-border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fc-text-sm);
  color: var(--fc-muted);
  margin-bottom: 1.1rem;
  list-style: none;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgba(100, 116, 139, 0.55);
}

.breadcrumb a {
  color: var(--fc-muted);
}

.breadcrumb a:hover {
  color: var(--fc-ocean);
}

/* Article & Editorial Two-Column Layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.article-prose {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  box-shadow: var(--fc-shadow-xs);
}

.article-prose h2 {
  font-size: clamp(1.38rem, 2.2vw, 1.72rem);
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--fc-border);
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  font-size: 1.18rem;
  margin-top: 1.55rem;
  margin-bottom: 0.6rem;
  color: var(--fc-ink);
}

.article-prose p {
  font-size: 1.03rem;
  line-height: 1.88;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--fc-header-h) + 24px);
  display: grid;
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  background: #0E1C33;
  color: rgba(236, 244, 255, 0.84);
  padding-block: clamp(3.2rem, 6vw, 4.75rem) 2.2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-brand-desc {
  color: rgba(214, 228, 248, 0.78);
  font-size: 0.92rem;
  margin-top: 0.95rem;
  max-width: 340px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(214, 228, 248, 0.78);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--fc-aqua);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(201, 217, 240, 0.66);
}

.footer-bottom a {
  color: var(--fc-aqua);
}
