:root {
  color-scheme: dark;
  --bg: #101015;
  --surface: #1b1922;
  --ink: #faf7ff;
  --muted: #b7afc1;
  --line: #393340;
  --accent: #d8c8ff;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.frame { width: min(100% - 72px, 1300px); margin-inline: auto; }
.symbols { width: 0; height: 0; position: absolute; }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.header { display: flex; align-items: center; justify-content: space-between; min-height: 79px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 1.25rem; letter-spacing: -.045em; text-decoration: none; }
.logo { display: block; width: 34px; height: 34px; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 35px); font-weight: 600; }
.nav-ideas { text-decoration: none; color: var(--muted); }
.nav-ideas:hover, .plain:hover { color: var(--accent); }
.button { min-height: 42px; padding: 9px 17px; border-radius: 30px; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; text-decoration: none; white-space: nowrap; border: 1px solid transparent; font-size: .92rem; }
.outline { color: var(--ink); background: transparent; border-color: var(--line); }
.outline:hover { background: #ffffff0c; border-color: #7d6c91; }
.primary { color: #21172f; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #eee5ff; border-color: #eee5ff; }
.hero {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(480px, 46vw, 665px); border: 1px solid #403248; border-radius: 24px; overflow: hidden;
  background: linear-gradient(0deg, #101015bf, transparent 46%), linear-gradient(90deg, #15101cf5, #15101c42 55%, transparent 75%), url("./hero.webp") 64% 52% / cover no-repeat, #17111e;
}
.hero-copy { padding: clamp(28px, 5vw, 72px); }
.hero h1 { font-weight: 750; font-size: clamp(4rem, 8.4vw, 8.35rem); letter-spacing: -.084em; line-height: .87; margin-bottom: 25px; }
.hero h1 em { font: italic 400 1.04em/.85 Georgia, serif; letter-spacing: -.093em; color: var(--accent); }
.hero p { color: #e4dbef; max-width: 37ch; font-size: clamp(1rem, 1.55vw, 1.18rem); }
.hero .button { margin-top: 23px; min-height: 47px; padding-inline: 22px; }
.ideas { padding-block: clamp(46px, 7vw, 85px); scroll-margin-top: 22px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); letter-spacing: -.066em; line-height: 1; margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; position: relative; overflow: hidden; isolation: isolate; min-height: 245px; padding: 19px; border-radius: 21px; border: 1px solid #ffffff24; text-decoration: none; flex-direction: column; justify-content: space-between; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 52%, #0a0e14de); }
.card:hover { border-color: var(--accent); }
.card-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; }
.card-title { font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 640; letter-spacing: -.05em; line-height: 1.1; }
.card-chat { background: radial-gradient(ellipse at 70% 65%, #69539d, #251c39 70%); }
.card-web { background: radial-gradient(ellipse at 50% 50%, #496e95, #162838 68%); }
.card-image { background: radial-gradient(ellipse at 50% 80%, #bd697e, #5b293d 74%); }
.card-art { position: absolute; inset: 42px 20px 40px; z-index: -2; display: grid; place-items: center; }
.note-art span { position: absolute; background: #e4d7ff; color: #2b1f45; padding: 12px 17px; border-radius: 13px; font-weight: 720; line-height: 1.12; transform: translate(-15%, -18%) rotate(-12deg); box-shadow: 0 12px 35px #10151375; }
.note-art span + span { background: #493b73; color: #f5efff; transform: translate(12%, 40%) rotate(9deg); font-size: .8rem; }
.orbit-art span { position: absolute; width: min(72%, 190px); height: 64px; border: 1px solid #bdc8ff; border-radius: 50%; transform: rotate(-23deg); box-shadow: 0 0 15px #bdc8ff50; }
.orbit-art span:nth-child(2) { transform: rotate(28deg); }
.orbit-art span:nth-child(3) { transform: rotate(88deg); }
.orbit-art i { width: 32px; height: 32px; border-radius: 50%; background: #dbe1ff; box-shadow: 0 0 42px #b4adf5; }
.print-art span { width: 92px; height: 139px; border: 6px solid #fbd9a0; border-radius: 3px; box-shadow: 0 12px 35px #21120d85; transform: rotate(13deg); background: radial-gradient(circle at 60% 28%, #fff2b3 16%, transparent 17%), repeating-linear-gradient(166deg, #180e34 0 8px, #372145 8px 16px, #914638 16px 23px, #e19e55 23px 34px); }
.footer { color: var(--muted); border-top: 1px solid var(--line); padding-block: 23px; display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.plain { background: transparent; border: 0; color: inherit; padding: 0; text-decoration: underline; }
.workbench { width: min(100% - 36px, 780px); margin-inline: auto; min-height: calc(100dvh - 79px); display: flex; flex-direction: column; }
.icon-button { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
.icon-button.primary { border-color: var(--accent); }
.conversation { flex: 1; display: flex; flex-direction: column; padding-block: 25px; }
.welcome { text-align: center; margin: auto 0; padding: 24px 0; }
.big { width: 57px; height: 57px; margin: 0 auto 15px; }
.welcome h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.15; letter-spacing: -.068em; }
.suggestions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.messages { display: flex; flex-direction: column; gap: 20px; }
.message { max-width: min(92%, 660px); min-width: 0; overflow-wrap: anywhere; }
.message.user { align-self: flex-end; border: 1px solid #483b5c; background: #2b2239; padding: 12px 16px; border-radius: 16px 16px 4px 16px; }
.message strong { display: block; font-size: .84rem; color: var(--accent); margin-bottom: 4px; }
.message p { white-space: pre-wrap; }
.message img { display: block; max-width: 100%; width: 420px; border-radius: 12px; margin-block: 10px; }
.message ul { padding-left: 20px; margin: 9px 0 0; }
.message a { color: var(--accent); }
.message details { width: fit-content; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.message summary { cursor: pointer; }
.composer { position: sticky; bottom: 0; padding: 10px 0 16px; background: var(--bg); }
.composer form { padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
textarea { display: block; width: 100%; padding: 8px 10px; border: 0; color: var(--ink); background: transparent; resize: vertical; max-height: 160px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; gap: 6px; }
.send-actions { display: flex; align-items: center; gap: 7px; }
.model-control { min-height: 40px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.model-control:hover { background: #ffffff0c; color: var(--ink); }
.mode { color: var(--muted); border: 1px solid transparent; background: transparent; border-radius: 24px; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 5px 10px; font-size: .88rem; }
.mode .icon { width: 16px; height: 16px; }
.mode:hover, .mode[aria-pressed="true"] { color: var(--accent); border-color: #544468; background: #312440; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 7px; }
.hint:empty { display: none; }
.hint.error { color: #ffac9c; }
dialog { width: min(100% - 36px, 490px); padding: 25px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; }
dialog::backdrop { background: #050c0bc0; }
dialog p { margin-block: 12px; color: var(--muted); }
@media (max-width: 850px) {
  .frame { width: calc(100% - 36px); }
  .hero { min-height: 455px; }
  .cards { gap: 10px; }
  .card { padding: 15px; min-height: 210px; }
}
@media (max-width: 620px) {
  .header { min-height: 65px; }
  .nav-ideas { display: none; }
  .hero { min-height: clamp(470px, 100vw, 525px); background: linear-gradient(0deg, #130f1b 15%, #130f1bee 32%, #130f1b00 67%), url("./hero.webp") 82% 0% / auto 70% no-repeat, #130f1b; }
  .hero-copy { padding: 24px; }
  .hero h1 { font-size: clamp(3.35rem, 12vw, 5.8rem); margin: 15px 0; }
  .hero .button { margin-top: 17px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 205px; }
  .workbench { min-height: calc(100dvh - 65px); }
  .mode { padding-inline: 6px; }
}
@media (max-width: 350px) {
  .hero h1 { font-size: 2.9rem; }
}
