/* Anti-FOUC Base Guard */
.hidden,
.mobile-drawer.hidden {
  display: none !important;
}

/* ==========================================================================
   NZWAVE 2.0 Bespoke Editorial & High-Conversion Design System
   Brand Palette: Matched to NZWAVE Wave Logo (#4F46E5 -> #2563EB -> #06B6D4)
   Typography: Unified Chinese + Latin Display Hierarchy (No Jarring Font Mixes)
   ========================================================================== */

:root {
  --bg-page: #F8FAFC;
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-muted: #F1F5F9;
  --bg-ice: #F2F7FF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
  --border-hover: rgba(37, 99, 235, 0.35);
  --brand-indigo: #4F46E5;
  --brand-blue: #2563EB;
  --brand-cyan: #06B6D4;
  --brand-teal: #0D9488;
  --brand-gradient: linear-gradient(135deg, #4F46E5 0%, #2563EB 52%, #06B6D4 100%);
  --gradient-brand: linear-gradient(135deg, #4F46E5 0%, #2563EB 52%, #06B6D4 100%);
  --shadow-sm: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 24px 48px -12px rgba(37, 99, 235, 0.14), 0 8px 20px -4px rgba(6, 182, 212, 0.08);
  --radius-card: 1.25rem;
  --radius-btn: 0.75rem;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Prevent Orphan Line Breaks (No 2-character dangling tails!) */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.font-mono-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* Brand Gradient Text */
.text-brand-gradient,
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Top Glassmorphic Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.08);
}

.nav-dropdown-group {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.125rem;
  padding: 0.625rem;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(37, 99, 235, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 60;
}

.nav-dropdown-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown-group:hover .nav-dropdown-menu,
.nav-dropdown-group:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.65rem;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-brand,
.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.38);
}

.btn-brand:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.48);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--text-primary) !important;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.65rem;
  font-size: 0.9375rem;
  border: 1px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.14);
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* ==========================================================================
   Cards, Photography Containers & Visual Showcases
   ========================================================================== */
.spotlight-card,
.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.spotlight-card:hover,
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.photo-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 44px -12px rgba(15, 23, 42, 0.14);
  background: #E2E8F0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-frame:hover img,
.bento-card:hover .card-photo img {
  transform: scale(1.04);
}

.card-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0.875rem;
  margin-bottom: 1.25rem;
  background: #F1F5F9;
  position: relative;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-badge {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 18px 38px -8px rgba(15, 23, 42, 0.14);
}

/* ==========================================================================
   Layout & Grid System
   ========================================================================== */
.container {
  max-width: 96rem; /* 1536px (matches 2xl screen width) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.hero-stage {
  position: relative;
  overflow: hidden;
  padding-top: 7.25rem !important;
  padding-bottom: 4.5rem;
  background:
    radial-gradient(circle at 78% 28%, rgba(6, 182, 212, 0.12), transparent 40%),
    radial-gradient(circle at 68% 65%, rgba(79, 70, 229, 0.09), transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.06), transparent 42%),
    linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 70%, #F8FAFC 100%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(203, 213, 225, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000 20%, transparent 90%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000 20%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.hero-stage > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--brand-blue);
}

.h1-hero {
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
}

.lead-text {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #DCFCE7;
  color: #15803D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Unified Metrics Bar (Fixes Image 1 Jarring Typography) */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) {
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .metrics-bar { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.metric-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.metric-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: #EFF6FF;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.125rem;
}
.metric-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.metric-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sections & Bento Grid */
.section {
  padding: 6.25rem 0;
}
@media (min-width: 1024px) {
  .section {
    padding: 7.5rem 0;
  }
}
.section-dark {
  background: linear-gradient(180deg, #0B1120 0%, #0F172A 100%);
  color: #F8FAFC;
}
.section-header {
  max-width: 48rem;
  margin: 0 auto 3.75rem auto;
  text-align: center;
}
@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 4.75rem;
  }
}
.h2-section {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-primary);
  margin: 0 0 1.15rem 0;
  letter-spacing: -0.02em;
}
.h3-card {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}
.body-sm {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}
.bento-card {
  padding: 2.25rem 2rem;
}
.bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: #EFF6FF;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-6 { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--brand-blue);
  font-weight: 800;
}

/* Interactive Visual Showcase Tabs */
.sim-window {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.35rem;
  box-shadow: 0 24px 52px -12px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.sim-header {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sim-dots {
  display: inline-flex;
  gap: 0.375rem;
}
.sim-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
}
.sim-dot.red { background: #F43F5E; }
.sim-dot.yellow { background: #F59E0B; }
.sim-dot.green { background: #10B981; }

.sim-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  background: #E2E8F0;
  padding: 0.25rem;
  border-radius: 0.625rem;
}
.sim-tab {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sim-tab.active {
  background: #FFFFFF;
  color: var(--brand-blue);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.sim-body {
  padding: 1.35rem;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Comparison Table (Desktop Table + Mobile Stacked Cards) */
.comparison-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: 1.35rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.925rem;
  line-height: 1.68;
  color: var(--text-secondary);
  vertical-align: top;
}
.comparison-table th {
  background: #F8FAFC;
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.comparison-table .col-highlight {
  background: rgba(37, 99, 235, 0.05);
  color: var(--text-primary);
  border-left: 2px solid rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive Stacked Comparison Cards (< 768px) */
@media (max-width: 767px) {
  .comparison-table-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .comparison-table,
  .comparison-table tbody {
    display: block;
    width: 100%;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }
  .comparison-table tr {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 1.15rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .comparison-table td {
    display: block;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.875rem;
  }
  .comparison-table td:first-child {
    background: #0F172A;
    color: #FFFFFF;
    padding: 0.85rem 1.15rem;
    border-bottom: none;
  }
  .comparison-table td:first-child strong {
    color: #FFFFFF !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .comparison-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 0.375rem;
    margin-bottom: 0.4rem;
    background: #F1F5F9;
    color: #475569;
  }
  .comparison-table td.col-highlight {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
    border-left: none;
    border-top: 1.5px solid #BFDBFE;
    border-bottom: none;
    padding: 1.05rem 1.15rem;
  }
  .comparison-table td.col-highlight[data-label]::before {
    background: var(--brand-gradient);
    color: #FFFFFF;
  }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pricing-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.85rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.pricing-card.featured {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 20px 48px -10px rgba(37, 99, 235, 0.22);
  transform: translateY(-4px);
}
.pricing-badge {
  position: absolute;
  top: -0.85rem;
  right: 1.5rem;
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
}
.price-tag {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.25rem 0 0.4rem 0;
  line-height: 1.15;
}
.price-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Pricing Strikethrough & Promotion Elements */
.price-original-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  margin-bottom: 0.15rem;
}
.price-original {
  font-size: 0.875rem;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 600;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  line-height: 1.3;
}
.discount-badge.green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}
.discount-badge.rose {
  background: #FFF1F2;
  color: #E11D48;
  border: 1px solid #FECDD3;
}
.discount-badge.indigo {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

.pricing-gift-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #EEF2FF 100%);
  border: 1.5px dashed #93C5FD;
  border-radius: 0.875rem;
  padding: 0.75rem 0.875rem;
  margin: 0.85rem 0 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.pricing-gift-icon {
  font-size: 1.25rem;
  line-height: 1.1;
  flex-shrink: 0;
}
.pricing-gift-text {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1E40AF;
  line-height: 1.45;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 1rem;
}
.faq-item,
details.faq-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open],
details.faq-box[open] {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-sm);
}
.faq-question,
details.faq-box summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-question::-webkit-details-marker,
details.faq-box summary::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-left: 1rem;
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  content: "−";
}
.faq-answer {
  padding: 0 1.5rem 1.35rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.faq-answer p { margin: 0; }

/* CTA Banner (Balanced Layout - No Orphan Line Wraps!) */
.cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #0E7490 100%);
  border-radius: 1.75rem;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
}

/* Forms */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.08);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}
.form-group {
  margin-bottom: 1.125rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.5rem;
}
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #0F172A;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-status-box {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  font-size: 0.925rem;
}
.form-status-box.is-visible {
  display: block;
}
.form-status-box.success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}
.form-status-box.error {
  background: #FFF1F2;
  border: 1px solid #FDA4AF;
  color: #9F1239;
}

/* Scroll Reveal */
.reveal,
.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready .reveal:not(.is-revealed),
html.js-ready .reveal-up:not(.is-revealed) {
  opacity: 0;
  transform: translateY(20px);
}

/* Footer & Mobile Sticky Bar */
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 4.25rem 0 2.5rem 0;
  border-top: 1px solid #1E293B;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1E293B;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.footer-heading {
  color: #FFFFFF;
  font-size: 0.925rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #38BDF8;
}
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748B;
}

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0.65rem));
  display: flex;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .mobile-sticky-bar { display: none; }
}

/* ==========================================================================
   Mobile Navigation Drawer & Mobile UI Hardening
   - Independent Stacking Context (Outside header)
   - Smooth slide-in & backdrop blur
   - iOS Safe-area insets
   ========================================================================== */
#mobileMenuDrawer,
.mobile-drawer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  justify-content: flex-end !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#mobileMenuDrawer.is-active,
#mobileMenuDrawer.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#mobileMenuDrawer.hidden:not(.is-active) {
  display: none !important;
}

.mobile-drawer-dialog {
  width: 86%;
  max-width: 330px;
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 36px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 1.25rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
}

#mobileMenuDrawer.is-active .mobile-drawer-dialog,
#mobileMenuDrawer.is-open .mobile-drawer-dialog {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }
  body {
    padding-bottom: 68px;
  }
}

/* ==========================================================================
   Self-Contained Native CSS Grid & Flex Engine (Zero CDN Dependency)
   ========================================================================== */
.grid {
  display: grid;
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-12 { grid-column: span 12 / span 12; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-44 { width: 11rem; }
  .sm\:h-auto { height: auto; }
  .sm\:self-stretch { align-self: stretch; }
  .sm\:p-7 { padding: 1.75rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-ready .reveal:not(.is-revealed),
  html.js-ready .reveal-up:not(.is-revealed) {
    opacity: 1 !important;
    transform: none !important;
  }
}





/* ==========================================================================
   High-Craft Midnight Ocean Brand & Growth Stage (Hero Right Column)
   Combines N-Z-W-to-Wave Logo Genesis with Live Auckland Conversion Proof
   ========================================================================== */
.hero-midnight-stage {
  position: relative;
  background: linear-gradient(155deg, #090E1A 0%, #0F172A 55%, #0D1F3C 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 1.5rem;
  box-shadow:
    0 32px 64px -16px rgba(15, 23, 42, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px -12px rgba(6, 182, 212, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.hero-midnight-stage::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(37, 99, 235, 0.12) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-midnight-stage::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 280px;
  height: 280px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.24) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Orbital Tech Rings */
@keyframes spinClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes spinCounter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
.orbit-cw {
  transform-origin: 200px 122px;
  animation: spinClockwise 32s linear infinite;
  pointer-events: none;
}
.orbit-ccw {
  transform-origin: 200px 122px;
  animation: spinCounter 22s linear infinite;
  pointer-events: none;
}

/* Phase 1: N-Z-W Blueprint Laser Construction (0s - 3s in 12s cycle) */
@keyframes drawStrokeN {
  0% { stroke-dashoffset: 380; opacity: 0; }
  4% { opacity: 1; }
  20% { stroke-dashoffset: 0; opacity: 1; }
  28% { opacity: 0.9; }
  38% { opacity: 0.18; }
  88% { opacity: 0.14; }
  96%, 100% { stroke-dashoffset: -380; opacity: 0; }
}
@keyframes drawStrokeZ {
  0%, 5% { stroke-dashoffset: 380; opacity: 0; }
  9% { opacity: 1; }
  23% { stroke-dashoffset: 0; opacity: 1; }
  28% { opacity: 0.9; }
  38% { opacity: 0.18; }
  88% { opacity: 0.14; }
  96%, 100% { stroke-dashoffset: -380; opacity: 0; }
}
@keyframes drawStrokeW {
  0%, 9% { stroke-dashoffset: 320; opacity: 0; }
  14% { opacity: 1; }
  25% { stroke-dashoffset: 0; opacity: 1; }
  30% { opacity: 0.85; }
  38% { opacity: 0.15; }
  88% { opacity: 0.12; }
  96%, 100% { stroke-dashoffset: -320; opacity: 0; }
}
.stroke-n {
  stroke-dasharray: 380;
  animation: drawStrokeN 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.stroke-z {
  stroke-dasharray: 380;
  animation: drawStrokeZ 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.stroke-w {
  stroke-dasharray: 320;
  animation: drawStrokeW 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes fadeBlueprintLabels {
  0% { opacity: 0; transform: translateY(4px); }
  5%, 25% { opacity: 1; transform: translateY(0); }
  34%, 100% { opacity: 0; transform: translateY(-4px); }
}
.anim-fade-labels {
  animation: fadeBlueprintLabels 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Phase 2: Wave Morphing (3s - 6s in 12s cycle) */
@keyframes laserBridge {
  0%, 18% { stroke-dashoffset: 650; opacity: 0; }
  24% { opacity: 1; }
  36% { stroke-dashoffset: 0; opacity: 1; }
  48% { opacity: 0.4; }
  88% { opacity: 0.25; }
  96%, 100% { stroke-dashoffset: -650; opacity: 0; }
}
.anim-laser-path {
  stroke-dasharray: 650;
  animation: laserBridge 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes genesisWingLeft {
  0%, 22% { opacity: 0; transform: translateY(14px) scale(0.86); }
  34%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(-8px) scale(0.94); }
}
.anim-wing-left {
  transform-origin: 120px 110px;
  animation: genesisWingLeft 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes genesisWingRight {
  0%, 26% { opacity: 0; transform: translateY(16px) scale(0.86); }
  38%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(-8px) scale(0.94); }
}
.anim-wing-right {
  transform-origin: 200px 140px;
  animation: genesisWingRight 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Phase 3: Crest Signal Arcs & Sonar Beacons (6s - 9s in 12s cycle) */
@keyframes genesisCrests {
  0%, 44% { stroke-dashoffset: 260; opacity: 0; }
  48% { opacity: 1; }
  60%, 90% { stroke-dashoffset: 0; opacity: 1; }
  97%, 100% { stroke-dashoffset: -260; opacity: 0; }
}
.anim-crest-line {
  stroke-dasharray: 260;
  animation: genesisCrests 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.crest-1 { animation-delay: 0s; }
.crest-2 { animation-delay: 0.18s; }
.crest-3 { animation-delay: 0.36s; }

@keyframes dataFlowPacket {
  0% { stroke-dashoffset: 160; }
  100% { stroke-dashoffset: 0; }
}
.data-packet-stream {
  stroke-dasharray: 6 26;
  animation: dataFlowPacket 2s linear infinite;
  pointer-events: none;
}

@keyframes genesisNodes {
  0%, 48% { opacity: 0; transform: scale(0.4); }
  56%, 90% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.6); }
}
.anim-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: genesisNodes 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes sonarRing {
  0% { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(2.3); opacity: 0; }
}
.sonar-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: sonarRing 2.2s ease-out infinite;
  pointer-events: none;
}

/* Phase 4: Official Brand Lockup NZWAVE (9s - 12s in 12s cycle) */
@keyframes genesisWordmark {
  0%, 66% { opacity: 0; transform: translateY(8px); }
  74%, 92% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(-5px); }
}
.anim-genesis-phase4 {
  animation: genesisWordmark 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Manual Step Overrides when user hovers or clicks one of the 4 minimal pills */
.step-state-1 .stroke-n,
.step-state-1 .stroke-z,
.step-state-1 .stroke-w {
  animation: none !important;
  stroke-dashoffset: 0 !important;
  opacity: 1 !important;
}
.step-state-1 .anim-fade-labels { animation: none !important; opacity: 1 !important; }
.step-state-1 .anim-wing-left,
.step-state-1 .anim-wing-right,
.step-state-1 .anim-crest-line,
.step-state-1 .anim-node,
.step-state-1 .anim-genesis-phase4,
.step-state-1 .anim-laser-path { opacity: 0 !important; animation: none !important; }

.step-state-2 .stroke-n,
.step-state-2 .stroke-z,
.step-state-2 .stroke-w { opacity: 0.22 !important; animation: none !important; stroke-dashoffset: 0 !important; }
.step-state-2 .anim-fade-labels { opacity: 0 !important; animation: none !important; }
.step-state-2 .anim-wing-left,
.step-state-2 .anim-wing-right,
.step-state-2 .anim-laser-path { opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important; }
.step-state-2 .anim-crest-line,
.step-state-2 .anim-node,
.step-state-2 .anim-genesis-phase4 { opacity: 0 !important; animation: none !important; }

.step-state-3 .stroke-n,
.step-state-3 .stroke-z,
.step-state-3 .stroke-w { opacity: 0.14 !important; animation: none !important; stroke-dashoffset: 0 !important; }
.step-state-3 .anim-wing-left,
.step-state-3 .anim-wing-right,
.step-state-3 .anim-laser-path { opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important; }
.step-state-3 .anim-crest-line,
.step-state-3 .anim-node { opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important; }
.step-state-3 .anim-genesis-phase4 { opacity: 0 !important; animation: none !important; }

.step-state-4 .stroke-n,
.step-state-4 .stroke-z,
.step-state-4 .stroke-w { opacity: 0.1 !important; animation: none !important; stroke-dashoffset: 0 !important; }
.step-state-4 .anim-wing-left,
.step-state-4 .anim-wing-right,
.step-state-4 .anim-crest-line,
.step-state-4 .anim-node,
.step-state-4 .anim-genesis-phase4,
.step-state-4 .anim-laser-path { opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important; }

/* Minimal Step Pill Styling */
.genesis-pill-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.genesis-pill-btn:hover,
.genesis-pill-btn.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(6, 182, 212, 0.85));
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.28);
}

/* Hero Bottom Unified Glass Proof Bar */
.hero-proof-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.07);
}
