/* finesse · register=brand · A=warm-ink+pixel-rose · B=superfamily weight contrast · C=editorial split + workbench tabs
 * D=CSS state transitions + scroll reveal · E=perler grid and printed pattern · SOUL=8 SPECTACLE=4 DENSITY=5 */

:root {
  --refresh-bg: #171116;
  --refresh-panel: #21191f;
  --refresh-ink: #f6edf0;
  --refresh-muted: #c1afb7;
  --refresh-dim: #927e87;
  --refresh-pink: #f37ea7;
  --refresh-line: rgba(246, 237, 240, 0.16);
}

/* Detail sections: compact capabilities and a dedicated community preview. */
#services .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
#services .card { min-width: 0; padding: 28px 0; border: 0; border-top: 1px solid var(--refresh-line); background: transparent; box-shadow: none; transform: none; }
#services .card-shot { display: none; }
#services .card-icon-img, #services .card-badge { width: 36px; height: 36px; margin-bottom: 18px; }
.community-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.community-preview { margin: 0; height: 560px; overflow: hidden; border: 1px solid var(--refresh-line); background: var(--refresh-panel); }
.community-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.community-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-extra { margin-top: 28px; }
#pro .card-badge { display: none; }
.community-layout .card { min-width: 0; background: transparent; border: 0; border-top: 1px solid var(--refresh-line); border-radius: 0; box-shadow: none; transform: none; }
.studio-panel[data-panel="edit"] > img { width: 100%; height: 420px; object-fit: cover; object-position: center 65%; }
@media (max-width: 900px) {
  #services .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-preview { width: min(100%, 480px); height: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
  #services .grid, .community-layout .grid { grid-template-columns: minmax(0, 1fr); }
  #services .card { padding-block: 24px; }
  .studio-panel[data-panel="edit"] > img { height: 360px; }
}

.refresh-site {
  position: relative;
  z-index: 2;
  overflow: clip;
  background: var(--refresh-bg);
  color: var(--refresh-ink);
  font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.65;
}
.refresh-site::before { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: .025; 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='.55'/%3E%3C/svg%3E"); }
.refresh-site *, .refresh-site *::before, .refresh-site *::after { box-sizing: border-box; }
.refresh-site img { display: block; max-width: 100%; }
.refresh-site h1, .refresh-site h2, .refresh-site h3, .refresh-site p, .refresh-site figure { margin: 0; }
.refresh-site a { color: inherit; text-decoration: none; }
.refresh-site button { color: inherit; font: inherit; }
.refresh-kicker, .panel-label { color: var(--refresh-pink); font: 600 0.72rem/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: 0.1em; }

.refresh-hero {
  position: relative;
  min-height: min(820px, calc(100svh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: 76px clamp(24px, 7vw, 104px) 100px;
}
.refresh-hero::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 30px; border-bottom: 1px solid var(--refresh-line); }
.refresh-hero-copy { position: relative; z-index: 2; max-width: 520px; }
.refresh-hero h1 { max-width: 660px; margin: 28px 0 20px; color: var(--refresh-ink); font-size: clamp(3.2rem, 6.3vw, 6.4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.03; overflow-wrap: anywhere; text-wrap: balance; }
.refresh-hero h1 em { color: var(--refresh-pink); font-style: normal; }
.refresh-lead { max-width: 42ch; color: var(--refresh-muted); font-size: clamp(1rem, 1.25vw, 1.16rem); }
.refresh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.refresh-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--refresh-line); border-radius: 3px; font-size: 0.9rem; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.refresh-button:hover { transform: translateY(-2px); }
.refresh-button-fill { border-color: var(--refresh-pink); background: var(--refresh-pink); color: #28171f !important; }
.refresh-button-fill:hover { background: #ff9abd; }
.refresh-button-quiet:hover, .refresh-button-outline:hover { border-color: var(--refresh-pink); }
.refresh-proof-row { display: flex; gap: clamp(18px, 3.4vw, 44px); margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--refresh-line); }
.refresh-proof-row span { display: grid; gap: 2px; }
.refresh-proof-row strong { color: var(--refresh-ink); font: 600 1.25rem/1.2 "SFMono-Regular", Consolas, monospace; }
.refresh-proof-row small { color: var(--refresh-dim); font-size: .77rem; }
.refresh-hero-art { position: relative; z-index: 1; min-width: 0; height: clamp(390px, 48vw, 600px); }
.refresh-hero-art figure { position: absolute; overflow: hidden; background: #2a1c24; }
.refresh-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.refresh-hero-art figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; color: #fff6f8; background: rgba(23,17,22,.74); font: 600 .62rem/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .05em; }
.art-finished { z-index: 2; left: 4%; top: 5%; width: 49%; height: 76%; transform: rotate(-3deg); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.art-finished img { object-position: center 47%; }
.art-pattern { z-index: 1; right: 0; bottom: 2%; width: 53%; height: 69%; transform: rotate(3deg); border: 9px solid #f5e8eb; }
.art-pattern img { object-position: 50% 12%; }
.art-note { position: absolute; z-index: 3; right: 2%; top: 3%; color: var(--refresh-ink); font: 700 clamp(.7rem, 1vw, .9rem)/1.25 "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; text-align: right; }
.art-note span { color: var(--refresh-pink); }
.refresh-scroll-cue { position: absolute; z-index: 2; bottom: 23px; left: clamp(24px, 7vw, 104px); display: flex; align-items: center; gap: 10px; color: var(--refresh-dim); font-size: .72rem; }
.refresh-scroll-cue span { width: 25px; height: 1px; background: var(--refresh-pink); }

.refresh-studio { padding: clamp(80px, 10vw, 144px) clamp(24px, 7vw, 104px); background: #21191f; }
.refresh-section-intro { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.refresh-section-intro h2, .refresh-proof h2, .refresh-download h2 { margin: 14px 0; font-size: clamp(2.2rem, 4.4vw, 4.6rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; }
.refresh-section-intro > p:last-child, .refresh-proof-copy > p:not(.refresh-kicker), .refresh-download > div:first-child > p:last-child { color: var(--refresh-muted); }
.studio-layout { display: grid; grid-template-columns: minmax(180px, .33fr) minmax(0, 1fr); max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--refresh-line); border-bottom: 1px solid var(--refresh-line); }
.studio-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--refresh-line); }
.studio-tab { position: relative; min-height: 118px; display: grid; grid-template-columns: 32px 1fr; align-content: center; align-items: baseline; column-gap: 10px; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--refresh-line); background: transparent; color: var(--refresh-dim); text-align: left; cursor: pointer; }
.studio-tab:last-child { border-bottom: 0; }
.studio-tab > span { grid-row: span 2; color: var(--refresh-pink); font: 500 .7rem/1.5 "SFMono-Regular", Consolas, monospace; }
.studio-tab strong { color: var(--refresh-muted); font-size: 1.1rem; }
.studio-tab small { color: var(--refresh-dim); font-size: .77rem; }
.studio-tab.is-active { background: rgba(243,126,167,.08); }
.studio-tab.is-active strong { color: var(--refresh-ink); }
.studio-tab.is-active::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--refresh-pink); }
.studio-tab:focus-visible, .refresh-button:focus-visible, .refresh-site a:focus-visible { outline: 2px solid var(--refresh-pink); outline-offset: 3px; }
.studio-stage { position: relative; min-width: 0; min-height: 510px; }
.studio-panel { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(260px, 1.2fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 5vw, 60px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .24s ease, transform .24s ease, visibility .24s; }
.studio-panel[hidden] { display: none; }
.studio-panel.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.studio-panel .panel-copy { max-width: 360px; }
.studio-panel h3 { margin: 16px 0 12px; font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.14; letter-spacing: -.035em; }
.studio-panel p { color: var(--refresh-muted); font-size: .95rem; }
.studio-panel .panel-copy > a { display: inline-flex; gap: 18px; margin-top: 24px; padding: 0 0 5px; border-bottom: 1px solid var(--refresh-pink); color: var(--refresh-pink); font-weight: 600; }
.studio-panel > img { justify-self: center; width: min(100%, 420px); height: 420px; object-fit: contain; background: #f9eff2; }
.studio-panel[data-panel="generate"] > img, .studio-panel[data-panel="share"] > img { height: 445px; object-fit: cover; object-position: top center; }

.refresh-proof { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(40px, 8vw, 110px); max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 144px) clamp(24px, 7vw, 104px); }
.proof-image-wrap { max-width: 570px; height: 620px; overflow: hidden; background: #f7e4ea; }
.proof-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof-copy { max-width: 480px; }
.proof-copy h2 { margin: 18px 0; }
.proof-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.proof-list span { padding: 7px 10px; border: 1px solid var(--refresh-line); color: var(--refresh-muted); font-size: .76rem; }

.refresh-download { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 54px clamp(24px, 7vw, 104px); background: #f4d9e2; color: #251820; }
.refresh-download h2 { margin: 8px 0; }
.refresh-download .refresh-kicker { color: #8d3f5d; }
.refresh-download > div:first-child > p:last-child { color: #654d58; }
.refresh-download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.refresh-download .refresh-button { min-width: 154px; min-height: 58px; flex-direction: column; align-items: flex-start; }
.refresh-download .refresh-button small { font-size: .7rem; font-weight: 400; }
.refresh-download .refresh-button-fill { border-color: #d94d7b; background: #d94d7b; color: #fff6f8 !important; }
.refresh-button-outline { border-color: rgba(37,24,32,.32); }

@media (max-width: 900px) {
  .refresh-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 24px; padding-inline: 32px; }
  .refresh-hero-art { height: 430px; }
  .studio-panel { grid-template-columns: minmax(0, .85fr) minmax(210px, 1.15fr); padding: 28px; }
  .studio-panel > img { height: 360px; }
  .studio-panel[data-panel="generate"] > img, .studio-panel[data-panel="share"] > img { height: 390px; }
  .proof-image-wrap { height: 500px; }
}
@media (max-width: 640px) {
  .refresh-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 54px 22px 80px; }
  .refresh-hero h1 { max-width: 12ch; margin: 18px 0 14px; font-size: clamp(3rem, 14vw, 4.4rem); }
  .refresh-lead { max-width: 36ch; font-size: .94rem; }
  .refresh-proof-row { gap: 22px; margin-top: 32px; }
  .refresh-hero-art { width: min(100%, 430px); height: min(116vw, 455px); margin: 0 auto; }
  .art-finished { left: 4%; top: 4%; width: 52%; height: 78%; }
  .art-pattern { right: 1%; bottom: 2%; width: 52%; height: 72%; border-width: 6px; }
  .art-note { top: 0; right: 0; font-size: .62rem; }
  .refresh-scroll-cue { left: 22px; bottom: 21px; }
  .refresh-studio { padding: 78px 20px; }
  .refresh-section-intro { margin-bottom: 34px; text-align: left; }
  .refresh-section-intro h2, .refresh-proof h2, .refresh-download h2 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--refresh-line); }
  .studio-tab { min-height: 86px; grid-template-columns: 1fr; gap: 1px; padding: 10px; text-align: center; border-right: 1px solid var(--refresh-line); border-bottom: 0; }
  .studio-tab:last-child { border-right: 0; }
  .studio-tab > span { grid-row: auto; }
  .studio-tab strong { font-size: .95rem; }
  .studio-tab small { font-size: .65rem; }
  .studio-tab.is-active::before { top: auto; right: 0; bottom: 0; width: auto; height: 3px; }
  .studio-stage { min-height: 0; }
  .studio-panel, .studio-panel.is-active { position: relative; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 16px 28px; }
  .studio-panel:not(.is-active) { display: none; }
  .studio-panel .panel-copy { max-width: none; }
  .studio-panel h3 { margin: 10px 0; font-size: 1.7rem; }
  .studio-panel p { font-size: .9rem; }
  .studio-panel > img { width: 100%; max-height: 420px; height: min(110vw, 420px); }
  .studio-panel[data-panel="generate"] > img, .studio-panel[data-panel="share"] > img { height: min(118vw, 440px); }
  .refresh-proof { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 80px 22px; }
  .proof-image-wrap { width: min(100%, 430px); height: min(132vw, 535px); margin: 0 auto; }
  .proof-copy { max-width: none; }
  .refresh-download { align-items: flex-start; flex-direction: column; gap: 24px; padding: 44px 22px; }
  .refresh-download-actions { width: 100%; }
  .refresh-download .refresh-button { flex: 1; min-width: 138px; }
}
@media (prefers-reduced-motion: reduce) {
  .refresh-site *, .refresh-site *::before, .refresh-site *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 360px) {
  .refresh-hero { padding-inline: 18px; }
  .refresh-hero h1 { font-size: 2.75rem; }
  .refresh-actions { gap: 8px; }
  .refresh-button { padding-inline: 12px; font-size: .82rem; }
  .studio-tab { padding-inline: 5px; }
  .studio-tab strong { font-size: .82rem; }
  .studio-tab small { font-size: .58rem; }
}

html { overflow-x: clip; scroll-padding-top: 76px; }
body { overflow-x: clip; background: var(--refresh-bg); color: var(--refresh-ink); font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif; font-weight: 400; }
body > #loader { background: var(--refresh-bg); }
header { background: rgba(23,17,22,.93); border-bottom: 1px solid var(--refresh-line); backdrop-filter: blur(16px); }
header nav { height: 76px; }
.logo-icon { border: 1px solid rgba(243,126,167,.38); border-radius: 8px; }
.logo-text { color: var(--refresh-ink); font-family: "PingFang SC", "Noto Sans SC", sans-serif; letter-spacing: .08em; }
.nav-link { color: var(--refresh-muted); font-family: "PingFang SC", "Noto Sans SC", sans-serif; font-size: .84rem; letter-spacing: 0; }
.nav-link:hover { color: var(--refresh-pink); }
.btn-primary { border-radius: 3px; background: var(--refresh-pink); color: #28171f; font-family: "PingFang SC", "Noto Sans SC", sans-serif; }
.btn-primary:hover { background: #ff9abd; box-shadow: 0 8px 24px rgba(243,126,167,.24); }
.mobile-menu-toggle { color: var(--refresh-ink); }
.mobile-menu { border-color: var(--refresh-line); background: #21191f; }
.lang-switch { border-color: var(--refresh-line); background: transparent; }
.lang-btn { color: var(--refresh-muted); }
.lang-btn.active { background: var(--refresh-pink); color: #28171f; }
.hero-section { display: none; }
body > section:not(.hero-section) { background: var(--refresh-bg); }
body > section.section-bg-dark { background: #21191f; }
.section-subtitle { color: var(--refresh-pink); font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; letter-spacing: .1em; }
.section-title { color: var(--refresh-ink); font-family: "PingFang SC", "Noto Sans SC", sans-serif; font-weight: 750; letter-spacing: -.035em; }
.section-description, .muted { color: var(--refresh-muted); }
.section-divider { width: 42px; height: 2px; background: var(--refresh-pink); }
.image-container { border-color: var(--refresh-line); border-radius: 2px; background: #21191f; }
.card { border-color: var(--refresh-line); border-radius: 2px; background: #21191f; }
.card:hover { border-color: rgba(243,126,167,.62); box-shadow: 0 14px 38px rgba(0,0,0,.24); }
.card-title { color: var(--refresh-ink); }
.card-description { color: var(--refresh-muted); }
.card-badge { border-color: rgba(243,126,167,.5); border-radius: 3px; background: rgba(243,126,167,.1); color: var(--refresh-pink); }
.card-shot, .feature-shot { border-color: var(--refresh-line); border-radius: 2px; }
.brand-chip { border-color: var(--refresh-line); border-radius: 2px; background: rgba(243,126,167,.06); color: var(--refresh-ink); }
.brand-chip:hover { border-color: var(--refresh-pink); background: rgba(243,126,167,.12); }
.step-num { border-radius: 2px; background: var(--refresh-pink); color: #28171f; }
.check-icon { background: var(--refresh-pink); }
.faq-item { border-color: var(--refresh-line); border-radius: 2px; background: #21191f; }
.faq-question { color: var(--refresh-ink); }
.faq-icon { color: var(--refresh-pink); }
.faq-answer { color: var(--refresh-muted); }
.platform-btn { border-color: var(--refresh-line); border-radius: 2px; background: #21191f; }
.platform-btn:hover { border-color: var(--refresh-pink); background: rgba(243,126,167,.09); }
.platform-name { color: var(--refresh-ink); }
.platform-hint { color: var(--refresh-muted); }
.btn-primary-large { border-radius: 2px; background: var(--refresh-pink); color: #28171f; }
.btn-primary-large:hover { background: #ff9abd; box-shadow: 0 8px 24px rgba(243,126,167,.2); }
footer { border-color: var(--refresh-line); background: #120e12; }
footer h4 { color: var(--refresh-pink); }
footer a, .footer-bottom { color: var(--refresh-muted); }
.footer-copy { color: var(--refresh-dim); }

@media (max-width: 640px) {
  header nav { height: 64px; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-text { font-size: 1rem; }
  .nav-right { gap: .55rem; }
  .lang-btn { min-width: 1.8rem; padding-inline: .4rem; }
  .section-bg-dark, .section-bg-black { padding-block: 4rem; }
}
