/* ============================================================
   Linky AI — 官網首頁樣式
   品牌色：#B82329 深紅 / #D94A4A 主紅
   ============================================================ */

:root {
  /* Brand */
  --red-50: #FDF2F2;
  --red-100: #FAE0E0;
  --red-200: #F5BFBF;
  --red-300: #E88A8A;
  --red-400: #D94A4A;
  --red-500: #B82329;
  /* 主色 */
  --red-600: #9A2828;
  --red-700: #8D2329;
  --red-800: #6E1C20;
  --red-900: #4A1215;

  /* Neutral */
  --n-0: #FFFFFF;
  --n-50: #FAFAFA;
  --n-100: #F4F4F4;
  --n-200: #EEEEEE;
  --n-300: #D0D0D0;
  --n-400: #BDBDBD;
  --n-500: #757575;
  --n-600: #424242;
  --n-700: #2A2A2A;
  --n-800: #1A1A1A;
  --n-900: #141414;

  /* Type */
  --font-sans: "Noto Sans TC", "Inter", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --font-serif: "Noto Serif TC", "Source Serif Pro", Georgia, serif;

  /* Sizing */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --container: 1440px;
  --gutter: 32px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  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-sans);
  color: var(--n-900);
  background: var(--n-0);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: 1440px;
}

.container--narrow {
  max-width: 980px;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red-500);
}

.eyebrow--muted {
  color: var(--n-500);
}

.eyebrow--muted::before {
  background: var(--n-500);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.h-display {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.h-1 {
  font-size: 65px;
  letter-spacing: -0.035em;
  line-height: 1.3
}

.h-2 {
  font-size: 28px;
  letter-spacing: -0.025em;
}

.h-3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 17px;
  color: var(--n-600);
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}

.body {
  color: var(--n-600);
  font-size: 16px;
  line-height: 1.7;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01";
}

.brand-mark {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark--red {
  color: var(--red-500);
}

.brand-mark .star {
  color: var(--red-500);
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s var(--ease);
  padding: 18px 0;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--n-200);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__brand .brand-red {
  color: var(--red-500);
}

.nav__brand .brand-star {
  color: var(--red-500);
  font-size: 16px;
  transform: translateY(-4px);
  display: inline-block;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--n-700);
  position: relative;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--red-500);
}

.nav__links a.has-dropdown::after {
  content: "▾";
  margin-left: 4px;
  font-size: 10px;
  color: var(--n-400);
}

.nav__cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--n-900);
  color: white;
}

.btn--primary:hover {
  background: var(--red-500);
  transform: translateY(-1px);
}

.btn--red {
  background: var(--red-500);
  color: white;
}

.btn--red:hover {
  background: var(--red-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(184, 35, 41, 0.4);
}

.btn--ghost {
  color: var(--n-900);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--red-500);
}

.btn--outline {
  border-color: var(--n-300);
  color: var(--n-900);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--n-900);
  background: var(--n-900);
  color: white;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 15px;
}

.btn__arrow {
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  /* min-height: 100vh; */
  padding: 70px 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fdf7f7 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.65;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
  /* min-height: calc(100vh - 240px); */
}

.hero__content {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: white;
  border: 1px solid var(--red-100);
  border-radius: 999px;
  font-size: 13px;
  color: var(--n-700);
  margin-bottom: 32px;
  box-shadow: 0 2px 8px -2px rgba(184, 35, 41, 0.08);
}

.hero__badge__pill {
  background: var(--red-500);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title .accent {
  color: var(--red-500);
}

.hero__title .under-red {
  background: linear-gradient(transparent 65%, var(--red-100) 65%);
  padding: 0 2px;
}

.hero__lead {
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--n-600);
  max-width: 58ch;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 48px;
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--n-200);
}

.hero__meta-item .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--red-500);
  letter-spacing: -0.02em;
}

.hero__meta-item .label {
  font-size: 13px;
  color: var(--n-500);
  margin-top: 2px;
}

/* Hero visual side */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  justify-self: center;
  width: 100%;
}

/* Hero version switcher */
.hero__switcher {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 10px 40px -10px rgba(20, 20, 20, 0.15);
  border: 1px solid var(--n-200);
}

.hero__switcher button {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--n-500);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__switcher button .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.5;
}

.hero__switcher button:hover {
  color: var(--n-900);
}

.hero__switcher button.is-active {
  background: var(--n-900);
  color: white;
}

.hero__switcher button.is-active .idx {
  opacity: 0.6;
}

/* Hero version panels */
.hero__version {
  display: none;
  animation: heroFadeIn 0.5s var(--ease-out);
}

.hero__version.is-active {
  display: contents;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Hero Visuals (SVG-based per version)
   ------------------------------------------------------------ */
.hv {
  position: relative;
  width: 100%;
  height: 100%;
}

.hv svg {
  width: 100%;
  height: 100%;
}

/* V1 — evolution: 360 → Linky AI */
.hv-v1 .node-360,
.hv-v1 .node-reason,
.hv-v1 .node-connect,
.hv-v1 .node-center {
  transition: all 1s var(--ease-out);
}

.hv-v1 .connector {
  stroke-dasharray: 4 4;
}

/* V2 — rail to open world */
.hv-v2 .rail {
  stroke: var(--n-300);
  stroke-width: 2;
}

.hv-v2 .rail-active {
  stroke: var(--red-500);
}

.hv-v2 .world-node {
  fill: var(--red-500);
}

.hv-v2 .world-link {
  stroke: var(--red-200);
  stroke-width: 1;
}

/* V3 — orbital trio */
.hv-v3 .orbit {
  fill: none;
  stroke: var(--red-100);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

/* ------------------------------------------------------------
   Bridge / Upgrade banner
   ------------------------------------------------------------ */
.bridge {
  background: var(--n-900);
  color: white;
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

.bridge__track {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

.bridge__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.bridge__item .dot {
  width: 6px;
  height: 6px;
  background: var(--red-500);
  border-radius: 50%;
}

.bridge__item .highlight {
  color: white;
  font-weight: 600;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------
   Section base
   ------------------------------------------------------------ */
.section {
  padding: 120px 0;
  position: relative;
}

.section--tight {
  padding: 80px 0;
}

.section--dark {
  background: var(--n-900);
  color: white;
}

.section--gray {
  background: var(--n-50);
}

.section--red-soft {
  background: linear-gradient(180deg, #fdf7f7 0%, #ffffff 100%);
}

.section__head_top {
  display: flex;
  padding: 0 0 40px;
  justify-content: center;
  align-self: center;
  align-items: center;
}

.section__head {
  width: 50%;
}

.section__right {
  width: 50%;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head .eyebrow {
  margin-bottom: 20px;
}

.section__head h2 {
  margin-bottom: 20px;
}

.section__head .lead {
  color: var(--n-600);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .eyebrow {
  color: var(--red-400);
}

.section--dark .eyebrow::before {
  background: var(--red-400);
}

.section__head p {
  font-size: 17px;
}

/* ------------------------------------------------------------
   VS Section — Linear vs Open World
   ------------------------------------------------------------ */
.vs {
  background: var(--n-900);
  color: white;
  overflow: hidden;
  padding: 60px 0;
}

.vs .eyebrow {
  color: var(--red-400);
}

.vs .eyebrow::before {
  background: var(--red-400);
}

.vs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.vs__panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.vs__panel--old {
  border-color: rgba(255, 255, 255, 0.06);
}

.vs__panel--new {
  border-color: rgba(216, 74, 74, 0.35);
  background: linear-gradient(135deg, rgba(184, 35, 41, 0.08), rgba(255, 255, 255, 0.02));
}

.vs__label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.vs__panel--old .vs__label {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.vs__panel--new .vs__label {
  background: var(--red-500);
  color: white;
}

.vs__panel h3 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.vs__panel .sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-bottom: 32px;
}

.vs__viz {
  height: 200px;
  margin-bottom: 32px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

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

.vs__flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
}

.vs__panel--old .vs__flow-step:hover {
  border-left-color: rgba(255, 255, 255, 0.4);
}

.vs__panel--new .vs__flow-step {
  border-left-color: var(--red-400);
  background: rgba(216, 74, 74, 0.06);
}

.vs__flow-step .num {
  color: var(--red-400);
  font-weight: 700;
  min-width: 20px;
  font-family: var(--font-mono);
  text-align: center;
}

.vs__panel--old .vs__flow-step .num {
  color: rgba(255, 255, 255, 0.35);
  font-size: 15px;
}

.vs__panel--new .vs__flow-step .num {
  color: var(--red-400);
  font-size: 15px;
  font-weight: 800;
}

.vs__quote {
  padding: 32px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.4;
  color: white;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 60px auto 0;
}

.vs__quote .accent {
  color: var(--red-400);
}

/* ------------------------------------------------------------
   Architecture — Three products
   ------------------------------------------------------------ */
.arch {
  padding: 60px 0;
  background: white;
  position: relative;
}

.arch__diagram {
  position: relative;
  padding: 60px 40px;
  background: linear-gradient(180deg, #fdfbfb 0%, #f9f4f4 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--red-100);
  margin: 30px 0 50px;
}

.arch__master {
  text-align: center;
  padding: 24px;
  background: var(--n-900);
  color: white;
  border-radius: var(--radius);
  margin-bottom: 80px;
  position: relative;
  display: inline-block;
  min-width: 320px;
  left: 50%;
  transform: translateX(-50%);
}

.arch__master::after {
  content: "";
  position: absolute;
  bottom: -56px;
  left: 50%;
  width: 1px;
  height: 56px;
  background: #B82329;
}

.arch__master .brand-line {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.arch__master .brand-line .accent {
  color: var(--red-400);
}

.arch__master .sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arch__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.arch__products::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 16%;
  right: 15.8%;
  height: 1px;
  background: #B82329;
}

.arch__product {
  background: white;
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  /* overflow: hidden; */
}

.arch__product_b::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: #B82329;
}

.arch__product_icon {
  max-width: 150px;
  margin: 0 auto;
}

.arch__product_icon img {
  width: 100%;
}

/* .arch__product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-50), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
} */
.arch__product:hover,
.arch__product.is-active {
  border-color: var(--red-300);
  /* transform: translateY(-4px); */
  box-shadow: 0 20px 40px -20px rgba(184, 35, 41, 0.2);
}

.arch__product.is-active::before {
  opacity: 1;
}

.arch__product__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--red-500);
}

.arch__product__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.arch__product__name .by {
  font-size: 12px;
  color: var(--n-400);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.arch__product__tag {
  font-size: 12px;
  color: var(--red-500);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.arch__product__desc {
  color: var(--n-600);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.arch__product__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.arch__product__pills span {
  padding: 4px 10px;
  background: white;
  border: 1px solid var(--n-200);
  border-radius: 999px;
  font-size: 11px;
  color: var(--n-600);
  transition: all 0.2s;
}

.arch__product:hover .arch__product__pills span {
  border-color: var(--red-200);
  color: var(--red-600);
}

.arch__foundation {
  padding: 20px 32px;
  background: white;
  border: 1px dashed var(--n-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.arch__foundation::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--n-300);
}

.arch__foundation__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--n-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arch__foundation__title {
  font-weight: 700;
  color: var(--n-900);
  font-size: 15px;
}

.arch__foundation__sub {
  font-size: 13px;
  color: var(--n-500);
  margin-top: 2px;
}

.arch__foundation__icon {
  width: 40px;
  height: 40px;
  color: var(--n-400);
}

/* Arch bottom note */
.arch__note {
  text-align: center;
  font-size: 14px;
  color: var(--n-500);
  max-width: 720px;
  margin: 0 auto;
}

.arch__note strong {
  color: var(--n-900);
  font-weight: 600;
}

.arch_img {
  width: 100%;
  margin: 0 auto 15px;
}

/* ------------------------------------------------------------
   Capabilities tabs
   ------------------------------------------------------------ */
.cap {
  padding: 120px 0;
  background: var(--n-50);
}

.cap__tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: white;
  border-radius: 999px;
  margin-bottom: 48px;
  width: fit-content;
  border: 1px solid var(--n-200);
}

.cap__tab {
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-500);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap__tab:hover {
  color: var(--n-900);
}

.cap__tab.is-active {
  background: var(--n-900);
  color: white;
}

.cap__tab.is-active[data-product="360"] {
  background: var(--red-500);
}

.cap__tab.is-active[data-product="reason"] {
  background: var(--red-600);
}

.cap__tab.is-active[data-product="connect"] {
  background: var(--red-700);
}

.cap__panel {
  display: none;
}

.cap__panel.is-active {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.cap__meta {}

.cap__meta h3 {
  font-size: 40px;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cap__meta h3 .accent {
  color: var(--red-500);
}

.cap__meta .lead {
  margin-bottom: 32px;
}

.cap__modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cap__module {
  padding: 20px;
  background: white;
  border: 1px solid var(--n-200);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.cap__module:hover {
  border-color: var(--red-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(184, 35, 41, 0.15);
}

.cap__module__icon {
  width: 32px;
  height: 32px;
  color: var(--red-500);
  margin-bottom: 12px;
}

.cap__module__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.cap__module__desc {
  font-size: 13px;
  color: var(--n-500);
  line-height: 1.5;
}

.cap__viz {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--n-200);
  position: relative;
  overflow: hidden;
  padding: 24px;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}

/* ------------------------------------------------------------
   Method — Data + Ontology + Tools ...
   ------------------------------------------------------------ */
.method {
  background: var(--n-900);
  color: white;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.method::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(216, 74, 74, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(216, 74, 74, 0.1), transparent 40%);
  pointer-events: none;
}

.method .container {
  position: relative;
  z-index: 1;
}

.method__formula {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 60px 0;
  font-family: var(--font-mono);
  font-size: 15px;
}

.method__formula .token {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s;
}

.method__formula .token:hover {
  background: rgba(216, 74, 74, 0.15);
  border-color: var(--red-400);
  color: white;
}

.method__formula .op {
  color: var(--red-400);
  font-size: 20px;
  font-weight: 700;
}

.method__formula .arrow {
  color: var(--red-400);
  font-size: 24px;
}

.method__formula .result {
  padding: 12px 24px;
  background: var(--red-500);
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  border-color: var(--red-500);
}

.method__gaps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.method__gap {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.method__gap:hover {
  border-color: var(--red-400);
  background: rgba(216, 74, 74, 0.06);
  transform: translateY(-3px);
}

.method__gap__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-400);
  margin-bottom: 12px;
}

.method__gap__q {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.method__gap__a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
}

.method__gap__a strong {
  color: var(--red-400);
  font-weight: 600;
}

.method .section__head {
  width: 100%;

}

/* ------------------------------------------------------------
   Roles — 誰在使用
   ------------------------------------------------------------ */
.roles {
  padding: 120px 0;
  background: white;
}

.roles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 15px 0 0;
}

.role {
  padding: 40px 32px;
  background: var(--n-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--n-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.role:hover {
  background: white;
  border-color: var(--red-200);
  box-shadow: 0 20px 40px -20px rgba(184, 35, 41, 0.15);
  transform: translateY(-4px);
}

.role__persona {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red-500);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.role__quote {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--n-900);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.role__answer {
  padding-top: 24px;
  border-top: 1px solid var(--n-200);
}

.role__answer__label {
  font-size: 11px;
  color: var(--n-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.role__answer__body {
  font-size: 14px;
  color: var(--n-700);
  line-height: 1.6;
}

.role__answer__body strong {
  color: var(--red-500);
  font-weight: 600;
}

/* ------------------------------------------------------------
   Cases — Logo wall
   ------------------------------------------------------------ */
.cases {
  padding: 100px 0;
  background: white;
  border-top: 1px solid var(--n-100);
  border-bottom: 1px solid var(--n-100);
}

.cases__head {
  text-align: center;
  margin-bottom: 48px;
}

.cases__head .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--n-500);
  text-transform: uppercase;
}

.cases__wall {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.cases__track {
  display: flex;
  gap: 60px;
  animation: marquee 50s linear infinite;
  align-items: center;
}

.cases__logo {
  flex-shrink: 0;
  height: 40px;
  display: flex;
  align-items: center;
  color: var(--n-500);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  transition: color 0.2s;
  white-space: nowrap;
  font-family: var(--font-serif);
}

.cases__logo:hover {
  color: var(--red-500);
}

.cases__logo .industry {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--n-400);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--n-300);
  font-weight: 400;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq {
  padding: 120px 0;
  background: var(--n-50);
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

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

.faq__item {
  background: white;
  border: 1px solid var(--n-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item.is-open {
  border-color: var(--red-300);
}

.faq__q {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--n-900);
}

.faq__q__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--n-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.faq__item.is-open .faq__q__icon {
  background: var(--red-500);
  color: white;
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq__item.is-open .faq__a {
  max-height: 400px;
}

.faq__a__inner {
  padding: 0 28px 24px;
  color: var(--n-600);
  font-size: 15px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta {
  padding: 120px 0;
  background: var(--n-900);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(216, 74, 74, 0.2), transparent 60%);
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.cta h2 .accent {
  color: var(--red-400);
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn--red {
  background: var(--red-500);
}

.cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.cta .btn--outline:hover {
  background: white;
  color: var(--n-900);
  border-color: white;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--n-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand h4 {
  font-size: 24px;
  color: white;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__brand h4 .accent {
  color: var(--red-400);
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer__col h5 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: white;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer__logo {
  width: 200px;
  margin: 0 0 15px;

}

/* ------------------------------------------------------------
   Reveal animation
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

}

.footer__col_des {
  color: #fff;
  text-align: right;
}

.linky_ai .menu-nav li a {
  color: #91121d;
  font-weight: bold;
  padding: 10px 0;
  display: block;
  position: relative;
}

.linky_ai .menu {
  /* border: 1px solid #000; */
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
  background: #fff;
}

.linky_ai .js-scroll .menu-nav li a::after {
  background-color: #91121d;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    max-width: 400px;
  }

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

  .cap__panel.is-active {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .roles__grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding: 80px 0;
  }

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

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

  .hero__switcher {
    flex-direction: column;
    padding: 6px;
    gap: 4px;
  }

  .hero__meta {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section__head_top {
    display: block;
    padding: 0px;
    justify-content: center;
    align-self: center;
    align-items: center;
  }

  .section__head {
    width: 100%;
  }

  .cap__tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 999px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: fit-content;
    border: 1px solid var(--n-200);
  }

  .h-1 {
    font-size: 40px;
    letter-spacing: -0.035em;
    line-height: 1.3;
  }

  .method {
    background: var(--n-900);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
  }

  .cap {
    padding: 40px 0;
    background: var(--n-50);
  }

  .vs__quote {
    padding: 0px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.4;
    color: white;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 30px auto 0;
  }

  .arch {
    padding: 40px 0;
    background: white;
    position: relative;
  }

  .arch__master::after {
    content: "";
    position: absolute;
    bottom: -56px;
    left: 50%;
    width: 1px;
    height: 56px;
    background: #B82329;
    display: none;
  }

  .arch__diagram {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(180deg, #fdfbfb 0%, #f9f4f4 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--red-100);
    margin: 30px 0 50px;
  }

  .arch__products::before {
    content: "";
    position: absolute;
    top: -32px;
    left: 16%;
    right: 15.8%;
    height: 1px;
    background: #B82329;
    display: none;
  }

  .arch__product_b::before {
    content: "";
    position: absolute;
    top: -32px;
    left: 50%;
    width: 1px;
    height: 32px;
    background: #B82329;
    display: none;
  }

  .arch__master {
    text-align: center;
    padding: 24px;
    background: var(--n-900);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    min-width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .roles {
    padding: 40px 0;
    background: white;
  }

  .cta {
    padding: 40px 0;
    background: var(--n-900);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .faq {
    padding: 40px 0;
    background: var(--n-50);
  }

  .cta h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
  }

  .arch_img {
    width: 100%;
    margin: 0 auto 15px;
    display: none;
  }

  .footer__col_des {
    color: #fff;
    text-align: center;
  }

  .footer__logo {
    width: 200px;
    margin: 0 auto 15px;
  }

  .footer__brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
  }

  .linky_ai .menu {
    /* border: 1px solid #000; */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    -webkit-transition: all 0.6s ease-in-out;
    transition: all 0.6s ease-in-out;
    background: #9e0d1a;
    height: 60px;
  }

  .linky_ai .menu-m {
    background-color: #9e0d1a;
    background: #9e0d1a;
    height: 60px;
  }

  .linky_ai .menu-nav li a {
    color: #fff;
    font-size: 21px;
    padding: 15px 0;
    display: block;
  }
}