:root {
  color-scheme: dark;
  --bg: #08070d;
  --surface: #100e19;
  --line: rgba(255,255,255,.1);
  --text: #f7f5fc;
  --muted: #aaa6b7;
  --violet: #a994ff;
  --purple: #8a5cff;
  --page-width: 1160px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 70% 48% at 50% 0%, #21173b 0%, var(--bg) 76%);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #c4b6ff; outline-offset: 4px; }

.site-header, main, .site-footer { width: min(var(--page-width), calc(100% - 64px)); margin-inline: auto; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.1rem; font-weight: 700; letter-spacing: -.035em; }
.brand img { display: block; border: 1px solid var(--line); border-radius: 12px; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.text-link { color: var(--muted); text-decoration: none; font-size: .9rem; }
.text-link:hover, .what-it-is a:hover { color: var(--text); }
.header-download { padding: 10px 16px; border: 1px solid rgba(169,148,255,.45); border-radius: 999px; background: rgba(138,92,255,.15); color: #eee9ff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.download-short { display: none; }
.header-download:hover { background: rgba(138,92,255,.27); }

.showcase { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(36px, 7vw, 90px); padding: clamp(50px, 9vh, 100px) 0 100px; }
.intro { max-width: 440px; padding-bottom: 12px; }
.eyebrow { margin: 0 0 20px; color: #c8bbff; font-size: .76rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #a98dff; box-shadow: 0 0 14px #a98dff; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(3rem, 5.8vw, 5.5rem); line-height: .99; letter-spacing: -.075em; font-weight: 650; }
h1 span { color: #b7a4ff; }
.intro-copy { max-width: 390px; margin-bottom: 28px; color: #c3bfce; font-size: 1.08rem; line-height: 1.7; }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: linear-gradient(112deg, #8050e9, #6648d3); box-shadow: 0 10px 35px rgba(110,75,214,.25); color: #fff; text-decoration: none; font-weight: 650; transition: transform .18s ease, filter .18s ease; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.primary-button svg { width: 19px; height: 19px; }
.download-meta { margin: 12px 0 0 4px; color: #9691a3; font-size: .8rem; }
.download-meta span { margin-inline: 5px; color: #625d70; }

.preview-card { min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 23px; background: linear-gradient(145deg, rgba(24,20,36,.92), rgba(12,11,18,.93)); box-shadow: 0 30px 90px rgba(0,0,0,.38), 0 0 85px rgba(120,87,220,.11); }
.preview-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 2px 5px 12px 8px; }
.preview-kicker { display: block; margin-bottom: 1px; color: #a9a3b8; font-size: .72rem; }
.preview-heading h2 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.1); }
.icon-button svg { width: 18px; height: 18px; }
.canvas-viewport { position: relative; width: 100%; height: clamp(300px, 44vw, 500px); overflow: hidden; border-radius: 15px; background: #05040b; }
#julia-canvas { width: 100%; height: 100%; display: block; }
.canvas-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; color: var(--muted); text-align: center; background: #090711; }
.canvas-fallback[hidden] { display: none; }
.preview-controls { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 5px 0; }
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.preset-row > span { margin-right: 4px; color: #a9a3b8; font-size: .77rem; }
.preset-btn, .wander-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: #cbc6d5; font-size: .78rem; cursor: pointer; }
.preset-btn:hover, .wander-button:hover { background: rgba(255,255,255,.09); }
.preset-btn.active { border-color: rgba(169,148,255,.55); background: rgba(138,92,255,.2); color: #e4dcff; }
.wander-button { flex: 0 0 auto; }

.download-section { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 9vw, 120px); padding: 65px 0 78px; border-top: 1px solid var(--line); }
.download-heading .eyebrow { margin-bottom: 12px; }
.download-heading h2 { max-width: 370px; margin-bottom: 13px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.055em; }
.download-heading > p:last-child { max-width: 390px; margin-bottom: 0; color: var(--muted); }
.download-details { display: grid; grid-template-columns: minmax(200px, .88fr) minmax(220px, 1.12fr); align-items: start; gap: 26px; }
.release-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.035); }
.release-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.release-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: .76rem; }
.release-top strong { font-size: 1rem; }
.file-type { padding: 4px 8px; border: 1px solid rgba(169,148,255,.28); border-radius: 7px; background: rgba(138,92,255,.11); color: #c8bbff; font-size: .67rem; font-weight: 700; letter-spacing: .07em; }
.release-button { width: 100%; min-height: 48px; padding-inline: 12px; font-size: .9rem; }
.release-note { margin: 10px 0 0; color: #9691a3; font-size: .78rem; text-align: center; }
.release-note span { margin-inline: 4px; }
.install-steps { display: grid; gap: 18px; margin: 3px 0 0; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.step-number { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(169,148,255,.34); border-radius: 50%; color: #c8bbff; font-size: .75rem; }
.install-steps h3 { margin: 1px 0 3px; font-size: .9rem; font-weight: 600; }
.install-steps p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.what-it-is { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.what-it-is p { flex-basis: 100%; margin: 0 0 2px; }
.what-it-is a { color: #c2bbd1; text-decoration: none; }
.site-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #837e8f; font-size: .77rem; }
.maker { letter-spacing: -.02em; }
.seziba { color: #fff; }
.tec { color: var(--violet); }

.privacy-consent { width: min(460px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: #12101b; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.privacy-consent::backdrop { background: rgba(3,2,7,.78); backdrop-filter: blur(5px); }
.consent-card { padding: clamp(22px, 6vw, 32px); }
.consent-card .eyebrow { margin-bottom: 10px; }
.consent-card h2 { margin-bottom: 10px; font-size: 1.5rem; letter-spacing: -.045em; }
.consent-card > p:not(.eyebrow) { margin-bottom: 20px; color: #bdb8c8; font-size: .92rem; line-height: 1.65; }
.consent-card > p a { color: #c7b9ff; text-underline-offset: 3px; }
.consent-check { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); color: #e8e4ef; font-size: .87rem; line-height: 1.5; cursor: pointer; }
.consent-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple); }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.consent-actions button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--text); font-size: .84rem; font-weight: 600; cursor: pointer; }
.consent-actions .consent-accept { border-color: rgba(169,148,255,.4); background: linear-gradient(112deg, #8050e9, #6648d3); }
.consent-actions .consent-accept:disabled { border-color: var(--line); background: #24212c; color: #817b8d; cursor: not-allowed; }

@media (min-width: 1500px) {
  .showcase { padding-top: 110px; padding-bottom: 120px; }
}
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 38px; padding-top: 55px; padding-bottom: 75px; }
  .preview-card { order: 1; }
  .intro { order: 2; }
  .intro { max-width: 630px; }
  .intro-copy { max-width: 500px; }
  .preview-card { width: 100%; }
  .canvas-viewport { height: clamp(320px, 62vw, 520px); }
  .download-section { grid-template-columns: 1fr; gap: 30px; }
  .download-heading h2 { max-width: 600px; }
}
@media (max-width: 600px) {
  .site-header, main, .site-footer { width: calc(100% - 36px); }
  .site-header { height: 70px; }
  .brand img { width: 34px; height: 34px; }
  .header-actions { gap: 0; }
  .install-nav, .download-wide { display: none; }
  .download-short { display: inline; }
  .header-actions { gap: 12px; }
  .header-download { padding: 9px 11px; font-size: .8rem; }
  .showcase { gap: 28px; padding-top: 48px; padding-bottom: 55px; }
  .eyebrow { margin-bottom: 15px; font-size: .68rem; }
  h1 { margin-bottom: 16px; font-size: clamp(2.85rem, 13vw, 4.2rem); }
  .intro-copy { margin-bottom: 22px; font-size: .98rem; }
  .primary-button { min-height: 50px; padding-inline: 17px; font-size: .9rem; }
  .download-meta { font-size: .72rem; }
  .preview-card { padding: 9px; border-radius: 18px; }
  .preview-heading { min-height: 54px; padding: 1px 3px 9px 5px; }
  .canvas-viewport { height: clamp(260px, 77vw, 390px); border-radius: 12px; }
  .preview-controls { align-items: flex-start; flex-direction: column; padding: 11px 4px 3px; }
  .preset-row { gap: 6px; }
  .preset-row > span { width: 100%; margin-bottom: 1px; }
  .preset-btn, .wander-button { min-height: 35px; padding-inline: 11px; }
  .download-section { gap: 23px; padding: 48px 0 54px; }
  .download-details { grid-template-columns: 1fr; gap: 24px; }
  .release-card { padding: 17px; }
  .install-steps { gap: 16px; }
  .what-it-is { font-size: .8rem; }
  .site-footer { min-height: 62px; }
}
@media (max-width: 360px) {
  .site-header, main, .site-footer { width: calc(100% - 28px); }
  .header-download { padding-inline: 10px; font-size: .76rem; }
  .preset-btn { padding-inline: 9px; font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
