:root {
  color-scheme: dark;
  --bg: #0b0912;
  --surface: #14101f;
  --line: #ffffff16;
  --ink: #f7f4ff;
  --muted: #b8b0c9;
  --accent: #b299ff;
  --accent-bright: #c8b6ff;
  --studio-primary: linear-gradient(120deg, #8625f0, #3d27d8);
  --content: 1160px;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.58; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 680; letter-spacing: -.065em; line-height: 1.03; text-wrap: balance; }
h3 { font-size: 1.075rem; font-weight: 650; line-height: 1.25; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
.shell { width: min(var(--content), calc(100% - 72px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  white-space: nowrap; clip-path: inset(50%); border: 0;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .6rem 1rem; background: #25203a; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: #0d0a15;
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-weight: 680; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-content: center; gap: 2px;
  border-radius: 9px; border: 1px solid #ad91ff83;
  background: linear-gradient(145deg, #5c37c3, #321a73 76%); box-shadow: inset 0 1px #fff3, 0 4px 15px #5624bd42;
}
.brand-mark span { width: 15px; height: 4px; border: 1px solid #e5dcff; border-radius: 50%; }
.header-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.65rem, 2.9vw, 1.8rem); }
.header-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: .9rem; font-weight: 550;
}
.header-links a:hover { color: var(--accent-bright); }
.footer-row nav { display: flex; align-items: center; gap: 1.85rem; }
.footer-row nav a { color: var(--muted); font-size: .9rem; font-weight: 550; }
.footer-row nav a:hover { color: var(--ink); }

.hero {
  isolation: isolate; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 72% 51%, #532d836b, transparent 63%),
    linear-gradient(115deg, #100b1c 20%, #1a102d 49%, var(--bg));
}
.hero::after {
  position: absolute; content: ""; z-index: -1; inset: auto 0 0; height: 16%;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero-mesh, .hero-depth-rings { position: absolute; z-index: -2; pointer-events: none; }
.hero-mesh {
  inset: -45% -37% -76% 1%; opacity: .74;
  transform: perspective(600px) rotateX(53deg) rotateZ(-13deg);
  background-image:
    linear-gradient(90deg, #c3a0ff72 1px, transparent 1px),
    linear-gradient(0deg, #c3a0ff72 1px, transparent 1px),
    linear-gradient(135deg, transparent calc(50% - .4px), #ba93ff39 calc(50% - .4px) calc(50% + .4px), transparent calc(50% + .4px));
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 55% 57%, #000 0 22%, transparent 65%);
}
.hero-depth-rings {
  inset: 10% -8% 4% 34%;
  background: repeating-radial-gradient(ellipse at 58% 55%, transparent 0 40px, #d0aeff34 42px, transparent 43px 71px);
  transform: perspective(580px) rotateX(28deg) rotateZ(-20deg);
  mask-image: radial-gradient(ellipse, #000 15%, transparent 70%);
}
.hero-layout {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(.75rem, 3vw, 2.8rem); min-height: clamp(480px, 46vw, 590px);
  padding-block: 2rem 3rem;
}
.hero-copy { position: relative; z-index: 1; container-type: inline-size; }
.eyebrow { color: var(--accent-bright); font-size: .84rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.hero h1 {
  margin: .9rem 0 1.15rem; font-size: clamp(2.85rem, 15cqi, 5.1rem); line-height: .98;
  text-shadow: 2px 3px 2px #080513d9;
}
.hero h1 span {
  display: block; background: linear-gradient(104deg, #f0e5ff, #a879ff 92%); background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(2px 3px 2px #080513d9);
}
.lede { max-width: 27em; color: #d0c5e0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }
.hero-action {
  min-height: 46px; padding: .52rem 1rem; border: 1px solid #8d78b36e; border-radius: 8px;
  background: #1b1529; color: #f7f1ff; font-weight: 650;
  box-shadow: inset 0 1px #ffffff17, 0 2px 6px #08051369;
}
.hero-action-primary {
  background: var(--studio-primary); border-color: #aa90e587 #6f45d280 #2b1e78;
  box-shadow: inset 0 1px #ffffff38, inset 0 -1px #0003, 0 4px 12px #32178d6b;
}
.hero-status { margin-top: .75rem; color: #d9c9ee; font-size: .9rem; }
.hero-status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 .5rem .1rem 0;
  border-radius: 50%; background: #bf9cff; box-shadow: 0 0 9px #ad77ff;
}
.hero-formats { position: relative; min-width: 0; height: clamp(380px, 37vw, 465px); }
.hero-format {
  position: absolute; top: var(--y); left: var(--x); width: var(--size); min-height: calc(var(--size) * .82);
  display: grid; place-items: center; align-content: center; gap: .32rem; padding: .4rem .24rem;
  border: 1px solid #bda4ff62; border-radius: 16px; color: #eadffb;
  background: linear-gradient(146deg, #383055, #191427 74%);
  box-shadow: 0 13px 26px #07030fc0, 0 0 22px #9d71ef48, inset 0 1px #f5eaff42;
  font-size: .75rem; line-height: 1.2; text-align: center; white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: format-depth-drift 8.4s ease-in-out var(--phase) infinite alternate;
}
.hero-format img { width: 58%; height: clamp(23px, calc(var(--size) * .43), 44px); object-fit: contain; }
.hero-format img[src$="mariadb.svg"] { width: 78%; }
.hero-wordmark { background: linear-gradient(145deg, #faf6ff, #d9c9f5 96%); }
.hero-wordmark img { width: 88%; height: calc(var(--size) * .57); }
.hero-csv span {
  padding: .36rem .32rem; border: 1px solid #a2e8c280; border-radius: 5px;
  color: #d1ffe6; background: #29695155; font: 700 .8rem/1.15 ui-monospace, Consolas, monospace;
}
.hero-motion {
  position: absolute; right: max(15px, calc((100% - var(--content)) / 2)); bottom: 1rem;
  display: inline-flex; align-items: center; gap: .36rem; min-height: 36px; padding: .24rem .48rem;
  border: 1px solid #ad8cd54d; border-radius: 6px; color: #e1d3f1; background: #161124;
  font-size: .81rem; cursor: pointer;
}
.hero-motion input { margin: 0; accent-color: #9a68ff; }
.hero:has(.hero-motion input:checked) .hero-format { animation-play-state: paused; }
@keyframes format-depth-drift {
  from { transform: translate(-50%, -50%) translate(calc(var(--travel) * -1), 9px) scale(.85); }
  to { transform: translate(-50%, -50%) translate(var(--travel), -11px) scale(1.13); }
}
@keyframes format-row-drift { 50% { transform: translateY(-4px); } }

.workbench { position: relative; scroll-margin-top: 1.5rem; }
.app-frame {
  padding: 7px; border: 1px solid #af85ff57; border-radius: 16px;
  background: linear-gradient(135deg, #241a39, #14101e 65%); box-shadow: 0 24px 80px #0009, 0 0 56px #7136cf20, inset 0 1px #fff2;
}
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .35rem .48rem .65rem .57rem; }
.frame-title { font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.frame-label { color: #d1bfed; font: 600 .83rem/1.2 ui-monospace, "Cascadia Code", Consolas, monospace; }
.workbench-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.workbench-screens .app-frame { border-color: var(--line); box-shadow: 0 12px 34px #0005; }
#designer { scroll-margin-top: 1.25rem; }
.screen-link { display: block; overflow: hidden; border-radius: 8px; border: 1px solid #ffffff23; background: #141522; }
.screen-link img { display: block; width: 100%; height: auto; }
.workbench figcaption { display: flex; flex-wrap: wrap; gap: .1rem .76rem; align-items: baseline; padding: .72rem .62rem .4rem; color: var(--muted); font-size: .89rem; }
.workbench figcaption strong { color: var(--ink); font-weight: 650; }

.section { padding-block: clamp(3.7rem, 7.8vw, 7.1rem); scroll-margin-top: 1rem; }
.section-heading { margin-bottom: 1.8rem; }
.section-heading.split { display: grid; grid-template-columns: 1fr minmax(280px, .56fr); align-items: end; gap: 1.5rem 3.3rem; }
.section h2 { margin-top: .55rem; font-size: clamp(2.45rem, 5.3vw, 4.8rem); }
.section-heading p:not(.eyebrow), .section-note { color: var(--muted); font-size: 1.04rem; line-height: 1.57; text-wrap: pretty; }
.section-heading.split > p { margin-bottom: .15rem; }
.engine-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.engine-grid li {
  grid-column: span 2; display: flex; align-items: center; gap: .9rem; min-height: 92px; padding: .94rem 1rem;
  border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(135deg, #191424, #110e1a);
}
.engine-grid li.data-format { grid-column: span 3; background: #9b6cff0c; border-color: #ae88ff30; }
.engine-grid h3 { margin-bottom: .22rem; }
.engine-grid p { color: var(--muted); font-size: .86rem; line-height: 1.33; }
.engine-mark {
  width: 47px; height: 47px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid #ffffff13; background: #211a31; overflow: hidden;
}
.engine-mark img { width: 31px; height: 31px; object-fit: contain; }
.engine-mark.sqlite img { width: 39px; height: 38px; }
.engine-mark.monogram { color: #dabdff; font: 700 .84rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; }
.engine-mark.wordmark { background: #e9ddff; }
.engine-mark.wordmark img { width: 39px; }

.conversion { background: radial-gradient(ellipse at 80% 10%, #331c5629, transparent 68%), #110d1a; border-block: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 1.5rem; list-style: none; margin: 2.2rem 0 1.4rem; padding: 0; }
.flow li { position: relative; min-width: 0; padding: 1.35rem; background: #160f22; border: 1px solid #a28cc73d; border-radius: 10px; }
.flow li:not(:last-child)::after { position: absolute; content: ""; top: 42px; right: -1.52rem; width: 1.52rem; height: 1px; background: #9b75e1; }
.flow h3 { margin: 1rem 0 .4rem; }
.flow p { color: var(--muted); font-size: .93rem; line-height: 1.52; }
.flow-icon { display: block; position: relative; width: 39px; height: 39px; color: #d2bcff; background: #352451; border: 1px solid #8c6abe70; border-radius: 8px; }
.flow-icon::before, .flow-icon::after { content: ""; position: absolute; }
.glyph-file::before { width: 13px; height: 17px; top: 9px; left: 12px; border: 1px solid currentColor; border-radius: 2px; }
.glyph-file::after { width: 6px; height: 1px; top: 16px; left: 15px; background: currentColor; box-shadow: 0 4px currentColor; }
.glyph-layers::before { width: 13px; height: 13px; top: 9px; left: 12px; transform: rotate(45deg); border: 1px solid currentColor; }
.glyph-layers::after { width: 11px; height: 11px; top: 15px; left: 13px; transform: rotate(45deg); border: solid currentColor; border-width: 0 1px 1px 0; }
.glyph-out::before { width: 17px; height: 15px; top: 12px; left: 10px; border: 1px solid currentColor; border-radius: 2px; }
.glyph-out::after { width: 7px; height: 7px; top: 8px; left: 19px; border: solid currentColor; border-width: 1px 1px 0 0; background: #352451; }
.section-note { border-left: 2px solid #9c73ed; padding-left: .85rem; font-size: .93rem; }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.themes figure { padding: 5px; overflow: hidden; background: #13101e; border: 1px solid color-mix(in srgb, var(--accent), transparent 72%); border-radius: 9px; }
.themes img { display: block; width: 100%; height: auto; border-radius: 5px; }
.themes figcaption { padding: .45rem .42rem .17rem; font-size: .86rem; color: #e4dcef; }
.themes figcaption i { display: inline-block; margin: 0 .34rem .08rem 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.privacy { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 10% 20%, #36205437, transparent 63%), #100c19; }
.privacy-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(350px, 1.25fr); align-items: center; gap: 2rem 3.5rem; }
.privacy .section-heading, .roadmap .section-heading { margin-bottom: 0; }
.privacy .section-heading p:not(.eyebrow), .roadmap .section-heading p:not(.eyebrow) { margin-top: .95rem; }
.privacy-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; text-align: left; font-size: .9rem; }
.privacy-table :is(th,td) { padding: .78rem .78rem; }
.privacy-table thead { background: #251a37; }
.privacy-table th { font-weight: 650; }
.privacy-table tbody { background: #15101f; }
.privacy-table tbody :is(th,td) { border-top: 1px solid var(--line); }
.privacy-table td { color: var(--muted); }
.privacy-table td:nth-child(2) { color: #e0d4ff; background: #b38dff0a; }
.roadmap { display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 2rem 4rem; }
.roadmap p.roadmap-note { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--line); font-size: .94rem; }
.roadmap-note strong { display: block; margin-bottom: .25rem; color: #e8d9ff; font-weight: 650; }
.json-window { min-width: 0; overflow: hidden; border: 1px solid #a983ff50; border-radius: 10px; background: #13101d; }
.json-title { display: block; padding: .6rem 1rem; border-bottom: 1px solid var(--line); color: #d7c7ef; background: #241936; font-size: .83rem; font-weight: 650; }
.json-window pre { margin: 0; padding: .9rem 1rem; overflow: auto; color: #d7c7ef; font: .85rem/1.56 "Cascadia Code", Consolas, monospace; }
.json-window b { font-weight: 500; color: #c4a7ff; }
.json-window em { color: #8be3cb; font-style: normal; }

.site-footer { border-top: 1px solid var(--line); background: #100c18; }
.footer-row { display: flex; align-items: center; justify-content: space-between; padding-block: 1.3rem; gap: 1rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-grid li, .engine-grid li.data-format { grid-column: auto; }
  .privacy-grid, .roadmap { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-layout { grid-template-columns: 1fr; gap: 1.6rem; min-height: 0; padding-block: 3.2rem 3.85rem; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(2.7rem, 9vw, 4.7rem); }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-mesh { inset: -9% -65% -92%; }
  .hero-depth-rings { inset: 30% -8% 0; }
  .hero-formats {
    --columns: 6; --gap: 9px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
    width: min(100%, 590px); height: auto; margin-inline: auto;
  }
  .hero-format {
    position: relative; inset: auto; width: calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns));
    min-height: clamp(59px, 11vw, 76px); border-radius: 10px; transform: none;
    animation: format-row-drift 5.2s ease-in-out var(--phase) infinite;
  }
  .hero-format img { height: 28px; }
  .hero-wordmark img { height: clamp(24px, 5.4vw, 40px); }
}
@media (max-width: 720px) {
  .nav { flex-direction: column; gap: .05rem; padding-block: .72rem .3rem; }
  .header-links { justify-content: center; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 30px); }
  .brand { font-size: .91rem; gap: .47rem; }
  .brand-mark { width: 29px; height: 29px; }
  .frame-bar { flex-wrap: wrap; padding: .35rem .45rem .5rem; }
  .frame-label { font-size: .76rem; }
  .workbench-screens { grid-template-columns: 1fr; gap: .75rem; margin-top: .75rem; }
  .app-frame { padding: 4px; border-radius: 11px; }
  .workbench figcaption { padding: .5rem .44rem .3rem; }
  .section-heading.split { grid-template-columns: 1fr; gap: .72rem; }
  .section-heading.split br { display: none; }
  .section h2 { font-size: clamp(2.45rem, 10.5vw, 4rem); }
  .engine-grid { grid-template-columns: 1fr; }
  .engine-grid li { min-height: 73px; }
  .flow { grid-template-columns: 1fr; gap: .75rem; }
  .flow li:not(:last-child)::after { display: none; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .privacy-table { font-size: .83rem; }
  .privacy-table :is(th,td) { padding: .53rem .46rem; }
  .footer-row { flex-wrap: wrap; }
  .footer-row nav { gap: .85rem; }
}
@media (max-width: 500px) {
  .hero-formats { --columns: 4; --gap: 7px; }
}
@media (max-width: 360px) {
  .header-links a { font-size: .84rem; }
  .themes figcaption { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .hero-format { animation: none; }
  .hero-motion { display: none; }
}
