:root {
  --navy: #07131c;
  --deep: #0c1c28;
  --air: #7ec8e3;
  --air-hot: #b7e4f4;
  --lung: #c45c6a;
  --bone: #e8f1f6;
  --muted: #8aa3b3;
  --ok: #3d8f6e;
  --err: #c45c6a;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(126, 200, 227, 0.16), transparent 50%),
    radial-gradient(700px 380px at 92% 0%, rgba(196, 92, 106, 0.14), transparent 46%),
    linear-gradient(180deg, var(--navy), var(--deep));
  color: var(--bone);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--air); text-decoration: none; }
a:hover { color: var(--air-hot); }
.announcement {
  text-align: center;
  padding: 0.55rem 1rem;
  background: #102634;
  color: var(--air);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 5vw;
  position: sticky;
  top: 0;
  background: rgba(7, 19, 28, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 200, 227, 0.12);
}
.nav nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
}
.brand span { color: var(--air); }
.mark { width: 32px; height: 32px; }
.btn {
  display: inline-block;
  background: var(--air);
  color: var(--navy);
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { color: var(--navy); filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--air);
  box-shadow: inset 0 0 0 1px var(--air);
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
main { padding: 2.5rem 5vw 4rem; }
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 3rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.3rem 0 1rem; }
.kicker { color: var(--air); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; margin: 0; }
.lead { color: #c5d6e0; font-size: 1.08rem; max-width: 42rem; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.stat-card {
  background: rgba(14, 36, 50, 0.8);
  border: 1px solid rgba(126, 200, 227, 0.18);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
}
.stat-card ul { padding-left: 1.1rem; }
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.grid3 article, .band, .panel, .prose, .card {
  background: rgba(14, 36, 50, 0.55);
  border: 1px solid rgba(126, 200, 227, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}
.band, .prose, .panel { max-width: 760px; margin: 0 auto 2rem; }
.panel { max-width: 480px; }
.prose { max-width: 720px; }
form label { display: block; margin: 0.85rem 0; }
input, textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #35566a;
  background: #071820;
  color: var(--bone);
  font-family: inherit;
}
.inline { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.inline input { width: auto; flex: 1; min-width: 140px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.err { background: #3a1c24; color: #f3c4ca; padding: 0.7rem; border-radius: 8px; }
.ok { background: #16352c; color: #b7e4c7; padding: 0.7rem; border-radius: 8px; }
.ok code { display: block; margin-top: 0.4rem; word-break: break-all; color: var(--air-hot); }
.fine { color: var(--muted); font-size: 0.88rem; }
footer {
  padding: 2rem 5vw 3rem;
  border-top: 1px solid rgba(126, 200, 227, 0.1);
  color: var(--muted);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.price-card {
  background: rgba(14, 36, 50, 0.7);
  border: 1px solid rgba(126, 200, 227, 0.14);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.price-card.featured { box-shadow: inset 0 0 0 1px var(--air); }
.price-card h2 { margin: 0.2rem 0; }
.price-card .money { font-family: var(--display); font-size: 2rem; margin: 0.2rem 0; }
.price-card .money span { font-size: 0.95rem; color: var(--muted); font-family: var(--font); }
.price-card ul { padding-left: 1.1rem; color: #c5d6e0; flex: 1; }
.price-card .btn { margin-top: 0.6rem; text-align: center; }

/* Interactive Demo & Screenshots */
.section-heading {
  text-align: center;
  max-width: 800px;
  margin: 3.5rem auto 1.5rem;
}
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0.3rem 0; }
.section-heading p { color: #c5d6e0; font-size: 1.05rem; }

.demo-box {
  background: rgba(10, 24, 34, 0.85);
  border: 1px solid rgba(126, 200, 227, 0.22);
  border-radius: 18px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.4rem;
  background: rgba(14, 36, 50, 0.7);
  border-bottom: 1px solid rgba(126, 200, 227, 0.14);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--air);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.demo-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.demo-stage {
  display: grid;
  grid-template-columns: 1fr 310px;
  min-height: 480px;
  position: relative;
}
.demo-viewport {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: radial-gradient(circle at center, #0f2b3c 0%, #07131c 85%);
  cursor: grab;
}
.demo-viewport:active { cursor: grabbing; }
.demo-canvas { width: 100%; height: 100%; display: block; }
.demo-overlay-hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(7, 19, 28, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--air);
  border: 1px solid rgba(126, 200, 227, 0.18);
  pointer-events: none;
}
.demo-sidebar {
  padding: 1.25rem 1.4rem;
  background: rgba(12, 30, 42, 0.8);
  border-left: 1px solid rgba(126, 200, 227, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.demo-sidebar h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--air);
  margin: 0;
}
.demo-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.demo-control-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #c5d6e0;
}
.demo-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.demo-toggle-btn {
  background: rgba(14, 36, 50, 0.7);
  border: 1px solid rgba(126, 200, 227, 0.2);
  color: var(--bone);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.demo-toggle-btn.active {
  background: var(--air);
  color: var(--navy);
  font-weight: 600;
  border-color: var(--air);
}
.demo-slider {
  width: 100%;
  accent-color: var(--air);
  cursor: pointer;
}
.demo-telemetry {
  margin-top: auto;
  padding: 0.75rem;
  background: rgba(7, 19, 28, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(126, 200, 227, 0.1);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Screenshots Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}
.gallery-card {
  background: rgba(14, 36, 50, 0.6);
  border: 1px solid rgba(126, 200, 227, 0.16);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--air);
}
.gallery-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07131c;
  cursor: pointer;
}
.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-card-img-wrap:hover img {
  transform: scale(1.03);
}
.gallery-card-body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gallery-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--bone);
}
.gallery-card-body p {
  font-size: 0.88rem;
  color: #a4bcc9;
  line-height: 1.5;
  margin: 0;
}
.gallery-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--air);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.active { display: grid; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(126, 200, 227, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: var(--bone);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 860px) {
  .hero, .grid3, .price-grid, .gallery-grid { grid-template-columns: 1fr; }
  .demo-stage { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; }
}
