/* ============================================================
   RISION × Impact Theme — Static Page Styles
   Design system extracted from:
   - sections/rision-footer.liquid
   - sections/rision-product-showcase.liquid
   - sections/rision-tabbed-media.liquid
   - templates/index.json
   ============================================================ */

/* ---- CSS Variables (Impact-compatible naming) ---- */
:root {
  /* Brand */
  --rision-gold: #F8B616;

  /* Backgrounds */
  --bg-light: #FFFFFF;
  --bg-gray: #F1F1F2;
  --bg-dark: #0A0C0F;
  --bg-black: #000000;

  /* Text */
  --text-primary: #111111;
  --text-secondary: #67697C;
  --text-muted: #A1A4B5;
  --text-white: #FFFFFF;
  --text-white-soft: rgba(255, 255, 255, 0.72);

  /* Accent — AF01 (warm) */
  --accent-warm: #FF5E14;
  --accent-warm-light: #FF8C42;

  /* Accent — AF02 (cool/pro) */
  --accent-cool: #00D4AA;
  --accent-cool-dark: #00A884;

  /* Borders */
  --border-light: #E0E0E0;
  --border-subtle: rgba(0, 0, 0, 0.08);

  /* Spacing (Impact scale) */
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-20: 80px;
  --spacing-24: 96px;

  /* Layout */
  --container-max: 1440px;
  --container-narrow: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

@media (max-width: 989px) {
  .container { padding: 0 var(--spacing-4); }
}

/* ---- Typography ---- */
.heading-xl {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.heading-lg {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.heading-md {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.heading-sm {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.text-subdued { color: var(--text-secondary); }

.text-muted { color: var(--text-muted); }

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-3);
}

/* ---- Header (Impact-style) ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0A0C0F;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header--scrolled {
  background: rgba(10, 12, 15, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}



.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--rision-gold);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.site-header__nav a:hover { opacity: 0.6; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.site-header__actions a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

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

/* ---- Footer (rision-footer.liquid replica) ---- */
.site-footer {
  background: var(--bg-black);
  color: var(--text-white);
  padding: 86px 0 54px;
}

.site-footer__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 36px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 76px;
}

.site-footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__group h3 {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-white);
}

.site-footer__group h3:not(:first-child) { margin-top: 28px; }

.site-footer__group a {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.site-footer__group a:hover { color: var(--text-white); }

.site-footer__brand-row {
  margin-top: 72px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__logo {
  font-size: 30px;
  color: var(--rision-gold);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__socials a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.site-footer__socials a:hover { color: var(--text-white); }

.site-footer__legal {
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover { color: var(--text-white); }

.site-footer__legal span { margin: 0 8px; }

.site-footer__legal p { margin: 16px 0 0; }

@media (max-width: 900px) {
  .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
}

@media (max-width: 560px) {
  .site-footer { padding: 54px 0 44px; }
  .site-footer__inner { padding: 0 24px; }
  .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
  .site-footer__group h3 { margin-bottom: 12px; font-size: 12px; }
  .site-footer__group h3:not(:first-child) { margin-top: 22px; }
  .site-footer__group a { margin-bottom: 9px; font-size: 11px; }
  .site-footer__brand-row { flex-direction: column; align-items: flex-start; margin-top: 42px; padding-bottom: 18px; }
  .site-footer__legal { font-size: 10px; }
  .site-footer__legal span { margin: 0 5px; }
}

/* ---- Page Header Tabs (AF01-A / AF01-B / AF02-A / AF02-B) ---- */
.page-tabs {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.page-tabs__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-tabs__brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: auto;
  letter-spacing: -0.01em;
}

.page-tabs__brand span { color: var(--text-secondary); font-weight: 500; }

.page-tab {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all var(--transition-base);
}

.page-tab--inactive {
  background: transparent;
  color: var(--text-secondary);
}

.page-tab--inactive:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.page-tab--active {
  background: var(--text-primary);
  color: var(--text-white);
}

/* ---- Sections ---- */
.section {
  padding: var(--spacing-24) 0;
}

#app-analysis.section {
  padding-top: 0;
  padding-bottom: 0;
}

.section--compact { padding: var(--spacing-16) 0; }

.section--tight { padding: var(--spacing-12) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-16);
}

.section-header--left { text-align: left; }

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
  margin: var(--spacing-4) auto 0;
}

.section-header--left p { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 170px;
  padding: 8px 28px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn--primary,
.btn--warm,
.btn--cool {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn--accent,
.af01 .btn.btn--accent,
.af02 .btn.btn--accent {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

.btn--primary:hover,
.btn--warm:hover,
.btn--cool:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.btn--accent:hover,
.af01 .btn.btn--accent:hover,
.af02 .btn.btn--accent:hover {
  background: #2a2a2a !important;
  border-color: #2a2a2a !important;
}

.btn--secondary {
  background: transparent;
  color: #111111;
  border-color: #67697C;
}

.btn--secondary:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn--small {
  min-height: 36px;
  min-width: auto;
  padding: 6px 18px;
  font-size: 13px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-light);
  border-radius: 0;
  overflow: hidden;
}

.card__media {
  aspect-ratio: 1 / 1;
  background: #e5e5e5;
  overflow: hidden;
}

.card__media img,
.card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__content {
  padding: var(--spacing-6) 0 0;
}

.card__content h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---- Feature List ---- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.feature-list__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Split Layout ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--spacing-16);
  align-items: center;
}

.split:has(> .media-block:first-child),
.split.split--reverse {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.split--reverse > :first-child { order: 2; }
.split--reverse > :last-child { order: 1; }

@media (max-width: 989px) {
  .split { grid-template-columns: 1fr; gap: var(--spacing-10); }
  .split--reverse > :first-child { order: 1; }
  .split--reverse > :last-child { order: 2; }
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 989px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Media Block (placeholder) ---- */
.media-block {
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.media-block span { padding: 24px; position: relative; z-index: 1; }

.media-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-bg-feature {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 560px;
  border-radius: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: var(--text-white);
}

.full-bg-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,12,15,0.78) 0%, rgba(10,12,15,0.52) 42%, rgba(10,12,15,0.14) 100%);
}

.full-bg-feature__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--spacing-16) var(--spacing-6);
}

.full-bg-feature__content > * {
  max-width: 560px;
}

.full-bg-feature .text-subdued,
.full-bg-feature .feature-list__item {
  color: var(--text-white-soft);
}

.full-bg-feature .feature-list__num {
  background: rgba(255,255,255,0.16);
  color: var(--text-white);
}

@media (max-width: 989px) {
  .full-bg-feature { min-height: 460px; }
  .full-bg-feature__content { padding: var(--spacing-8); }
}

#endorsement .media-block,
#reviews .kol-card__media {
  aspect-ratio: 4 / 3;
  height: auto !important;
  min-height: 0 !important;
}

#reviews .kol-card__media {
  position: relative;
  overflow: hidden;
}

#reviews .kol-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Metric Blocks ---- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-5);
  width: 100%;
}

.metric-block {
  min-width: 0;
  padding: var(--spacing-6);
  background: var(--bg-light);
  text-align: center;
  overflow: visible;
}

.metric-block__value {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--spacing-2);
  white-space: nowrap;
  letter-spacing: -0.06em;
  max-width: 100%;
}

.metric-block__label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- AI Fusion Switcher ---- */
.mode-tabs {
  display: flex;
  gap: 10px;
  margin-top: var(--spacing-6);
  flex-wrap: wrap;
}

.mode-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.mode-tab:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.mode-tab--active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--text-white);
}

#ai-fusion {
  padding-bottom: var(--spacing-20);
}

#ai-fusion > .container {
  min-height: 240vh;
}

#ai-fusion .section-header {
  margin-bottom: var(--spacing-10);
}

.fusion-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: stretch;
  position: sticky;
  top: 88px;
  z-index: 2;
  height: calc(100vh - 136px);
  min-height: 620px;
}

.fusion-switcher.reveal,
.fusion-switcher.reveal--visible {
  transform: none;
}

.fusion-switcher__stage {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
}

.fusion-switcher__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition-base);
}

.fusion-switcher__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fusion-switcher__option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-base);
}

.fusion-switcher__option:hover,
.fusion-switcher__option--active {
  border-color: var(--accent-cool);
  color: var(--text-primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.fusion-switcher__thumb {
  position: relative;
  width: 76px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-gray);
}

.fusion-switcher__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fusion-switcher__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 1.25em;
}

@media (max-width: 989px) {
  #ai-fusion > .container {
    min-height: auto;
  }
  .fusion-switcher {
    grid-template-columns: 1fr;
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }
  .fusion-switcher__stage {
    min-height: 360px;
    height: auto;
  }
  .fusion-switcher__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Scene Mosaic ---- */
.scene-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}

.scene-mosaic .media-block { border-radius: var(--radius-md); }
.scene-mosaic .media-block:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ---- Endorsement Cards ---- */
.endorse-card {
  display: flex;
  flex-direction: column;
}

.endorse-title {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 8px;
  color: var(--text-primary);
}

.endorse-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 989px) {
  .scene-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 160px); }
  .scene-mosaic .media-block:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ---- Specs Table ---- */
.specs-table-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.specs-table th,
.specs-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.specs-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
}

.specs-table td:first-child { color: var(--text-secondary); width: 35%; }
.specs-table tr:hover td { background: rgba(0, 0, 0, 0.01); }
.specs-table-wrap.is-collapsed .specs-table tbody tr:nth-child(n+5) { display: none; }
.specs-readmore {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
}
.specs-readmore:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ---- FAQ ---- */
.faq-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--border-light); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item--open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item--open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}
.faq-wrap.is-collapsed .faq-item:nth-child(n+5) { display: none; }
.faq-readmore {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
}
.faq-readmore:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ---- Sticky ATC Bar ---- */
.atc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.atc-bar--visible { transform: translateY(0); }

.atc-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-6);
}

.atc-bar__info {
  margin-right: auto;
}

.atc-bar__info h4 { font-size: 15px; margin-bottom: 2px; }
.atc-bar__info p { font-size: 13px; color: var(--text-secondary); }

.atc-bar__price {
  font-size: 24px;
  font-weight: 700;
  margin-left: auto;
  margin-right: var(--spacing-2);
}

@media (max-width: 640px) {
  .atc-bar__inner { flex-wrap: wrap; }
  .atc-bar__info { width: 100%; }
}

/* ---- Trust Cards ---- */
.trust-card {
  text-align: center;
  padding: var(--spacing-8) var(--spacing-5);
}

.trust-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--spacing-4);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.trust-card h4 { font-size: 15px; margin-bottom: 6px; }
.trust-card p { font-size: 13px; color: var(--text-secondary); }

/* ---- KSP Cards ---- */
.ksp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.ksp-card {
  padding: var(--spacing-6);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.ksp-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ksp-card__num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-2);
}

.ksp-card h4 { font-size: 16px; margin-bottom: 8px; }
.ksp-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

@media (max-width: 989px) { .ksp-grid { grid-template-columns: 1fr; } }

/* ---- Bento Grid (AF02-A KSP) ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.bento-card {
  background: #1A1D23;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.bento-card--large {
  grid-column: span 2;
  flex-direction: row;
  align-items: stretch;
  min-height: 220px;
}

.bento-card--large .bento-card__content {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card--large .bento-card__media {
  width: 40%;
  height: 100%;
  min-height: 220px;
}

.bento-card--large .bento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card--platforms {
  min-height: 360px;
  background-image:
    linear-gradient(90deg, rgba(10,12,15,0.88) 0%, rgba(10,12,15,0.62) 42%, rgba(10,12,15,0.18) 100%),
    url('images/af02-product.png'),
    url('images/platforms-card-bg.png');
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}

.bento-card--platforms .bento-card__content {
  flex: 1 1 auto;
  width: 100%;
  background: transparent;
  height: 100%;
}

.bento-card--media {
  min-height: 220px;
}

.bento-card--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.bento-card__overlay h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.bento-card__overlay p {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

.bento-card--data {
  padding: 24px;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.bento-data__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bento-data__value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-cool);
  line-height: 1;
}

.bento-data__unit {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 2px;
}

.bento-card--feature {
  padding: 24px;
  justify-content: center;
}

.bento-card--feature h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.bento-card--feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.bento-card__content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.bento-card__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.bento-platforms {
  display: flex;
  gap: 10px;
}

.bento-platform {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.bento-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bento-mode {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0,212,170,0.12);
  color: var(--accent-cool);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 989px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--large { grid-column: span 1; flex-direction: column; }
  .bento-card--large .bento-card__media { width: 100%; height: 160px; }
}

/* ---- Sub Nav ---- */
.sub-nav {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 16px 0;
}

.sub-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  display: flex;
  gap: 14px;
  overflow-x: auto;
}

.sub-nav a {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.sub-nav a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
}

.sub-nav a.active {
  color: #fff;
  background: var(--text-primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* ---- Hero Section (rision-hero style) ---- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding: 120px max(var(--spacing-6), calc((100vw - var(--container-max)) / 2 + var(--spacing-6))) 80px;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.45);
}

.hero-section__content {
  position: relative;
  z-index: 2;
}

.hero-section__kicker {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white-soft);
  margin-bottom: var(--spacing-4);
}

.hero-section__title {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: var(--spacing-5);
}

.hero-section__body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-white-soft);
  max-width: 560px;
  margin: 0 0 var(--spacing-8) 0;
}

.hero-section__actions {
  display: flex;
  gap: var(--spacing-4);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-section .btn {
  min-height: 56px;
  min-width: 148px;
  padding: 14px 32px;
  border-radius: 14px;
}

.hero-section .btn--primary {
  background: var(--text-white);
  color: var(--text-primary);
  border-color: var(--text-white);
}

.hero-section .btn--primary:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.86);
}

.hero-section .btn--secondary {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-section .btn--secondary:hover {
  background: var(--text-white);
  color: var(--text-primary);
  border-color: var(--text-white);
}

@media (max-width: 989px) {
  .hero-section {
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
  }
}

/* ---- Product Showcase (rision-product-showcase style) ---- */
.product-showcase {
  background: linear-gradient(180deg, #F2F2F2 0%, #DDEBF5 100%);
  padding: 88px 0 86px;
}

.product-showcase__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 36px; }

.product-showcase__header { text-align: center; margin-bottom: 78px; }

.product-showcase__kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.product-showcase__title {
  margin: 0 auto 22px;
  max-width: 760px;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.product-showcase__subheading {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-muted);
}

.product-showcase__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.product-showcase__card { display: grid; gap: 0; }

.product-showcase__media { aspect-ratio: 1 / 1; background: #e5e5e5; overflow: hidden; }

.product-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-showcase__content { padding: 28px 0 0; display: grid; gap: 10px; align-content: start; }

.product-showcase__content h3 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }

.product-showcase__specs { margin: 0; max-width: 620px; font-size: 19px; color: #5E6470; line-height: 1.45; }

.product-showcase__price { margin: 2px 0 0; font-size: 18px; font-weight: 700; }

.product-showcase__actions { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }

@media (max-width: 989px) {
  .product-showcase { padding: 56px 0 64px; }
  .product-showcase__inner { padding: 0 16px; }
  .product-showcase__grid { grid-template-columns: 1fr; gap: 34px; }
  .product-showcase__header { margin-bottom: 34px; }
  .product-showcase__title { max-width: 330px; font-size: clamp(30px, 9vw, 38px); }
  .product-showcase__subheading { font-size: 15px; }
  .product-showcase__content { padding: 18px 0 0; }
  .product-showcase__content h3 { font-size: 17px; }
  .product-showcase__specs { font-size: 12px; }
  .product-showcase__price { font-size: 13px; }
  .product-showcase__actions { gap: 10px; margin-top: 10px; }
  .product-showcase__actions .btn { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 8px 12px; font-size: 12px; }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Unified Accent Text Motion ---- */
.af01 { --page-accent: var(--accent-warm); --page-accent-soft: var(--accent-warm-light); }
.af02 { --page-accent: var(--accent-cool); --page-accent-soft: #7FFFE5; }

.kicker,
.metric-block__value,
.ksp-card__num,
.bento-data__value,
.review-card__stars,
.accent-warm,
.accent-cool {
  color: transparent !important;
  background-image: linear-gradient(180deg,
    rgba(255,255,255,0.92) 0%,
    var(--page-accent-soft) 34%,
    var(--page-accent) 100%
  );
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(0 0 100% 0);
  animation: accent-fade-down 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--page-accent) 18%, transparent));
}

.kicker {
  position: relative;
  display: inline-block;
}

.kicker::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--page-accent), transparent);
  opacity: 0.55;
  transform: scaleX(0.72);
  transform-origin: center;
}

.kicker[style*="background"] {
  color: var(--page-accent) !important;
  background-image: none !important;
  -webkit-text-fill-color: var(--page-accent) !important;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  animation: accent-fade-down 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--page-accent) 18%, transparent));
  overflow: hidden;
  isolation: isolate;
}

.kicker[style*="background"]::before {
  content: none;
}

@keyframes pill-text-glow {
  0%, 100% { text-shadow: 0 0 0 color-mix(in srgb, var(--page-accent) 0%, transparent); }
  50% { text-shadow: 0 0 14px color-mix(in srgb, var(--page-accent) 42%, transparent); }
}

@keyframes pill-sheen {
  0%, 30% { transform: translateX(-130%); opacity: 0; }
  45% { opacity: 1; }
  72%, 100% { transform: translateX(130%); opacity: 0; }
}

.atc-bar__price {
  color: var(--page-accent) !important;
  background: none !important;
  -webkit-text-fill-color: var(--page-accent) !important;
  animation: none !important;
  filter: none !important;
  clip-path: none !important;
}

@keyframes accent-fade-down {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kicker,
  .metric-block__value,
  .ksp-card__num,
  .bento-data__value,
  .review-card__stars,
  .accent-warm,
  .accent-cool {
    animation: none;
    clip-path: none;
  }
}

/* ---- Page-specific Motion Variety ---- */
.af01-a-page .card,
.af01-a-page .media-block,
.af01-a-page .bento-card {
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

.af01-a-page .card:hover,
.af01-a-page .bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(255, 94, 20, 0.12);
}

.af01-b-page .reveal {
  transform: scale(0.965);
  transform-origin: center top;
}

.af01-b-page .reveal.reveal--visible {
  transform: scale(1);
}

.af01-b-page .media-block img {
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter 1.2s ease;
}

.af01-b-page .media-block:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.03);
}

.af02-a-page .reveal {
  transform: translateX(-28px);
}

.af02-a-page .reveal.reveal--visible {
  transform: translateX(0);
}

.af02-a-page .media-block::after,
.af02-a-page .fusion-switcher__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.18) 48%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
}

.af02-a-page .media-block:hover::after,
.af02-a-page .fusion-switcher__stage:hover::after {
  animation: cool-scan 1.15s ease-out;
}

@keyframes cool-scan {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.af02-b-page .reveal {
  transform: translateY(24px) scale(0.985);
  filter: blur(10px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.16, 1, .3, 1), filter 0.75s ease;
}

.af02-b-page .reveal.reveal--visible {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.af02-b-page .card,
.af02-b-page .review-card,
.af02-b-page .package-card,
.af02-b-page .manual-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.af02-b-page .card:hover,
.af02-b-page .review-card:hover,
.af02-b-page .package-card:hover,
.af02-b-page .manual-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 44px rgba(0, 212, 170, 0.12);
}

/* ---- Footer spacer for ATC ---- */
.footer-spacer { height: 80px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ---- Warm/Cool accent utilities ---- */
.accent-warm { color: var(--accent-warm); }
.accent-cool { color: var(--accent-cool); }
.bg-warm-soft { background: rgba(255, 94, 20, 0.06); }
.bg-cool-soft { background: rgba(0, 212, 170, 0.06); }

/* ---- Image + Metrics Section ---- */
.image-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.image-metrics__media {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-gray);
}
.image-metrics__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-metrics__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.image-metrics__text .kicker {
  margin-bottom: var(--spacing-3);
}
.image-metrics__text .heading-lg {
  margin-bottom: var(--spacing-4);
}
.image-metrics__text .text-subdued {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
}
.image-metrics__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.image-metrics__card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
}
.image-metrics__value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--page-accent);
}
.image-metrics__value span {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 2px;
}
.image-metrics__label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Before/After inside Image Metrics ---- */
.ba-compare {
  position: absolute;
  inset: 0;
}
.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-after {
  clip-path: inset(0 0 0 var(--ba-clip));
  z-index: 2;
}
.ba-before {
  z-index: 1;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-clip);
  width: 40px;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
}
.ba-handle svg {
  width: 32px;
  height: 40px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
  flex-shrink: 0;
}
.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.45);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  z-index: 2;
  margin: 0;
}
.ba-label--left { left: 16px; }
.ba-label--right { right: 16px; }

@media (max-width: 989px) {
  .image-metrics {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .image-metrics__media {
    min-height: 360px;
  }
  .image-metrics__content {
    gap: 24px;
  }
  .image-metrics__text .heading-lg {
    font-size: clamp(26px, 6vw, 32px);
  }
  .image-metrics__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .image-metrics__card {
    padding: 24px 16px;
    min-height: 100px;
  }
  .image-metrics__value {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}
@media (max-width: 560px) {
  .image-metrics__cards {
    grid-template-columns: 1fr;
  }
}

/* Warm/Cool buttons use the unified RISION button system above. */
