:root {
  color-scheme: light dark;
  --bg: #f4f7fe;
  --bg-bottom: #eaf0fb;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #0f1728;
  --muted: #5a677e;
  --border: rgba(58, 70, 96, 0.14);
  --border-strong: rgba(33, 44, 63, 0.16);
  --accent: #7a5cff;
  --accent-strong: #6a49f2;
  --accent-soft: rgba(122, 92, 255, 0.1);
  --accent-soft-strong: rgba(122, 92, 255, 0.18);
  --blue-soft: rgba(61, 154, 255, 0.12);
  --shadow: 0 28px 90px rgba(15, 23, 40, 0.13);
  --shadow-soft: 0 18px 52px rgba(15, 23, 40, 0.08);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 92, 255, 0.22), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(61, 154, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 52%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--text);
}

code {
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(122, 92, 255, 0.16);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.92em;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  gap: 1rem 1.3rem;
  margin-bottom: 2rem;
  padding: 0.88rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(122, 92, 255, 0.12),
    var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--panel);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.menu-toggle-icon {
  display: grid;
  gap: 0.24rem;
}

.menu-toggle-icon span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: center;
  padding: 3rem 0 3.8rem;
}

.eyebrow {
  margin: 0 0 0.82rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.feature-copy h2,
.mini-panel h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 5.8vw, 6rem);
  line-height: 0.95;
}

.hero-text,
.hero-note,
.feature-copy p,
.mini-list,
.gallery-card figcaption,
.mini-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 1.3rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.38rem;
  border: 0;
  border-radius: 999px;
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 730;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #9a63ff 100%);
  color: #faf9ff;
  box-shadow: 0 18px 34px rgba(122, 92, 255, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 22px 42px rgba(122, 92, 255, 0.28);
}

.button-secondary {
  border: 1px solid var(--border);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.hero-note {
  max-width: 58ch;
  margin: 1rem 0 0;
}

.workflow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.workflow-pills li {
  padding: 0.58rem 0.92rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 610;
}

.workflow-pills-muted li {
  background: var(--accent-soft);
  border-color: rgba(122, 92, 255, 0.12);
}

.hero-stage {
  position: relative;
  margin-right: -4rem;
}

.hero-stage::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-stage::before {
  inset: 10% 2% -2% 8%;
  background:
    radial-gradient(circle at center, rgba(122, 92, 255, 0.22), transparent 58%),
    radial-gradient(circle at bottom right, rgba(61, 154, 255, 0.18), transparent 48%);
  filter: blur(34px);
}

.window-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 253, 0.88));
  box-shadow: var(--shadow);
}

.window-frame img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 2px);
  transition: transform 240ms ease;
}

.hero-stage .window-frame img {
  transform: translateY(8px) scale(1.03);
  transform-origin: center;
}

.quickstrip,
.gallery-card,
.mini-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.quickstrip,
.feature-section {
  padding: 4.8rem 0 0;
}

.quickstrip {
  margin-top: 0.4rem;
  padding: 1.15rem 1.3rem;
  background: linear-gradient(135deg, rgba(122, 92, 255, 0.08), rgba(61, 154, 255, 0.16));
}

.quickstrip .workflow-pills {
  margin-top: 0.9rem;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 1.1rem;
  align-items: start;
}

.feature-layout-reverse {
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
}

.feature-layout-reverse .feature-copy {
  order: 2;
}

.feature-layout-reverse .template-grid {
  order: 1;
}

.feature-copy {
  max-width: 28rem;
  padding: 0.4rem 0;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(2.45rem, 4.2vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.feature-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.mini-list {
  display: grid;
  gap: 0.72rem;
  margin: 1.15rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.mini-list li::marker {
  color: var(--accent);
}

.feature-media,
.controls-media {
  display: grid;
  gap: 1rem;
}

.template-grid,
.mini-panels {
  display: grid;
  gap: 1rem;
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  margin: 0;
  padding: 1rem;
}

.gallery-card-wide,
.support-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-lg) - 8px);
  background: #101729;
  transition: transform 240ms ease;
}

.window-frame:hover img,
.window-frame:focus-within img {
  transform: translateY(8px) scale(1.045);
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  transform: scale(1.02);
}

.gallery-card figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-card-feature {
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.08), rgba(61, 154, 255, 0.06)),
    var(--panel-soft);
}

.gallery-card-feature figcaption {
  font-size: 1rem;
}

.mini-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.mini-panel {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.1), rgba(61, 154, 255, 0.06)),
    var(--panel-soft);
}

.mini-panel h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.mini-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 0;
}

.site-footer p {
  margin: 0;
}

.hero-copy,
.hero-stage,
.quickstrip,
.feature-copy,
.gallery-card,
.mini-panel {
  animation: rise-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stage {
  animation-delay: 0.08s;
}

.gallery-card:nth-child(2),
.mini-panel:nth-child(2) {
  animation-delay: 0.12s;
}

.gallery-card:nth-child(3),
.mini-panel:nth-child(3) {
  animation-delay: 0.18s;
}

.gallery-card:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1320;
    --bg-bottom: #090f18;
    --panel: #141d30;
    --panel-soft: rgba(20, 29, 48, 0.82);
    --panel-strong: rgba(20, 29, 48, 0.94);
    --text: #eef3ff;
    --muted: #a4b1ca;
    --border: rgba(157, 177, 212, 0.14);
    --border-strong: rgba(188, 203, 234, 0.16);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 12% 8%, rgba(122, 92, 255, 0.22), transparent 26%),
      radial-gradient(circle at 82% 16%, rgba(61, 154, 255, 0.12), transparent 22%),
      linear-gradient(180deg, #0a101a 0%, var(--bg) 52%, var(--bg-bottom) 100%);
  }

  .site-header {
    background: rgba(18, 26, 42, 0.72);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .button-secondary,
  .workflow-pills li {
    background: rgba(18, 26, 42, 0.9);
  }

  .window-frame {
    background: linear-gradient(180deg, rgba(18, 26, 42, 0.96), rgba(15, 22, 35, 0.9));
  }

  .quickstrip,
  .mini-panel {
    background: linear-gradient(135deg, rgba(122, 92, 255, 0.16), rgba(61, 154, 255, 0.14));
  }
}

@media (max-width: 1080px) {
  .hero,
  .feature-layout,
  .feature-layout-reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stage {
    margin-right: 0;
  }

  .feature-copy {
    max-width: none;
  }

  .feature-layout-reverse .feature-copy,
  .feature-layout-reverse .template-grid {
    order: initial;
  }
}

@media (max-width: 820px) {
  .template-grid,
  .mini-panels {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide,
  .support-card-wide {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.8rem;
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 999px;
  }

  .brand {
    max-width: none;
    align-items: center;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-tagline {
    max-width: none;
    font-size: 0.84rem;
    display: grid;
    gap: 0;
    line-height: 1.25;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: center;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .site-header.is-menu-open {
    border-radius: 30px;
  }

  .site-nav a {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    background: var(--panel-soft);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 4.1rem);
  }

  .gallery-card,
  .mini-panel {
    padding: 1.12rem;
  }
}

@media (max-width: 520px) {
  .workflow-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-pills li {
    text-align: center;
  }
}
