@import url("shared.css");

:root {
  --ink: #271b35;
  --muted: #63596d;
  --accent: #6539a7;
  --deep: #512b8f;
  --line: #e4dced;
  --paper: #fff;
  --soft: #eee6f9;
}
body { background: #f9f7fc; color: var(--ink); }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .demo { max-width: 1392px; padding-inline: clamp(1rem, 4vw, 3.5rem); margin-inline: auto; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: clamp(8.4rem, 30vw, 12.5rem); height: auto; }
.intro { padding-block: clamp(1.45rem, 2.5vw, 2rem) clamp(1.25rem, 2.2vw, 1.8rem); }
.eyebrow { margin: 0 0 .5rem; font-size: .875rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; color: var(--accent); }
.intro h1 { margin: 0; max-width: 46rem; font: 400 clamp(2.65rem, 5vw, 4.2rem)/.98 Georgia, serif; letter-spacing: -.07em; }
.intro > p:not(.eyebrow) { margin: .95rem 0 0; max-width: 51rem; color: var(--muted); line-height: 1.54; }
.studio { display: grid; grid-template-columns: minmax(185px, 216px) minmax(0, 1fr); align-items: start; gap: clamp(.8rem, 2vw, 1.5rem); }
.settings { background: var(--paper); border: 1px solid var(--line); border-radius: 19px; padding: 1.1rem; }
.settings h2 { margin: 0 0 .65rem; font-size: .95rem; font-weight: 800; }
.device-controls { display: grid; gap: .35rem; }
.device-controls button, .theme-controls button { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; font-weight: 700; border: 1px solid transparent; background: transparent; border-radius: 10px; min-height: 39px; padding: .5rem .6rem; }
.device-controls button[aria-pressed="true"], .theme-controls button[aria-pressed="true"] { color: var(--deep); border-color: #ded0ef; background: var(--soft); }
.device-controls button:hover, .theme-controls button:hover { background: #f5effa; }
.theme-settings { border-block: 1px solid var(--line); margin: .9rem 0; padding: .95rem 0; }
.theme-controls { display: flex; gap: .15rem; flex-wrap: wrap; }
.theme-controls button { font-size: .875rem; gap: .3rem; padding-inline: .43rem; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid #0002; background: #a189c2; }
.swatch.jardin { background: #729675; }
.scroll-hint { color: var(--muted); font-size: .875rem; margin: 0 0 .5rem; line-height: 1.4; }
.direct { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; font-size: .875rem; font-weight: 750; color: var(--deep); text-decoration: none; }
.direct:hover { text-decoration: underline; }
.stage { padding: clamp(.75rem, 2vw, 1.5rem); display: grid; justify-items: center; background: #efe9f7; border: 1px solid #eae0f3; border-radius: 23px; min-width: 0; }
.viewport { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #ded3eb; border-radius: 15px; background: #fff; box-shadow: 0 12px 32px #48236017; }
.window-bar { position: relative; display: flex; min-height: 36px; align-items: center; justify-content: center; border-bottom: 1px solid #ece4f3; background: #fff; color: var(--muted); font-size: .8125rem; }
.window-dots { width: 6px; height: 6px; border-radius: 50%; background: #c8b6db; box-shadow: 10px 0 #d7c8e4, 20px 0 #e8def0; position: absolute; left: 15px; }
.viewport iframe { display: block; border: 0; width: 100%; height: min(78vh, 810px); min-height: 580px; }
.stage[data-device="mobile"] { background: #ebe4f5; }
.stage[data-device="mobile"] .viewport { width: min(100%, 400px); border: 6px solid #30263a; border-radius: 26px; }
.stage[data-device="mobile"] .window-dots { display: none; }
.stage[data-device="mobile"] iframe { height: min(76vh, 730px); min-height: 480px; }
.demo-footer { padding-block: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
.demo-footer span:first-child { font-weight: 750; }
@media (max-width: 760px) {
  .studio { grid-template-columns: 1fr; }
  .settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: .3rem .6rem; }
  .settings > h2 { grid-area: 1 / 1; }
  .device-controls { grid-area: 2 / 1; }
  .theme-settings { grid-area: 1 / 2 / 3 / 3; border: 0; padding: 0; margin: 0; }
  .scroll-hint { grid-area: 3 / 1 / 4 / 3; margin: .3rem 0 0; }
  .direct { grid-area: 4 / 1 / 5 / 3; width: fit-content; }
  .viewport iframe { min-height: 450px; }
}

.example-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.example-controls button { display: grid; gap: .05rem; min-width: 10.75rem; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); text-align: left; }
.example-controls strong { font-size: .95rem; }
.example-controls span { color: var(--muted); font-size: .875rem; }
.example-controls button:hover { border-color: var(--accent); }
.example-controls button[aria-pressed="true"] { color: var(--deep); background: var(--soft); border-color: #baa2d5; }
@media (max-width: 450px) {
  .example-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-controls button { min-width: 0; }
}

.demos-menu-toggle { display: none; }
.demos-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .75rem; }
.demos-nav a { padding-block: .45rem; color: var(--ink); font-size: .875rem; text-decoration: none; white-space: nowrap; }
.demos-nav a:hover, .demos-nav a[aria-current="page"] { color: var(--deep); text-decoration: underline; text-underline-offset: .25em; }
.demos-nav a[aria-current="page"] { font-weight: 750; }
.demos-nav .demos-contact { padding-inline: .8rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 750; }
.demos-nav .demos-contact:hover { background: var(--deep); color: #fff; }
@media (max-width: 1110px) {
  .topbar-inner { flex-wrap: wrap; gap: .3rem 1rem; padding-block: .75rem; }
  .demos-menu-toggle { display: inline-block; min-height: 40px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--deep); font-weight: 750; }
  .demos-nav { width: 100%; padding-top: .35rem; }
  .demos-menu-toggle[aria-expanded="false"] + .demos-nav { display: none; }
}
