@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --bg: #070a12;
  --bg-alt: #0b1220;
  --glass: rgba(12, 20, 36, 0.55);
  --primary: #1aa7ff;
  --primary-dark: #0b6fb4;
  --secondary: #7a5cff;
  --text: #f6f7fb;
  --muted: #b8c2d8;
  --border: rgba(100, 140, 200, 0.25);
  --shadow: 0 20px 60px rgba(5, 10, 25, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top, #0b1830 0%, #070a12 55%, #05070c 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 93%, rgba(45, 90, 150, 0.25) 100%),
    linear-gradient(90deg, transparent 93%, rgba(45, 90, 150, 0.25) 100%);
  background-size: 60px 60px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

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

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

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

section {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(50, 80, 130, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 450px;
  height: 126px;
  object-fit: contain;
  object-position: left center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a.active,
.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #1294d6, var(--primary-dark));
  color: #e9f6ff;
  border: 1px solid rgba(30, 150, 220, 0.6);
  box-shadow: 0 12px 30px rgba(41, 199, 255, 0.35);
}

.btn-secondary {
  background: rgba(30, 50, 90, 0.35);
  border-color: rgba(90, 140, 220, 0.45);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 90px 6vw 60px;
}

.hero.compact {
  padding: 60px 6vw 20px;
}

.hero-content h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.subheadline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  min-height: 260px;
}

.glow {
  position: absolute;
  border-radius: 50%;
}

.glow.orb {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(41, 199, 255, 0.9), rgba(41, 199, 255, 0.1));
  top: 10px;
  right: 10%;
  box-shadow: 0 0 60px rgba(41, 199, 255, 0.6);
}

.glow.beam {
  width: 360px;
  height: 100px;
  background: linear-gradient(90deg, transparent, rgba(41, 199, 255, 0.5), transparent);
  top: 140px;
  left: 10%;
  border-radius: 999px;
}

.symbol-network {
  position: absolute;
  inset: 0;
}

.symbol-network .node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #7fe7ff, rgba(41, 199, 255, 0.2));
  box-shadow: 0 0 12px rgba(41, 199, 255, 0.7);
}

.symbol-network .node.n1 { top: 30px; left: 40px; }
.symbol-network .node.n2 { top: 90px; left: 160px; }
.symbol-network .node.n3 { top: 40px; right: 40px; }
.symbol-network .node.n4 { bottom: 90px; right: 80px; }
.symbol-network .node.n5 { bottom: 50px; left: 80px; }
.symbol-network .node.n6 { bottom: 130px; left: 220px; }

.symbol-network .link {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(41, 199, 255, 0.1), rgba(41, 199, 255, 0.6), rgba(122, 92, 255, 0.2));
  box-shadow: 0 0 10px rgba(41, 199, 255, 0.4);
}

.symbol-network .link.l1 {
  top: 40px;
  left: 50px;
  width: 160px;
  transform: rotate(16deg);
}

.symbol-network .link.l2 {
  top: 100px;
  left: 150px;
  width: 180px;
  transform: rotate(-10deg);
}

.symbol-network .link.l3 {
  bottom: 90px;
  left: 90px;
  width: 210px;
  transform: rotate(8deg);
}

.symbol-network .link.l4 {
  bottom: 70px;
  right: 80px;
  width: 140px;
  transform: rotate(-14deg);
}

.symbol-network .link.l5 {
  top: 70px;
  right: 70px;
  width: 120px;
  transform: rotate(24deg);
}

.symbol-flow {
  position: absolute;
  bottom: 10%;
  left: 12%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(12, 25, 45, 0.7);
  border: 1px solid rgba(80, 140, 220, 0.35);
  box-shadow: 0 12px 24px rgba(5, 15, 35, 0.4);
}

.symbol-flow .flow-block {
  width: 36px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(41, 199, 255, 0.7), rgba(122, 92, 255, 0.5));
}

.symbol-flow .flow-block.b2 {
  width: 44px;
}

.symbol-flow .flow-block.b3 {
  width: 28px;
}

.symbol-flow .flow-arrow {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid rgba(41, 199, 255, 0.9);
}

.section {
  padding: 70px 6vw;
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.screenshots {
  display: grid;
  gap: 24px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .screenshot-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.screenshot {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12, 20, 36, 0.4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-link {
  display: block;
  cursor: zoom-in;
}

.screenshot-link:focus-visible {
  outline: 2px solid rgba(41, 199, 255, 0.8);
  outline-offset: 3px;
}

.screenshot img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background: rgba(5, 10, 25, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.screenshot-portrait img {
  max-height: 520px;
}

.screenshot-landscape img {
  max-height: 320px;
}

.screenshot:hover img {
  filter: saturate(1.1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 96vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(120, 170, 240, 0.35);
  background: rgba(10, 18, 32, 0.85);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 240, 0.35);
  background: rgba(10, 18, 32, 0.75);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(20, 34, 62, 0.75);
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.card-link {
  display: block;
  cursor: pointer;
}

.card-link:focus-visible {
  outline: 2px solid rgba(41, 199, 255, 0.8);
  outline-offset: 3px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(90, 140, 220, 0.6);
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.5);
}

.cta {
  margin: 0 6vw 70px;
  padding: 30px 32px;
  border-radius: 20px;
  background: rgba(10, 18, 32, 0.65);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal {
  max-width: 900px;
  margin: 0 auto 60px;
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.legal h2 {
  color: var(--text);
  margin-top: 10px;
}

.legal ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.last-updated {
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(80, 120, 190, 0.4);
  background: rgba(8, 14, 24, 0.55);
}

.checkout-summary p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary strong {
  font-size: 1.05rem;
}

.checkout-note {
  margin-top: 14px;
}

.checkout-output {
  display: grid;
  gap: 12px;
}

.code-block {
  border-radius: 14px;
  border: 1px solid rgba(80, 120, 190, 0.35);
  background: rgba(8, 14, 24, 0.8);
  padding: 14px;
  overflow: auto;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: rgba(240, 247, 255, 0.92);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-hint {
  color: rgba(184, 194, 216, 0.85);
  font-size: 0.85rem;
}

.form-warning {
  color: rgba(255, 216, 112, 0.95);
  font-size: 0.85rem;
}

input,
select,
textarea {
  background: rgba(8, 14, 24, 0.85);
  border: 1px solid rgba(80, 120, 190, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus,
.menu-toggle:focus {
  outline: 2px solid rgba(41, 199, 255, 0.8);
  outline-offset: 2px;
}

.contact-panel {
  background: rgba(10, 18, 32, 0.65);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
}

.contact-panel ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-panel li::before {
  content: "-";
  margin-right: 8px;
  color: var(--primary);
}

.footer {
  padding: 40px 6vw;
  border-top: 1px solid rgba(60, 90, 150, 0.3);
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.footer-contact {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact a {
  color: var(--primary);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(80, 120, 190, 0.6);
  background: rgba(7, 12, 22, 0.8);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-6px);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(10, 18, 32, 0.9);
  border: 1px solid rgba(90, 140, 220, 0.5);
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 6vw;
    flex-direction: column;
    background: rgba(8, 12, 20, 0.95);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(80, 120, 190, 0.35);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar {
    position: relative;
  }

  .symbol-flow {
    left: 6%;
  }
}

@media (max-width: 700px) {
  .logo {
    width: 300px;
    height: 90px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .symbol-network,
  .symbol-flow {
    display: none;
  }
}
