html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  color: #1f2937;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite;
}

.bg-orb-1 {
  top: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: #60a5fa;
}

.bg-orb-2 {
  top: 260px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: #22c55e;
  animation-delay: -3s;
}

.bg-orb-3 {
  bottom: 120px;
  left: 10%;
  width: 240px;
  height: 240px;
  background: #a78bfa;
  animation-delay: -5s;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 226, 234, 0.8);
}

.nav-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.nav-brand strong {
  display: block;
  font-size: 15px;
}

.nav-brand span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.site-nav.nav-open .nav-toggle {
  border-color: rgba(13, 71, 161, 0.5);
}

.nav-links a {
  font-size: 14px;
  color: #475569;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #0d47a1;
}

.nav-links .btn,
.nav-links .btn:hover {
  color: #ffffff;
}

.container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 40px;
}

.container > section,
.container > .grid,
.container > .section-gap {
  width: 100%;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.section-gap {
  height: 24px;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.hero {
  background: linear-gradient(135deg, #0d47a1, #1e3a8a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(28px, 4vw, 44px) clamp(18px, 5vw, 64px);
  min-height: min(100vh - 84px, 760px);
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.hero h1,
.hero p {
  margin-top: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.hero-brand h1 {
  margin: 0 0 4px;
}

.hero-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-layout {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 640px) minmax(280px, 360px);
  justify-content: space-between;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.hero-copy > p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid > .card {
  height: 100%;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat {
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.muted {
  color: #6b7280;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.section-head p {
  margin: 0;
  color: #64748b;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.btn-primary {
  background: #0d47a1;
  color: #ffffff;
}

.btn-soft {
  background: #e8eefc;
  color: #0d47a1;
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-buy {
  background: #22c55e;
  color: #ffffff;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  background: #f9fafb;
  padding: 12px 14px;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-issued {
  background: #fff7ed;
  color: #9a3412;
}

.tag-activated {
  background: #ecfdf5;
  color: #166534;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.alert-success {
  background: #ecfdf5;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.right {
  text-align: right;
}

.price-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.price-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.price-amount {
  margin: 14px 0 8px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

.feature-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-list li {
  margin-bottom: 8px;
}

.feature-list-dark {
  color: #334155;
}

.hero-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.hero-highlights {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-highlight-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.hero-highlight-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-mockup {
  position: relative;
  width: min(100%, 280px);
  padding: 14px;
  border-radius: 36px;
  background: #0f172a;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 16px;
  border-radius: 0 0 14px 14px;
  background: #020617;
  z-index: 2;
}

.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 4px solid #111827;
}

.phone-screen img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.price-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.price-section-copy {
  max-width: 620px;
}

.price-card-solid {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.price-badge-solid {
  background: rgba(255, 255, 255, 0.14);
}

.price-amount-dark {
  color: #ffffff;
}

.price-card-solid p {
  color: rgba(255, 255, 255, 0.84);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-section {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  text-align: left;
  cursor: pointer;
  position: relative;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.gallery-card:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.28);
  outline-offset: 2px;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card .content {
  padding: 14px 16px 18px;
  flex: 1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.35), rgba(255, 255, 255, 1));
}

.gallery-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.gallery-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.gallery-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d47a1, #2563eb);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.preview-modal[hidden] {
  display: none;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.preview-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-height: min(92vh, 900px);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

.preview-dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: linear-gradient(180deg, #dbeafe, #f8fafc);
}

.preview-content {
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.preview-content h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.preview-content p {
  margin: 0;
  color: #64748b;
}

.preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.promo-banner p {
  margin: 0;
}

.promo-metric {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promo-metric .stat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.promo-metric strong,
.promo-metric div {
  color: #ffffff;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  margin-top: 30px;
}

.footer-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #ffffff;
  padding: 6px;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 10px;
}

.footer-inner p,
.footer-inner a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  padding: 16px 24px 24px;
  color: #94a3b8;
  font-size: 13px;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.06);
  }
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav-inner {
    padding: 14px 18px;
  }

  .nav-brand strong {
    font-size: 14px;
  }

  .nav-brand span {
    display: none;
  }

  .nav-brand img {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 30;
    max-height: calc(100vh - 92px);
    overflow: auto;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .site-nav.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
  }

  .nav-links a:not(.btn):hover {
    background: rgba(13, 71, 161, 0.08);
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .hero-brand {
    align-items: flex-start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero {
    padding: 26px 20px;
    min-height: auto;
  }

  .hero-side {
    justify-self: center;
    max-width: none;
  }

  .hero-note {
    gap: 8px;
  }

  .price-amount {
    font-size: 34px;
  }

  .phone-mockup {
    width: 220px;
  }

  .phone-screen img {
    height: 430px;
  }

  .price-section {
    grid-template-columns: 1fr;
  }

  .price-card-solid {
    padding: 22px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .promo-banner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .promo-metric {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
