/* Homepage direction: Tinycast's centered, violet-on-black visual language. */
:root {
  color-scheme: dark;
  --canvas: #040506;
  --surface: #0b0c0e;
  --ink: #f5f5f6;
  --muted: #a1a1a6;
  --rule: #242428;
  --accent: #803bfa;
  --accent-bright: #af85ff;
  --mono: 'Geist Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--canvas); color: var(--muted); font: 16px/1.65 'Geist', sans-serif; -webkit-font-smoothing: antialiased; }
.brew-home:lang(ja) { font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif; --mono: 'Geist Mono', 'Hiragino Sans', 'Yu Gothic', monospace; }
.brew-home:lang(zh-Hans) { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; --mono: 'Geist Mono', 'PingFang SC', 'Microsoft YaHei', monospace; }
.brew-home:lang(ja) em { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { color: var(--ink); }
h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; }
section[id] { scroll-margin-top: 95px; }
.brew-skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 20px; background: var(--canvas); transform: translateY(-200%); }
.brew-skip-link:focus { transform: none; }
.brew-nav { position: sticky; top: 0; z-index: 20; height: 64px; max-width: 1152px; margin: auto; padding: 0 20px; display: flex; gap: 28px; align-items: center; background: #040506ed; backdrop-filter: blur(16px); }
.brew-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.brew-brand img { width: 26px; height: 26px; object-fit: contain; }
.brew-nav-links, .brew-nav-actions { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.brew-nav-actions { margin-left: auto; gap: 20px; }
.brew-nav a:hover, .brew-text-link:hover, .brew-footer a:hover { color: white; }
.brew-download, .brew-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 24px; border-radius: 999px; background: var(--accent); color: white; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.brew-download { min-height: 32px; padding: 5px 16px; font-size: 12px; }
.brew-download:hover, .brew-cta:hover { background: #7130e5; }
.brew-usecases { max-width: 1152px; margin: auto; }
.brew-hero { position: relative; padding: 48px 40px 64px; text-align: center; isolation: isolate; }
.brew-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(#72707d55 .8px, transparent 1px) 0 0 / 24px 24px; mask-image: radial-gradient(ellipse at 50% 25%, black, transparent 72%); }
.brew-eyebrow { font: 10px/1.6 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.brew-hero .brew-eyebrow::before, .live-dot { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.brew-hero h1 { max-width: 940px; margin: 26px auto 0; font-size: clamp(40px, 5.65vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.brew-hero h1 em { font-style: normal; }
.brew-hero .trust-hero { max-width: 1040px; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.16; }
.trust-hero > span, .trust-hero > em { display: block; }
.trust-hero > span:nth-child(2) { font-style: italic; }
.trust-hero > em { color: var(--accent-bright); }
.brew-hero-summary { max-width: 580px; margin: 30px auto 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.brew-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; margin-top: 34px; }
.brew-text-link { display: inline-block; color: var(--muted); font-size: 14px; }
.brew-text-link span { margin-left: 6px; }
.brew-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; min-height: 1.65em; margin-top: 16px; color: var(--muted); font-size: 14px; }
.brew-statistic { min-height: 1.65em; }
@media (max-width: 600px) { .brew-stats { flex-direction: column; } }
.brew-statistic strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.brew-hero-note { margin-top: 22px; font: 10px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.brew-hero-proof { margin: 24px auto 0; }
.brew-hero-proof .brew-hero-summary { margin-top: 0; }
.brew-hero-preview { display: block; width: min(100%, 624px); margin: 24px auto 0; }
.aws-demo { padding: 0 64px 80px; }
.demo-desktop { position: relative; height: 540px; overflow: hidden; border: 1px solid #4a4850; border-radius: 26px; background: radial-gradient(ellipse at 10% 100%, #302244, transparent 60%), radial-gradient(ellipse at 90% 0%, #393440, transparent 60%), #121216; box-shadow: 0 32px 80px #0008; }
.demo-menubar { display: flex; justify-content: space-between; padding: 10px 20px; background: #ffffff06; border-bottom: 1px solid #ffffff0a; font-size: 11px; color: #d5d3da; }
.demo-terminal { position: absolute; top: 92px; left: 5%; width: 82%; height: 330px; border: 1px solid #45434a; border-radius: 12px; background: #18181bea; box-shadow: 0 24px 50px #0006; }
.window-bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #ffffff0b; font-size: 11px; color: #b4b1b9; }
.demo-session { display: flex; align-items: center; gap: 7px; }
.demo-session img { border-radius: 4px; }
[data-secrets] { white-space: pre-line; }
.traffic-lights { color: #99959d; letter-spacing: 3px; }
.terminal-content { padding: 24px; font: 14px/1.8 var(--mono); color: #ededf2; }
.terminal-context { margin-bottom: 18px; color: #aaa5b4; }
.terminal-context span { color: #b695ec; padding-left: 12px; }
.prompt { color: #a67ce7; }
.terminal-content pre { font: inherit; color: #a2a0a9; white-space: pre-wrap; margin: 8px 0 22px; }
.write-command { overflow-wrap: anywhere; }
.terminal-wait { margin-top: 10px; color: #dbb972; }
/* Claude's scene reads as an agent transcript, with Bash calls and tool output. */
.demo-terminal[data-agent="true"] { top: 62px; height: 430px; background: #1d1b19; border-color: #6b5144; }
[data-agent="true"] .terminal-content { font-size: 13px; line-height: 1.65; }
[data-agent="true"] .terminal-context, [data-agent="true"] .prompt { display: none; }
.claude-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #e6b097; }
.claude-brand span { margin-left: auto; font-size: 11px; color: #aaa29a; }
.claude-request { padding: 8px 12px; border-left: 2px solid #cc9277; background: #ffffff08; }
.claude-plan { margin: 14px 0; color: #ded8d1; }
.claude-thinking { color: #dba083; }
[data-agent="true"] [data-read-command]::before, [data-agent="true"] [data-write-command]::before { content: '● Bash('; color: #dba083; font-weight: 600; }
[data-agent="true"] [data-read-command]::after, [data-agent="true"] [data-write-command]::after { content: ')'; color: #dba083; }
[data-agent="true"] [data-read-line] { overflow-wrap: anywhere; }
[data-agent="true"] .terminal-content pre { margin: 8px 0 20px 8px; padding-left: 14px; border-left: 1px solid #66564b; color: #aba79e; }
[data-agent="true"] .terminal-wait { padding-left: 22px; font-size: 12px; }
.demo-notification { max-width: calc(100% - 36px); position: absolute; top: 52px; right: 18px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #37353ded; border: 1px solid #77717d; border-radius: 18px; box-shadow: 0 14px 32px #0005; color: white; }
.demo-notification strong, .demo-notification span, .demo-notification small { display: block; font-size: 11px; line-height: 1.6; }
.demo-notification > div { min-width: 0; }
.demo-notification > img { flex-shrink: 0; }
.demo-notification small { color: #c5bfce; overflow-wrap: anywhere; }
.demo-notification .notification-check { color: #acdab4; font-size: 18px; }
.demo-approval { position: absolute; width: 400px; right: 5%; top: 115px; padding: 22px; border-radius: 22px; border: 1px solid #65616d; background: linear-gradient(145deg, #35333ced, #24232cec); box-shadow: 0 24px 70px #0009; color: #eeedf2; backdrop-filter: blur(20px); text-align: center; }
.demo-approval > img { margin: 0 auto 10px; }
.demo-approval h3 { font-size: 17px; font-weight: 600; }
.demo-approval > p { margin: 5px 0 14px; font-size: 11px; color: #c9c4d1; }
.approval-command { padding: 12px; border-radius: 8px; background: #0004; font: 11px/1.7 var(--mono); text-align: left; overflow-wrap: anywhere; }
.demo-approval dl { margin: 12px 0 16px; font-size: 10px; text-align: left; }
.demo-approval dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.demo-approval dt { color: #b5aebf; }
.demo-approval dd { margin: 0; text-align: right; }
.approval-buttons { display: flex; gap: 12px; font-size: 12px; }
.approval-buttons span { flex: 1; border-radius: 7px; background: #ffffff17; padding: 6px; }
.approval-buttons span:last-child { background: #087ef1; color: white; }
.demo-controls { display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 11px/1.6 var(--mono); letter-spacing: .04em; }
.demo-controls { padding: 16px 4px; }
.demo-controls button { border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); padding: 9px 15px; font: 11px var(--mono); letter-spacing: 0; white-space: nowrap; }
.demo-controls button:disabled { display: none; }
.demo-desktop [hidden] { display: none; }
.brew-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding: 96px 40px; border-top: 1px solid #ffffff0b; }
.brew-feature-reverse > .brew-copy { grid-column: 2; grid-row: 1; }
.brew-feature-reverse > .brew-capture { grid-column: 1; grid-row: 1; }
.brew-copy { min-width: 0; }
.brew-copy .brew-eyebrow { margin: 0 0 16px; }
.brew-copy p { margin-top: 20px; font-size: 15px; line-height: 1.7; }
.brew-copy > .brew-text-link { display: block; width: fit-content; margin-top: 20px; color: var(--accent-bright); }
.brew-copy .brew-boundary { border-top: 1px solid var(--rule); padding-top: 16px; font-size: 14px; }
.brew-capture { min-width: 0; }
.brew-capture > img { width: 100%; border-radius: 12px; }
.brew-capture figcaption { margin-top: 15px; font-size: 14px; text-align: center; }
.brew-capture-phone { max-width: 240px; justify-self: center; }
.brew-phone-frame { padding: 6px; border: 1px solid #555; border-radius: 34px; background: #111; }
.brew-phone-frame img { border-radius: 28px; }
.brew-scanner-terminal { margin-top: 26px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); overflow: hidden; }
.brew-scanner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-size: 11px; }
.brew-copy-command { display: flex; align-items: center; gap: 6px; min-height: 32px; border: 0; background: transparent; font-size: 11px; }
.brew-copy-command:disabled { opacity: .5; }
.brew-copy-command[data-state='copied'] { color: #a6dab0; }
.brew-scanner-command { display: flex; gap: 10px; padding: 16px; font: 12px/1.7 var(--mono); color: var(--ink); }
.brew-scanner-command code { font: inherit; overflow-wrap: anywhere; min-width: 0; }
.brew-scanner-command > span { color: var(--accent-bright); }
.brew-copy .brew-scanner-note { margin-top: 10px; font-size: 13px; }
.brew-security { align-items: start; }
.brew-pricing { padding: 96px 40px; border-top: 1px solid var(--rule); text-align: center; }
.brew-pricing p { max-width: 650px; margin: 24px auto; }
.brew-pricing .brew-hero-actions { margin-top: 28px; }
.brew-footer { max-width: 1072px; margin: 0 auto; padding: 60px 0 32px; border-top: 1px solid var(--rule); }
.brew-footer-lead { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.brew-footer-lead p { max-width: 650px; font-size: 32px; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.brew-footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 12px; }
.brew-footer-meta nav { display: flex; flex-wrap: wrap; gap: 20px; }
.brew-footer-meta > span { margin-left: auto; }
.brew-footer-meta .brew-languages { flex-basis: 100%; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 11px; }

.tool-boundary { padding: 64px 40px 80px; border-top: 1px solid var(--rule); }
.tool-boundary .brew-eyebrow { font-size: 10px; }
.boundary-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.operation-example { min-width: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.operation-example > h3 { font-size: 23px; letter-spacing: -.025em; }
.operation-example > p { margin-top: 12px; font-size: 14px; }
.operation-example table { width: 100%; border-collapse: collapse; margin-top: 24px; text-align: left; font-size: 12px; }
.operation-example caption { text-align: left; font: 12px/1.8 var(--mono); color: var(--muted); padding-bottom: 12px; }
.operation-example thead { color: var(--muted); font-size: 12px; }
.operation-example th, .operation-example td { padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.operation-example th:first-child { padding-right: 16px; }
.operation-example td { color: #d5c4f5; }
.operation-example code { font: 12px var(--mono); color: var(--ink); }
.operation-example small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.operation-example .decision-allowed { color: #a6dab0; }
.operation-example .operation-note { font-size: 13px; margin-top: 16px; }
.hardening-proof { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hardening-proof article { border-top: 1px solid var(--rule); padding-top: 24px; }
.hardening-proof h3 { margin-top: 14px; font-size: 18px; }
.hardening-proof article > p:not(.brew-eyebrow) { margin-top: 12px; font-size: 13px; }
.hardening-proof a { margin-top: 16px; color: var(--accent-bright); font-size: 12px; }

.script-proof { align-items: start; }
.approval-intro { grid-column: 1; grid-row: 1; }
.approval-intro h2 { margin-top: 16px; }
.approval-intro > p:last-child { margin-top: 20px; }
.script-proof > .brew-copy { grid-column: 2; }
.brew-capture-script { grid-column: 1 / -1; width: min(100%, 760px); justify-self: center; }
#gallery { scroll-margin-top: 95px; }

@media (max-width: 800px) {
  .tool-boundary { padding: 64px 24px; }
  .boundary-intro { grid-template-columns: 1fr; gap: 32px; }
  .hardening-proof { gap: 24px; }
  .brew-nav { gap: 16px; }
  .brew-nav-links { gap: 14px; }
  .brew-github { display: none; }
  .brew-feature { gap: 32px; padding: 64px 24px; }
  .aws-demo { padding: 0 24px 48px; }
  .brew-hero { padding: 40px 24px 48px; }
  .brew-footer { margin: 0 24px; }
  .demo-terminal { width: 90%; }
}
@media (max-width: 600px) {
  .hardening-proof { grid-template-columns: 1fr; gap: 24px; }
  .operation-example { padding: 18px; }
  .operation-example code { font-size: 11px; }
  .brew-nav { height: 64px; padding: 0 16px; }
  .brew-nav-links { display: none; }
  .brew-download { font-size: 10px; padding-inline: 12px; }
  .brew-brand { font-size: 13px; gap: 6px; }
  .brew-hero { padding-top: 32px; }
  .brew-hero h1 { font-size: 42px; }
  .brew-hero-summary { font-size: 16px; }
  .brew-hero-note { font-size: 9px; }
  .aws-demo { padding-inline: 16px; }
  .demo-desktop { height: 630px; border-radius: 18px; }
  .menu-extra { display: none; }
  .demo-menubar { padding-inline: 12px; font-size: 9px; }
  .demo-terminal { top: 58px; left: 4%; width: 92%; height: 280px; }
  .terminal-content { padding: 16px; font-size: 11px; }
  .demo-terminal[data-agent="true"] { top: 58px; height: 520px; }
  [data-agent="true"] .terminal-content { font-size: 11px; }
  .claude-brand { flex-wrap: wrap; gap: 8px; }
  .claude-brand span { flex-basis: 100%; margin-left: 0; }
  .claude-plan { margin: 12px 0; }
  .demo-notification { top: 72px; right: 10px; padding: 10px; gap: 8px; }
  .demo-notification span { font-size: 10px; }
  .demo-approval { top: 225px; width: calc(100% - 28px); right: 14px; padding: 16px; }
  .demo-approval > img { width: 32px; height: 32px; }
  .demo-controls { font-size: 10px; gap: 8px; }
  .demo-controls .live-dot { display: none; }
  .demo-controls > span { max-width: 180px; }
  .brew-feature { grid-template-columns: 1fr; gap: 36px; }
  .brew-feature-reverse > .brew-copy, .brew-feature-reverse > .brew-capture { grid-column: auto; grid-row: auto; }
  .script-proof > .brew-copy, .approval-intro { grid-column: auto; grid-row: auto; }
  .brew-capture-phone { max-width: 230px; }
  .brew-pricing { padding: 64px 24px; }
  .brew-footer-lead { flex-direction: column; align-items: start; }
  .brew-footer-meta > span { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
