:root {
  --black: #050505;
  --panel: #0b0b0d;
  --panel-soft: #111115;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #9b9ba3;
  --white: #f5f3f8;
  --purple: #a855f7;
  --purple-bright: #d782ff;
  --green: #60f169;
  --cyan: #4ee7f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button, input { font: inherit; }

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

::selection { background: var(--purple); color: #fff; }

.yc-page, .directory-page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--black);
  background-size: 72px 72px;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.ambient {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .11;
  pointer-events: none;
}

.ambient-purple { background: var(--purple); top: 90px; right: -230px; }
.ambient-green { background: var(--green); top: 980px; left: -400px; opacity: .07; }
.ambient-one { background: var(--purple); left: -250px; top: -300px; }
.ambient-two { background: var(--cyan); right: -350px; top: 300px; opacity: .06; }

.site-header {
  width: min(1320px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 130, 255, .5);
  color: var(--purple-bright);
  background: rgba(168, 85, 247, .1);
  font-family: serif;
  font-size: 19px;
  letter-spacing: 0;
}

.yc-header nav { display: flex; gap: 34px; }
.yc-header nav a { color: #a8a8af; font-size: 13px; letter-spacing: .08em; transition: color .2s ease; }
.yc-header nav a:hover, .yc-header nav a:focus-visible { color: #fff; }

.command-pill {
  padding: 10px 18px;
  border: 1px solid rgba(168, 85, 247, .55);
  color: #e7c9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: rgba(168, 85, 247, .08);
}
.command-pill span { color: var(--purple-bright); }

.yc-hero {
  width: min(1320px, calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .87fr 1.13fr;
  align-items: center;
  gap: 70px;
  padding: 76px 0 86px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--purple-bright);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow > span { display: inline-block; width: 28px; height: 1px; margin: 0 12px 3px 0; background: currentColor; }
.eyebrow.green { color: var(--green); }
.eyebrow.cyan { color: var(--cyan); }

.hero-copy h1, .directory-hero h1 {
  margin: 0;
  font-size: clamp(58px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 850;
}
.hero-copy h1 em { color: var(--purple-bright); font-style: normal; text-shadow: 0 0 36px rgba(168, 85, 247, .28); }

.hero-lede {
  max-width: 520px;
  margin: 32px 0 0;
  color: #b3b3bb;
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 40px; }

.primary-button {
  min-width: 158px;
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: #110c14;
  background: var(--purple-bright);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 45px rgba(168, 85, 247, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 55px rgba(168, 85, 247, .3); }

.command-demo { display: flex; align-items: center; gap: 14px; }
.command-demo > span { color: #73737b; font-size: 11px; letter-spacing: .12em; }
kbd {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #3a3a42;
  border-bottom-width: 3px;
  background: #111115;
  color: #f2ddff;
  font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: inset 0 0 16px rgba(168, 85, 247, .08);
}

.hero-stats { display: flex; gap: 36px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 5px; }
.hero-stats strong { font-size: 14px; letter-spacing: .1em; }
.hero-stats span { color: #707077; font-size: 11px; letter-spacing: .08em; }

.hero-visual { position: relative; padding: 30px 0 42px 32px; }
.visual-label { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 12px; }
.visual-label span { color: var(--green); font: 700 10px ui-monospace, monospace; letter-spacing: .18em; }
.visual-label b { color: #5f5f67; font-size: 10px; letter-spacing: .14em; }

.screen-frame {
  position: relative;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.15);
  background: #101014;
  box-shadow: 0 30px 80px rgba(0,0,0,.58);
}
.screen-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.8), inset 0 0 60px rgba(0,0,0,.18);
}
.screen-frame img { width: 100%; height: auto; }
.hero-screen { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(7,7,9,.92);
  backdrop-filter: blur(12px);
  color: #c8c8ce;
  font: 700 10px ui-monospace, monospace;
  letter-spacing: .12em;
}
.floating-note i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.note-one { left: 2px; bottom: 10px; }
.note-two { right: -12px; top: 5px; color: var(--purple-bright); }

.section { width: min(1160px, calc(100% - 64px)); margin: 0 auto; position: relative; z-index: 1; }

.how-section { padding: 124px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .split-feature h2, .final-cta h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.section-heading > p { max-width: 340px; margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; background: var(--line); border: 1px solid var(--line); }
.step-card { min-height: 266px; padding: 28px; background: #08080a; position: relative; }
.step-number { color: var(--purple-bright); font: 700 12px ui-monospace, monospace; }
.step-line { width: 100%; height: 1px; margin: 24px 0 36px; background: linear-gradient(90deg, rgba(216,130,255,.65), transparent); }
.step-card h3 { margin: 0 0 15px; font-size: 19px; letter-spacing: -.02em; }
.step-card kbd { margin-bottom: 14px; }
.step-card p { margin: 0; color: #8f8f97; font-size: 13px; line-height: 1.75; }

.menu-gallery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 90px; }
.gallery-card { margin: 0; align-self: start; }
.gallery-card.large { grid-row: span 2; padding-top: 80px; }
.gallery-card .screen-frame { box-shadow: 0 24px 55px rgba(0,0,0,.36); }
.gallery-card figcaption { display: flex; gap: 15px; align-items: start; padding: 18px 4px; }
.gallery-card figcaption > span { color: var(--purple-bright); font: 700 11px ui-monospace, monospace; }
.gallery-card figcaption div { display: grid; gap: 4px; }
.gallery-card figcaption b { font-size: 15px; }
.gallery-card figcaption small { color: #74747b; font-size: 12px; }

.split-feature {
  min-height: 780px;
  padding: 140px 0;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: 110px;
  border-top: 1px solid var(--line);
}
.split-feature.reverse { grid-template-columns: 1.05fr .95fr; }
.split-feature.reverse .feature-copy { order: 2; }
.split-feature.reverse .feature-visual { order: 1; }
.feature-index { display: block; margin-bottom: 22px; color: #63636b; font: 700 10px ui-monospace, monospace; letter-spacing: .16em; }
.feature-copy h2 { font-size: clamp(42px, 4.3vw, 61px); }

.feature-list { list-style: none; padding: 0; margin: 42px 0 0; display: grid; gap: 0; }
.feature-list li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(96,241,105,.42); color: var(--green); font: 700 11px ui-monospace, monospace; }
.cyan-list li > span { border-color: rgba(78,231,245,.42); color: var(--cyan); }
.feature-list p { margin: 0; display: grid; gap: 4px; }
.feature-list b { font-size: 14px; }
.feature-list small { color: #777780; font-size: 12px; }

.feature-visual { position: relative; padding: 18px 40px 50px 0; }
.feature-visual .screen-frame { max-width: 560px; margin-left: auto; }
.claim-visual { padding: 80px 0 100px 40px; }
.claim-visual .screen-frame { max-width: 550px; margin: 0 auto 0 0; }
.feature-callout { position: absolute; right: 0; bottom: 10px; min-width: 240px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid rgba(96,241,105,.32); background: rgba(7,14,8,.95); box-shadow: 0 18px 55px rgba(0,0,0,.5); }
.feature-callout > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: #081009; font-weight: 900; }
.feature-callout p { margin: 0; display: grid; gap: 3px; }
.feature-callout b { color: var(--green); font-size: 13px; }
.feature-callout small { color: #777f78; font-size: 10px; }
.cyan-callout { left: 0; right: auto; border-color: rgba(78,231,245,.32); background: rgba(4,13,15,.95); }
.cyan-callout > span { background: var(--cyan); }
.cyan-callout b { color: var(--cyan); }

.final-cta { padding: 150px 0 120px; text-align: center; border-top: 1px solid var(--line); }
.final-cta h2 { max-width: 760px; margin: 0 auto; font-size: clamp(48px, 6vw, 78px); }
.cta-command { width: min(480px, 100%); margin: 48px auto 22px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(216,130,255,.4); background: rgba(168,85,247,.075); box-shadow: 0 0 60px rgba(168,85,247,.09); }
.cta-command > span { color: #85858c; font-size: 12px; letter-spacing: .1em; }
.cta-command kbd { font-size: 18px; color: var(--purple-bright); }
.final-cta > p:not(.eyebrow) { color: #777780; font-size: 13px; }
.back-link { display: inline-block; margin-top: 44px; color: #aaaab2; font-size: 12px; border-bottom: 1px solid #4c4c52; padding-bottom: 6px; }

.site-footer { width: min(1320px, calc(100% - 64px)); margin: 0 auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: #66666d; font-size: 11px; letter-spacing: .09em; }
.site-footer .brand { color: #a8a8af; }

/* Directory page */
.directory-header .header-status { color: #777780; font-size: 11px; letter-spacing: .12em; }
.header-status i { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.directory-hero { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 115px 0 72px; position: relative; z-index: 1; }
.directory-hero h1 { max-width: 850px; font-size: clamp(58px, 7vw, 100px); }
.directory-hero h1 span { color: var(--purple-bright); }
.directory-intro { max-width: 560px; margin: 32px 0 0; color: #93939c; line-height: 1.85; }
.directory-grid { width: min(1180px, calc(100% - 64px)); margin: 0 auto 110px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; position: relative; z-index: 1; }
.directory-card { min-height: 380px; padding: 30px; border: 1px solid var(--line); background: #0a0a0d; position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.directory-card.featured:hover { transform: translateY(-4px); border-color: rgba(216,130,255,.48); }
.card-glow { position: absolute; width: 330px; height: 330px; right: 3%; top: -30%; border-radius: 50%; background: var(--purple); filter: blur(100px); opacity: .14; }
.card-topline { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.card-number, .card-command { color: #777780; font: 700 11px ui-monospace, monospace; letter-spacing: .14em; }
.card-command { padding: 6px 10px; border: 1px solid rgba(216,130,255,.35); color: var(--purple-bright); }
.chest-art { position: absolute; width: 150px; height: 130px; right: 16%; top: 95px; filter: drop-shadow(0 24px 35px rgba(0,0,0,.5)); transform: rotate(-3deg); }
.chest-lid, .chest-body { position: absolute; left: 0; width: 150px; border: 5px solid #19120c; background: repeating-linear-gradient(90deg, #8b5522 0 24px, #a86929 24px 28px); }
.chest-lid { height: 48px; top: 0; border-radius: 5px 5px 0 0; box-shadow: inset 0 -8px #6a3e18; }
.chest-body { height: 82px; top: 48px; box-shadow: inset 0 -12px #623914; }
.chest-lock { position: absolute; z-index: 2; width: 24px; height: 34px; left: 63px; top: 40px; border: 4px solid #21180e; background: #cf9b39; }
.card-copy { position: absolute; left: 30px; bottom: 30px; z-index: 2; }
.card-copy p { margin: 0 0 8px; color: var(--purple-bright); font: 700 10px ui-monospace, monospace; letter-spacing: .15em; }
.card-copy h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.card-copy > span { color: #777780; font-size: 12px; }
.card-arrow { position: absolute; right: 30px; bottom: 28px; font-size: 22px; color: var(--purple-bright); }
.directory-card.muted { opacity: .5; }
.directory-card.muted .card-copy p { color: #777780; }
.directory-footer { margin-bottom: 0; }

@media (max-width: 980px) {
  .yc-header nav { display: none; }
  .yc-hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { max-width: 760px; }
  .split-feature, .split-feature.reverse { grid-template-columns: 1fr; gap: 50px; }
  .split-feature.reverse .feature-copy, .split-feature.reverse .feature-visual { order: initial; }
  .feature-copy { max-width: 650px; }
  .feature-visual { width: min(680px, 100%); }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card.muted { min-height: 260px; }
}

@media (max-width: 700px) {
  .site-header, .yc-hero, .section, .site-footer, .directory-hero, .directory-grid { width: min(100% - 36px, 1180px); }
  .site-header { height: 76px; }
  .brand { letter-spacing: .08em; }
  .command-pill { padding: 9px 12px; }
  .yc-hero { padding: 68px 0 82px; min-height: auto; gap: 56px; }
  .hero-copy h1, .directory-hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-lede { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-stats { gap: 22px; }
  .hero-visual { padding-left: 0; }
  .note-two { right: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 220px; }
  .menu-gallery { grid-template-columns: 1fr; }
  .gallery-card.large { grid-row: auto; padding-top: 0; }
  .split-feature { padding: 100px 0; }
  .feature-visual, .claim-visual { padding: 10px 0 64px; }
  .feature-callout, .cyan-callout { right: 10px; left: auto; bottom: 0; }
  .final-cta { padding: 110px 0 90px; }
  .site-footer { padding: 28px 0; flex-direction: column; align-items: flex-start; }
  .directory-hero { padding: 85px 0 58px; }
  .directory-grid { margin-bottom: 70px; }
  .directory-card { min-height: 420px; }
  .chest-art { right: 11%; top: 100px; transform: scale(.88) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
