:root { color-scheme: light; }
:root.dark, [data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--foreground); background: var(--background); font: var(--fpe-weight-body) var(--fpe-size-body)/var(--fpe-leading-body) var(--fpe-font-sans); font-kerning: normal; font-synthesis: none; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
::selection { background: var(--muted); color: var(--foreground); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--fpe-gradient-brand); color: #000; }
.skip-link:focus { top: 10px; }
.site-shell { max-width: 1920px; margin: auto; }
.section-wrap { max-width: 1600px; padding-inline: clamp(24px, 5.4vw, 92px); margin-inline: auto; }

.site-header { height: 76px; padding-inline: clamp(24px, 5.4vw, 92px); display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); background: var(--background); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.brand-mark { width: 28px; height: 24px; object-fit: contain; }
[data-theme="light"] .brand-mark { filter: brightness(0); }
.brand-context { color: var(--muted-foreground); border-left: 1px solid var(--border); padding-left: 17px; font-size: 13px; white-space: nowrap; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); font-size: 13px; font-weight: 500; }
.main-nav a { color: var(--muted-foreground); transition: color .16s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; margin-left: 22px; }
.theme-toggle, .github-link, .menu-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; background: transparent; border: none; color: var(--foreground); font-size: 12px; font-weight: 600; white-space: nowrap; }
.theme-toggle:hover, .github-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.theme-icon { font-size: 17px; line-height: 1; }
.github-link { border-bottom: 1px solid currentColor; }
.menu-toggle { display: none; }

.hero { padding-top: clamp(68px, 8vw, 128px); }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: clamp(32px, 6vw, 110px); align-items: end; padding-bottom: clamp(48px, 6vw, 80px); }
h1 { max-width: 890px; font-size: clamp(54px, 6.6vw, var(--fpe-size-display)); line-height: var(--fpe-leading-display); letter-spacing: var(--fpe-tracking-display); font-weight: var(--fpe-weight-display); }
.fpe-gradient-text, h1 span, .section-heading h2 span, .type-big span, .pill-pink {
  color: transparent;
  background: var(--fpe-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports not (background-clip: text) {
  .fpe-gradient-text, h1 span, .section-heading h2 span, .type-big span, .pill-pink { background: none; color: var(--foreground); }
}
.hero-details { padding-bottom: 9px; }
.hero-details > p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; letter-spacing: -.005em; color: var(--muted-foreground); max-width: 430px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.button-primary, .button-outline, .button-ghost { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 17px; border-radius: 3px; border: 1px solid transparent; font-size: 13px; font-weight: 600; line-height: 1.3; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.button-primary {
  position: relative;
  background: linear-gradient(var(--background), var(--background)) padding-box, var(--fpe-gradient-brand) border-box;
  color: var(--foreground);
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 11px 18px;
  gap: 20px;
  min-height: 46px;
}
.button-primary:hover {
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--fpe-gradient-brand) border-box;
  transform: translateY(-1px);
}
.button-primary > [aria-hidden="true"] {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: transparent;
  background: var(--fpe-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform var(--fpe-motion-fast) var(--fpe-ease-standard);
}
.button-primary:hover > [aria-hidden="true"] { transform: translate(2px, -2px); }
.button-primary:active { transform: translateY(1px); }
.button-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.button-outline:hover { border-color: var(--foreground); }
.button-ghost { padding-inline: 3px; background: transparent; color: var(--foreground); }
.button-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.text-link:hover { border-color: var(--foreground); }
.hero-preview { display: grid; grid-template-columns: .97fr 1.03fr; min-height: 380px; border: 1px solid var(--border); }
.preview-brand { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; background: var(--fpe-gradient-hero); min-height: 380px; overflow: hidden; }
.preview-brand > img { width: clamp(128px, 15vw, 220px); max-height: 205px; height: auto; }
.preview-brand-footer { position: absolute; bottom: 25px; inset-inline: 28px; display: flex; justify-content: space-between; color: #fff; font: 500 10px/1.3 var(--fpe-font-mono); letter-spacing: .03em; }
.preview-interface { min-width: 0; background: var(--card); }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 28px; border-bottom: 1px solid var(--border); }
.preview-toolbar strong { font-size: 13px; font-weight: 600; }
.preview-toolbar span { font: 400 11px/1.5 var(--fpe-font-mono); color: var(--muted-foreground); }
.preview-body { padding: clamp(24px, 3.1vw, 46px) 28px 26px; }
.preview-heading { font-size: clamp(23px, 2.2vw, 32px); line-height: var(--fpe-leading-subheading); letter-spacing: var(--fpe-tracking-subheading); font-weight: var(--fpe-weight-subheading); }
.preview-description { color: var(--muted-foreground); margin-top: 8px; font-size: 14px; }
.preview-buttons { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.preview-control { display: grid; grid-template-columns: 120px 1fr; gap: 15px; align-items: center; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 17px; }
.preview-control label { font-size: 12px; font-weight: 500; }
.preview-control input { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--input); background: var(--background); color: var(--foreground); border-radius: 3px; font-size: 13px; }
.preview-control input:focus-visible { outline-offset: 2px; }
.preview-response { margin-top: 15px; color: var(--muted-foreground); font: 400 11px/1.5 var(--fpe-font-mono); }

.content-section { padding-top: clamp(88px, 9vw, 132px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 56px; padding-bottom: 30px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.section-heading h2 { max-width: 900px; font-size: clamp(40px, 4.8vw, var(--fpe-size-heading)); line-height: var(--fpe-leading-heading); letter-spacing: var(--fpe-tracking-heading); font-weight: var(--fpe-weight-heading); }

.section-heading > p { max-width: 375px; color: var(--muted-foreground); font-size: 15px; line-height: 1.6; margin-bottom: 4px; }
.logo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 60px; }
.logo-tile { min-height: 260px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px; padding: 26px; }
.logo-tile img { width: 34%; max-width: 155px; height: 120px; object-fit: contain; }
.logo-tile span { font-size: 12px; opacity: .78; }
.logo-tile-white { background: #fff; color: #000; }
.foundation-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(35px, 5vw, 78px); }
.foundation-panel { border-top: 1px solid var(--border); padding-top: 20px; }
.foundation-panel h3, .specimen h3 { font-size: var(--fpe-size-subheading); line-height: var(--fpe-leading-subheading); letter-spacing: var(--fpe-tracking-subheading); font-weight: var(--fpe-weight-subheading); }
.foundation-panel p { font-size: 14px; color: var(--muted-foreground); margin-top: 10px; margin-bottom: 24px; max-width: 490px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.swatch > span { display: block; height: clamp(75px, 8vw, 126px); margin-bottom: 11px; border: 1px solid var(--border); background: var(--swatch); }
.swatch .swatch-gradient { background: var(--fpe-gradient-hero); }
.swatch .swatch-bright { background: var(--fpe-gradient-brand); }
.swatch .swatch-black { background: #000; }
.swatch .swatch-white { background: #fff; }
.swatch strong, .swatch small { display: block; font-size: 12px; line-height: 1.5; }
.swatch strong { font-weight: 600; }
.swatch small { font-family: var(--fpe-font-mono); font-size: 10px; color: var(--muted-foreground); }
.type-display { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 180px; }
.type-big { font-size: clamp(88px, 10vw, 148px); line-height: var(--fpe-leading-display); letter-spacing: var(--fpe-tracking-display); font-weight: var(--fpe-weight-display); }

.type-mono { font: 400 12px/1.85 var(--fpe-font-mono); color: var(--muted-foreground); }
.component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.specimen { min-width: 0; min-height: 250px; padding: 26px 24px 24px 0; }
.specimen + .specimen { border-left: 1px solid var(--border); padding-left: 24px; }
.specimen h3 { margin-bottom: 26px; }
.demo-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.sample-button { min-height: 40px; padding: 9px 11px; gap: 8px; font-size: 12px; }
.specimen-caption { font-size: 12px; line-height: 1.6; color: var(--muted-foreground); max-width: 310px; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.input-row { display: flex; align-items: center; height: 43px; border-bottom: 1px solid var(--border); gap: 12px; }
.input-row:focus-within { border-image: var(--fpe-gradient-brand) 1; }
.input-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--foreground); outline: none; font-size: 13px; }
.input-row input:focus-visible { outline: none; }
.input-row > span { color: var(--foreground); }
.checkbox-row { display: inline-flex; align-items: center; margin-top: 21px; gap: 8px; font-size: 12px; }
.checkbox-row input { accent-color: var(--foreground); width: 17px; height: 17px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 29px; }
.pill { display: inline-flex; border: 1px solid var(--border); border-radius: 2px; padding: 7px 9px; font-size: 11px; }
.pill-pink { border-image: var(--fpe-gradient-brand) 1; }
.motion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.motion-demo { padding-top: 12px; border-top: 1px solid var(--border); }
.motion-demo-stage { display: grid; place-items: center; height: 178px; background: #000; border: 1px solid #242424; margin-bottom: 15px; overflow: hidden; }
.motion-object { width: 55px; height: 55px; background: var(--fpe-gradient-brand); border-radius: 1px; }
.motion-one { animation: motion-one 2.8s cubic-bezier(.2,.8,.2,1) infinite; }
.motion-two { animation: motion-two 3.2s cubic-bezier(.16,1,.3,1) infinite; background: #fff; }
.motion-three { width: 68px; height: 68px; background: var(--fpe-gradient-hero); animation: motion-three 3.9s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes motion-one { 0%,15%,85%,100% { transform: translateX(0); } 36%,65% { transform: translateX(17px); } }
@keyframes motion-two { 0%,10%,85%,100% { transform: translateY(16px); opacity: .25; } 35%,70% { transform: translateY(0); opacity: 1; } }
@keyframes motion-three { 0%,12%,85%,100% { transform: rotate(0) scale(.87); } 38%,70% { transform: rotate(40deg) scale(1.1); } }
.motion-demo > strong { display: block; font-size: 13px; font-weight: 600; }
.motion-demo > span, .motion-note { font: 400 11px/1.6 var(--fpe-font-mono); color: var(--muted-foreground); }
.motion-note { margin: 18px 0 0; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.terminal { border: 1px solid var(--border); min-width: 0; }
.terminal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.terminal-header strong { font-size: 13px; font-weight: 600; }
.terminal-header button { padding: 3px 0; background: transparent; border: 0; border-bottom: 1px solid var(--muted-foreground); color: var(--foreground); font-size: 12px; }
.terminal-header button:hover { color: var(--foreground); border-color: currentColor; }
.terminal pre { margin: 0; padding: 24px 20px 17px; font: 500 12px/1.7 var(--fpe-font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal p { padding: 0 20px 24px; color: var(--muted-foreground); font-size: 12px; line-height: 1.6; }
.integration-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 0; margin-top: 36px; border-top: 1px solid var(--border); }
.integration-footer p { color: var(--muted-foreground); font-size: 13px; }
.integration-footer a { border-bottom: 1px solid currentColor; font-size: 13px; padding-bottom: 3px; }
.integration-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer { display: flex; justify-content: flex-end; align-items: center; padding-block: 29px; margin-top: 100px; border-top: 1px solid var(--border); }
.design-credit { display: inline-flex; align-items: baseline; gap: .42em; color: var(--muted-foreground); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.design-credit-mark { width: auto; height: 9px; flex: none; fill: currentColor; }

.toast { position: fixed; bottom: 20px; right: 20px; z-index: 50; padding: 12px 18px; background: var(--foreground); color: var(--background); border: 1px solid var(--border); font-size: 13px; }
.toast[hidden] { display: none; }

@media (max-width: 1100px) {
  .hero-intro { grid-template-columns: 1fr; gap: 22px; }
  .hero-details { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
  .hero-details > p { max-width: 480px; }
  .hero-actions { margin-top: 0; }
  h1 { font-size: clamp(60px, 8vw, 88px); }
  .foundation-grid { gap: 35px; }
  .component-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .specimen-states { grid-column: 1 / -1; border-top: 1px solid var(--border); border-left: 0 !important; padding-left: 0 !important; min-height: 170px; }
}
@media (max-width: 760px) {
  .site-header { height: 66px; }
  .brand-context { display: none; }
  .main-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch; background: var(--background); padding: 12px 24px; border-bottom: 1px solid var(--border); }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .github-link { display: none; }
  .hero { padding-top: 62px; }
  .hero-intro { gap: 26px; padding-bottom: 48px; }
  .hero-details { display: block; }
  .hero-details > p { max-width: 620px; }
  .hero-actions { margin-top: 24px; }
  h1 { font-size: clamp(48px, 8.7vw, 72px); }
  .hero-preview { grid-template-columns: 1fr; }
  .preview-brand { min-height: 235px; }
  .preview-brand > img { width: 135px; }
  .preview-interface { min-height: 300px; }
  .preview-body { padding: 28px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .content-section { padding-top: 90px; }
  .logo-tile { min-height: 210px; gap: 16px; }
  .logo-tile img { height: 110px; }
  .foundation-grid, .install-grid, .motion-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section-wrap, .site-header { padding-inline: 22px; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(42px, 10.8vw, 58px); }
  .hero-intro { padding-bottom: 36px; }
  .hero-actions { gap: 22px; }
  .hero-actions .button-primary { min-height: 44px; }
  .preview-control { grid-template-columns: 1fr; gap: 8px; }
  .section-heading h2 { font-size: clamp(38px, 10vw, 50px); }
  .logo-gallery { grid-template-columns: 1fr; }
  .logo-tile { min-height: 165px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .component-grid { grid-template-columns: 1fr; }
  .specimen, .specimen + .specimen { min-height: 0; border-left: 0; padding: 25px 0; border-bottom: 1px solid var(--border); }
  .specimen-states { border-top: 0; }
  .integration-footer { display: block; }
  .integration-footer a { display: inline-block; margin-top: 16px; }
  .site-footer { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
