/* BA Skills for Claude: site theme, "phong cách xanh".
   White canvas + drifting perspective grid, green to blue gradient, Roboto, rounded cards, duotone icons. */
:root {
  --ink: #17303B;
  --muted: #5B6B74;
  --green: #5FBE96; --green-d: #3E9B76; --green-text: #2E7D5F;
  --blue: #4A97D6; --blue-d: #2E76B4;
  --grad: linear-gradient(135deg, #5FBE96, #4A97D6);
  --tint-g: #EAF6F0; --tint-b: #EAF3FB;
  --red: #D14B3F;
  --card-border: rgba(62, 155, 118, .22);
  --shadow: 0 18px 44px rgba(23, 48, 59, .08);
  --radius: 28px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; color: var(--ink); background: #fff; font: 400 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* continuous soft washes behind everything: green top-left, blue right */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 0% 0%, rgba(95, 190, 150, .16), transparent 62%),
    radial-gradient(820px 620px at 100% 18%, rgba(74, 151, 214, .14), transparent 62%),
    #fff;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.gr { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1.5px solid var(--card-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.02em; font-size: 1.12rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(74, 151, 214, .28); }
.logo svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
nav a { color: var(--ink); font-weight: 500; font-size: .96rem; padding: 8px 14px; border-radius: 999px; }
nav a:hover { background: var(--tint-g); text-decoration: none; }
nav a.lang { color: var(--blue-d); }
.site-header a.gh { background: var(--grad); color: #fff; font-weight: 700; font-size: .96rem; padding: 9px 18px; border-radius: 999px; }
.site-header a.gh:hover { filter: brightness(1.05); text-decoration: none; }

/* ---------- buttons, pills, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid var(--card-border);
  margin: 4px 8px 4px 0; transition: transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 28px rgba(74, 151, 214, .3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: var(--tint-g); border: 1.5px solid var(--card-border); color: var(--green-text); font-weight: 500; font-size: .94rem;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }

/* ---------- hero with drifting perspective floor grid ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; perspective: 760px; perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 48%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 48%, #000 70%, transparent 100%);
}
.hero-grid .plane {
  position: absolute; left: -60%; right: -60%; top: 16%; height: 360%; transform-origin: 50% 0; transform: rotateX(62deg);
  background-image:
    linear-gradient(rgba(62, 155, 118, .22) 2px, transparent 2px),
    linear-gradient(90deg, rgba(62, 155, 118, .22) 2px, transparent 2px),
    linear-gradient(rgba(74, 151, 214, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 151, 214, .13) 1px, transparent 1px);
  background-size: 144px 144px, 144px 144px, 48px 48px, 48px 48px;
  animation: drift 14s linear infinite;
}
@keyframes drift { from { transform: rotateX(62deg) translateY(0); } to { transform: rotateX(62deg) translateY(144px); } }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; padding-top: 70px; padding-bottom: 62px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.03; font-weight: 900; letter-spacing: -.035em; margin: 20px 0 18px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin: 0 0 26px; line-height: 1.6; }
.hero .lead b { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { margin: 0; }
.stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2.7rem; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-weight: 500; font-size: .98rem; }

/* terminal card */
.term { background: var(--ink); color: #E8F1F5; border-radius: 24px; box-shadow: 0 24px 60px rgba(23, 48, 59, .28); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: rgba(255, 255, 255, .05); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.term-bar i:nth-child(1) { background: #5FBE96; } .term-bar i:nth-child(2) { background: #4A97D6; }
.term-bar span { margin-left: auto; font: 500 .8rem var(--mono); color: rgba(232, 241, 245, .55); }
.term pre { margin: 0; padding: 20px 22px 24px; background: transparent; border-radius: 0; box-shadow: none; font: 400 .9rem/1.85 var(--mono); color: inherit; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.term .p { color: #5FBE96; } .term .c { color: rgba(232, 241, 245, .55); } .term .s { color: #8CC3EE; }

/* ---------- sections and content ---------- */
.content { padding-top: 34px; padding-bottom: 60px; overflow-wrap: break-word; }
.content.narrow { max-width: 880px; }
.content > h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; font-weight: 900; letter-spacing: -.03em; margin: .3em 0 .7em; }
.content > h1::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--grad); margin-top: 16px; }
.content h2 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; margin: 2.1em 0 .6em; padding-left: 16px; position: relative; line-height: 1.25; }
.content h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 6px; border-radius: 6px; background: var(--grad); }
.content h3 { font-size: 1.22rem; font-weight: 700; margin: 1.7em 0 .4em; }
.content p, .content li { max-width: 72ch; }
.content ul, .content ol { padding-left: 1.3em; } .content li { margin: .3em 0; }
.content li::marker { color: var(--green-d); }
.section { padding-top: 58px; padding-bottom: 10px; }
.section > h2, .section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 12px; padding: 0; }
.section > h2::before, .section-head h2::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 44em; margin: 0 0 26px; }
hr { border: 0; height: 2px; background: var(--card-border); margin: 2.4em 0; }
blockquote { margin: 1.3em 0; padding: 14px 20px; background: var(--tint-g); border-radius: 0 18px 18px 0; position: relative; color: var(--ink); }
blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 5px; background: var(--grad); }
blockquote p { margin: .3em 0; }

/* tables */
.content table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0;
  border: 2px solid var(--card-border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.content th { background: var(--tint-g); font-weight: 700; text-align: left; }
.content th, .content td { padding: 11px 16px; vertical-align: top; border-bottom: 1px solid rgba(62, 155, 118, .14); }
.content tr:first-child th:first-child { border-top-left-radius: 15px; } .content tr:first-child th:last-child { border-top-right-radius: 15px; }
.content tr:last-child td { border-bottom: 0; }
.content td:first-child { font-weight: 500; }
@media (max-width: 760px) { .content table { display: block; overflow-x: auto; } .content th { white-space: nowrap; } }

/* code */
code { font-family: var(--mono); font-size: .88em; background: var(--tint-b); color: #1E4F73; padding: .12em .42em; border-radius: 7px; }
pre { background: var(--ink); color: #E8F1F5; padding: 18px 20px; border-radius: 20px; overflow-x: auto; line-height: 1.65; box-shadow: var(--shadow); }
pre code { background: none; color: inherit; padding: 0; font-size: .9rem; }
.mermaid { background: #fff; border: 2px solid var(--card-border); border-radius: 22px; padding: 16px; overflow-x: auto; text-align: center; box-shadow: var(--shadow); margin: 1.4em 0; }

/* ---------- cards with duotone icons ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 20px; margin: 8px 0 6px; }
.card {
  position: relative; background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 24px 24px 22px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-4px); border-color: rgba(74, 151, 214, .45); box-shadow: 0 26px 56px rgba(23, 48, 59, .12); }
.cards.five { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
@media (min-width: 1080px) { .cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .cards.five .card { padding: 20px 18px 18px; } .cards.five .card h3 { font-size: 1.04rem; } .cards.five .card p { font-size: .9rem; } .cards.five .card .num { right: 18px; } }
.compare { align-items: start; }
.card .num { position: absolute; top: 22px; right: 24px; font: 700 .85rem var(--mono); color: var(--green-d); opacity: .7; }
.tile { width: 52px; height: 52px; border-radius: 16px; background: var(--tint-g); display: grid; place-items: center; }
.tile.b { background: var(--tint-b); }
.ic { width: 28px; height: 28px; fill: none; stroke: url(#grad); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is the link */
.card h3 a:hover { text-decoration: none; color: var(--blue-d); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.card .tag { margin-top: auto; padding-top: 6px; font-size: .82rem; font-weight: 500; color: var(--green-text); }
.card .tag.src { color: var(--muted); }

/* before / after comparison */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; margin: 8px 0; }
.panel { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel.win { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.panel h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.panel .big { display: block; font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.panel .big.bad { color: var(--red); }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { padding: 7px 0 7px 30px; position: relative; max-width: none; margin: 0; border-bottom: 1px dashed rgba(62, 155, 118, .2); }
.panel li:last-child { border-bottom: 0; }
.panel li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--tint-g); border: 2px solid var(--green); }
.panel.lose li::before { background: #fff; border-color: rgba(91, 107, 116, .45); }
.panel li b { color: var(--ink); }

/* figures (token demo) */
.figure { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; margin: 18px 0; overflow: hidden; }
.figure .scroll { overflow-x: auto; border-radius: 20px; }
.figure img { display: block; width: 100%; border-radius: 20px; }
.figure .swipe { display: none; }
.figure figcaption { padding: 14px 16px 8px; color: var(--muted); font-size: .98rem; }
.figure figcaption b { color: var(--ink); }
.pair { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 1000px; }
.pair .figure { margin: 0; }

/* install steps and FAQ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 18px; counter-reset: s; }
.step { counter-increment: s; background: #fff; border: 2px solid var(--card-border); border-radius: 24px; padding: 20px 22px; box-shadow: var(--shadow); }
.step::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; } .step p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.step code { white-space: normal; word-break: break-word; display: inline-block; margin: 2px 0; }
details { background: #fff; border: 2px solid var(--card-border); border-radius: 20px; padding: 4px 20px; margin: 12px 0; box-shadow: var(--shadow); width: 100%; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; color: var(--green-d); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 30px; padding: 30px 0 38px; color: var(--muted); font-size: .94rem; background: linear-gradient(to bottom, rgba(234, 246, 240, .6), #fff); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.site-footer p { margin: .3em 0; } .site-footer a { color: var(--ink); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  body { font-size: 16.5px; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; gap: 30px; }
  .stat b { font-size: 2.3rem; }
  .section { padding-top: 44px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav { min-height: 0; padding-top: 10px; padding-bottom: 0; row-gap: 2px; }
  .brand { order: 1; font-size: 1.05rem; } .logo { width: 32px; height: 32px; }
  .site-header a.gh { order: 2; margin-left: auto; padding: 8px 15px; font-size: .9rem; }
  nav { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 0 8px; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; padding: 10px 14px; font-size: .95rem; }
  .content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0 / 28px 100% no-repeat local,
                linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0 / 28px 100% no-repeat local,
                linear-gradient(to right, rgba(23,48,59,.16), rgba(23,48,59,0)) 0 0 / 12px 100% no-repeat scroll,
                linear-gradient(to left, rgba(23,48,59,.16), rgba(23,48,59,0)) 100% 0 / 12px 100% no-repeat scroll, #fff; }
  .content th { white-space: normal; }
  .pair { grid-template-columns: 1fr; }
  .figure .scroll img { width: 760px; max-width: none; }
  .figure .swipe { display: block; margin: 8px 6px 0; font-size: .84rem; color: var(--muted); }
}
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.65; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 30px; padding-bottom: 40px; gap: 26px; }
  .hero h1 { margin: 16px 0 14px; letter-spacing: -.03em; }
  .hero .lead { font-size: 1.04rem; margin-bottom: 20px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { justify-content: center; padding: 13px 12px; }
  .hero-cta .btn.primary { grid-column: 1 / -1; }
  .stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; margin-top: 22px; }
  .stat b { font-size: 1.85rem; } .stat span { font-size: .84rem; }
  .term pre { font-size: .8rem; padding: 16px 16px 20px; line-height: 1.75; }
  .section { padding-top: 38px; }
  .section-head p { font-size: 1.02rem; margin-bottom: 20px; }
  .panel { padding: 20px; } .panel .big { font-size: 2.05rem; }
  /* cards become compact rows: icon on the left, text on the right */
  .cards, .cards.five { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 3px; padding: 16px; border-radius: 22px; align-items: start; }
  .card .num { display: none; }
  .card .tile { grid-row: 1 / span 3; width: 46px; height: 46px; border-radius: 14px; }
  .card > :not(.tile):not(.num) { grid-column: 2; }
  .card h3 { margin: 0; font-size: 1.05rem; } .card p { font-size: .92rem; } .card .tag { padding-top: 2px; }
  .step, details { border-radius: 20px; }
  .step { padding: 18px; }
  summary { padding: 13px 0; font-size: 1rem; }
  .content { padding-top: 22px; padding-bottom: 44px; }
  .content > h1 { font-size: 1.75rem; } .content > h1::after { margin-top: 12px; height: 5px; }
  .content h2 { font-size: 1.38rem; margin-top: 1.8em; }
  .content h3 { font-size: 1.1rem; }
  pre { padding: 14px 16px; border-radius: 16px; } pre code { font-size: .82rem; }
  .content th, .content td { padding: 10px 12px; }
  .mermaid { padding: 10px; border-radius: 18px; }
  .site-footer { padding: 26px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-grid .plane { animation: none; }
  .card, .btn { transition: none; }
}
