* {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background:
    radial-gradient(ellipse at 82% 4%, rgba(50, 197, 230, 0.13), transparent 30%),
    radial-gradient(ellipse at 8% 34%, rgba(10, 132, 255, 0.07), transparent 27%),
    linear-gradient(155deg, var(--bg-deep), var(--bg) 43%, #131419);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: var(--accent); }
button, a { touch-action: manipulation; }
button { cursor: pointer; }

.container {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.navbar {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  background: rgba(14, 15, 18, 0.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--panel-border);
}

.nav-container {
  width: min(var(--content), calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover, .nav-link:focus-visible { color: var(--accent); }

.mobile-menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px 13px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.mobile-menu-button::before {
  content: "☰";
  color: var(--accent);
  font-size: 1rem;
}

.hero {
  position: relative;
  width: min(var(--content), calc(100% - 40px));
  min-height: 720px;
  margin-inline: auto;
  padding: 142px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 52px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 7px 0 14px currentColor;
}

.hero h1 {
  max-width: 11ch;
  margin: 18px 0 24px;
  font-size: clamp(3.1rem, 5.5vw, 5.35rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 36px rgba(50, 197, 230, 0.15);
}

.hero p {
  max-width: 57ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-buttons, .cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 29px;
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 21px;
  border-radius: 11px;
  font-weight: 750;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary {
  border: 1px solid rgba(92, 223, 244, 0.65);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 48%, #37a7ef 100%);
  color: #071419;
  box-shadow: 0 12px 30px rgba(50, 197, 230, 0.16);
}

.btn-outline {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-primary:hover, .btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.23);
}

.btn-outline:hover { border-color: rgba(92, 223, 244, 0.45); }

.hero-meta {
  display: flex;
  gap: 11px 19px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: var(--text-soft);
  font-size: 0.83rem;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 8% 2% 0;
  border-radius: 50%;
  background: rgba(50, 197, 230, 0.16);
  filter: blur(70px);
}

.mockup-hero {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 0, 0, 0.25);
  transform: rotateY(-2deg) rotateX(1deg);
}

.mockup-hero img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.engine-badge {
  position: absolute;
  right: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(48, 209, 88, 0.25);
  border-radius: 12px;
  background: rgba(23, 24, 27, 0.93);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  color: var(--text-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
}

.engine-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.65);
}

.features, .screenshots, .guide, .legal, .credits, .cta { padding: 84px 0; }

.alt-tone {
  background: rgba(6, 7, 9, 0.27);
  border-block: 1px solid rgba(255, 255, 255, 0.065);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading {
  max-width: 710px;
  margin: 0 auto 39px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-subtitle {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--text-soft);
}

.features-grid, .steps-grid, .screenshots-grid, .gallery-grid {
  display: grid;
  gap: 18px;
}

.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screenshots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card, .screenshot-card, .text-panel, .note-box, .step-card {
  position: relative;
  height: 100%;
  padding: 25px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(10, 11, 14, 0.26));
  box-shadow: 0 14px 34px var(--shadow);
}

.feature-card { overflow: hidden; }
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--card-accent, var(--accent));
}
.feature-card:nth-child(2) { --card-accent: var(--purple); }
.feature-card:nth-child(3) { --card-accent: var(--orange); }

.feature-card h3, .screenshot-card h3, .text-panel h3, .note-box h3 {
  margin: 0 0 9px;
  font-size: 1.2rem;
  letter-spacing: -0.018em;
}

.feature-card p, .screenshot-card p, .text-panel p, .note-box p, .step-card p, .footer-copy p {
  margin: 0.4em 0;
  color: var(--text-soft);
}

.feature-badge, .step-number {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 4px 10px;
  border: 1px solid rgba(92, 223, 244, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.feature-card:nth-child(2) .feature-badge {
  border-color: rgba(191, 90, 242, 0.22);
  background: rgba(191, 90, 242, 0.1);
  color: #d996fa;
}

.feature-card:nth-child(3) .feature-badge {
  border-color: rgba(255, 159, 10, 0.22);
  background: rgba(255, 159, 10, 0.1);
  color: #ffbf5c;
}

.step-card { padding: 22px; }
.step-card h3 { margin: 0 0 8px; font-size: 1.04rem; }
.step-card p { font-size: 0.92rem; }

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.guide h3 { margin-top: 0; }

.doc-list {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.doc-list li {
  position: relative;
  padding-left: 21px;
  color: var(--text-soft);
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.doc-list strong { color: var(--text); }

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  border-radius: 0 11px 11px 0;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
}

.gallery-grid img {
  width: 100%;
  border-bottom: 1px solid var(--panel-border);
}

.gallery-grid figcaption {
  padding: 13px 17px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.screenshot-card { padding: 14px 14px 21px; }
.screenshot-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  margin-bottom: 14px;
}
.screenshot-card:hover img { transform: translateY(-3px); border-color: rgba(92, 223, 244, 0.35); }
.screenshot-card h3, .screenshot-card p { margin-inline: 9px; }
.screenshot-card p { font-size: 0.91rem; }

.legal { background: rgba(6, 7, 9, 0.2); }
.legal details {
  margin: 12px 0;
  padding: 18px 21px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
}
.legal details[open] { border-color: rgba(92, 223, 244, 0.22); }
.legal summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 750;
  font-size: 1.05rem;
}
.legal summary::marker { color: var(--text-soft); }
.legal details h3 { margin: 20px 0 4px; font-size: 1rem; }
.legal details p, .legal details li { color: var(--text-soft); }
.legal details ul { padding-left: 22px; }
.legal details a { text-underline-offset: 3px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.text-panel a { text-underline-offset: 3px; }
.fine-print { color: var(--text-soft); font-size: 0.82rem; }

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(50, 197, 230, 0.035), rgba(5, 6, 8, 0.3));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -170px;
  width: 560px;
  height: 260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(50, 197, 230, 0.11);
  filter: blur(60px);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta p { max-width: 68ch; margin: 0 auto; color: var(--text-soft); }
.cta-buttons { justify-content: center; }

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--panel-border);
  background: rgba(8, 9, 11, 0.36);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-copy p { margin: 8px 0 0; font-size: 0.88rem; }
.footer-logo .logo-icon { width: 36px; height: 36px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 6, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: veil-in 180ms ease both;
}

.sheet-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 850px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: linear-gradient(150deg, #24262b, #141519 72%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  animation: sheet-in 220ms ease both;
}
.sheet-panel h2 { margin-top: 12px; font-size: 2rem; }
.sheet-close {
  position: absolute;
  right: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}
.sheet-close:hover { background: rgba(255, 255, 255, 0.12); }

.form-grid { display: grid; gap: 14px; margin-top: 20px; }
.form-grid label { display: grid; gap: 6px; color: var(--text-soft); font-size: 0.9rem; font-weight: 650; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  outline: none;
  background: rgba(7, 8, 10, 0.52);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(50, 197, 230, 0.12);
}
.form-grid select option { color: var(--text); background: var(--bg-soft); }
.form-grid textarea { min-height: 135px; resize: vertical; }
.form-grid .btn-primary { margin-top: 3px; }
.form-hint { color: var(--text-soft); font-size: 0.8rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.no-scroll { overflow: hidden; }

.hero-copy { animation: rise-in 650ms 80ms ease both; }
.hero-image { animation: rise-in 750ms 190ms ease both; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1080px) {
  .nav-menu { gap: 15px; }
  .nav-link { font-size: 0.84rem; }
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr); gap: 34px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 128px;
  }
  .hero-copy { max-width: 700px; }
  .hero h1 { max-width: 12ch; }
  .hero-image { width: min(720px, 100%); margin-inline: auto; }
  .features-grid, .screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid > :last-child, .screenshots-grid > :last-child { grid-column: 1 / -1; }
  .guide-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .nav-container { min-height: 68px; flex-wrap: wrap; padding: 11px 0; }
  .mobile-menu-button { display: inline-flex; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    padding: 5px 0 12px;
  }
  .nav-menu.active { display: flex; }
  .nav-menu .nav-link { width: 100%; min-height: 42px; padding-inline: 4px; }
  .hero { width: calc(100% - 32px); padding-top: 112px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.4rem); }
  .features, .screenshots, .guide, .legal, .credits, .cta { padding: 64px 0; }
  .container, .nav-container { width: calc(100% - 32px); }
  .features-grid, .screenshots-grid, .steps-grid, .content-grid, .gallery-grid { grid-template-columns: 1fr; }
  .features-grid > :last-child, .screenshots-grid > :last-child { grid-column: auto; }
  .feature-card, .text-panel, .note-box, .step-card { padding: 21px; }
  .engine-badge { right: 8px; bottom: -25px; }
  .sheet-panel { padding: 27px 21px; }
  .footer-content { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 440px) {
  .logo { font-size: 0.92rem; }
  .logo-icon { width: 38px; height: 38px; }
  .hero-buttons, .cta-buttons { flex-direction: column; align-items: stretch; }
  .hero-meta { flex-direction: column; }
  .mockup-hero { padding: 5px; border-radius: 13px; }
  .mockup-hero img { border-radius: 8px; }
  .engine-badge { position: relative; right: auto; bottom: auto; width: max-content; margin: -13px 10px 0 auto; }
  .contact-sheet { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .mockup-hero { transform: none; }
}
