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

html {
  scroll-behavior: smooth;
  background-color: #06080E;
  color: #E2E8F0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #06080E;
  color: #E2E8F0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #C7D2FE;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090D16;
}
::-webkit-scrollbar-thumb {
  background: #1A2338;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #25324E;
}

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

code, .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Ambient Background Glows */
.ambient-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glow-top {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 9999px;
  filter: blur(130px);
}
.glow-left {
  position: absolute;
  top: 35%;
  left: -12rem;
  width: 450px;
  height: 450px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 9999px;
  filter: blur(120px);
}
.glow-right {
  position: absolute;
  top: 60%;
  right: -12rem;
  width: 500px;
  height: 500px;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 9999px;
  filter: blur(130px);
}

/* Layout Containers */
.container-6xl { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-5xl { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.container-4xl { width: 100%; max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.container-3xl { width: 100%; max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.container-lg  { width: 100%; max-width: 32rem; margin: 0 auto; padding: 0 1rem; }

@media (min-width: 640px) {
  .container-6xl, .container-5xl, .container-4xl, .container-3xl { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container-6xl, .container-5xl, .container-4xl, .container-3xl { padding: 0 2rem; }
}

/* Glass Panels */
.glass-panel {
  background: rgba(17, 23, 38, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.2);
}

/* Sticky Header & Pure CSS Mobile Menu (<details>) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 14, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}
.brand-wordmark {
  display: flex;
  align-items: center;
  letter-spacing: -0.025em;
  font-size: 1.125rem;
  font-weight: 700;
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: #CBD5E1;
  transition: color 0.2s;
}
.nav-item:hover {
  color: #FFFFFF;
}
.nav-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  transition: background 0.2s;
}
.nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-details {
  display: block;
}
.mobile-menu-details summary {
  list-style: none;
}
.mobile-menu-details summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.mobile-menu-btn:hover {
  color: #FFFFFF;
}
.mobile-menu-details .close-label {
  display: none;
}
.mobile-menu-details[open] .open-label {
  display: none;
}
.mobile-menu-details[open] .close-label {
  display: inline;
}

.mobile-drawer {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 4rem);
  background: #090D16;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-details {
    display: none;
  }
}

.drawer-link {
  display: block;
  padding: 0.875rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
}
.drawer-link-amber {
  display: block;
  padding: 0.875rem;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
}

/* Responsive Grids (320px Safe, Zero Horizontal Overflow) */
.grid-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
}
.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}
.grid-steps-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}
.grid-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .grid-footer {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Typography & Spacing Helpers */
.page-pad {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .page-pad {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}
.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.section-alt {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 13, 22, 0.4);
}

.h1-hero {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  line-height: 1.2;
}
.h1-page {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  line-height: 1.2;
}
.h2-sec {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}
.h2-card {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}
.h3-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Buttons & Badges */
.btn-indigo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: #4F46E5;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-indigo:hover { background: #6366F1; }

.btn-indigo-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: #4F46E5;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.75rem;
  transition: background 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-indigo-sm:hover { background: #6366F1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.75rem;
  transition: background 0.2s;
}
.btn-ghost-sm:hover { background: rgba(255, 255, 255, 0.1); }

.btn-amber-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FCD34D;
  font-weight: 500;
  font-size: 0.75rem;
  transition: background 0.2s;
}
.btn-amber-sm:hover { background: rgba(245, 158, 11, 0.2); }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: #FCD34D;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #FBBF24;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}
.pricing-table th {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-weight: 700;
}
.pricing-table td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  vertical-align: top;
}

/* Concept Previews Strip */
.shots-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  padding-top: 0.25rem;
}
.shot-card {
  width: 16rem;
  max-width: 100%;
  border-radius: 1rem;
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Lists */
ul.bullet-list {
  padding-left: 1.25rem;
  list-style-type: disc;
}
ul.bullet-list li {
  margin-bottom: 0.375rem;
}
ol.num-list {
  padding-left: 1.25rem;
  list-style-type: decimal;
}
ol.num-list li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #06080E;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  margin-top: 5rem;
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94A3B8;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Hero: text on the left, phone on the right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
}
.hero-grid.no-phone {
  grid-template-columns: 1fr;
}

/* Dynamic phone */
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.phone-wrap[hidden] {
  display: none;
}
.phone-stage {
  position: relative;
  width: min(16rem, 100%);
  animation: phone-float 7s ease-in-out infinite;
}
.phone-glow {
  position: absolute;
  inset: -1.25rem;
  z-index: 0;
  border-radius: 3rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.22) 55%, rgba(168, 85, 247, 0.2));
  filter: blur(34px);
  pointer-events: none;
  animation: phone-glow 6s ease-in-out infinite;
}
.phone {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 29rem;
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: linear-gradient(160deg, #1A2338, #0B0F19);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 40px -12px rgba(56, 189, 248, 0.25);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
}
.phone-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 4.4rem;
  height: 1rem;
  padding-right: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 9999px;
  background: #05070C;
}
.phone-notch-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #6366F1;
  animation: phone-pulse 2s ease-in-out infinite;
}
.phone-screen {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.9rem;
  background: radial-gradient(120% 70% at 50% 0%, rgba(79, 70, 229, 0.22), transparent 60%), #06080E;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.phone-screen.is-fading {
  opacity: 0;
  transform: translateY(8px);
}
.phone-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pscreen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2.4rem 1rem 1.1rem;
}
.pscreen-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.pscreen-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pscreen-id {
  min-width: 0;
}
.pscreen-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
}
.pscreen-cat {
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: #38BDF8;
}
.pscreen-tagline {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #94A3B8;
}
.pscan {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pscan-line {
  display: block;
  height: 0.4rem;
  width: var(--w, 80%);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  animation: pscan-line 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.42s);
}
.pscan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2.2rem;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.3), transparent);
  pointer-events: none;
  animation: pscan-beam 3.6s ease-in-out infinite;
}
.pscreen-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pscreen-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #E2E8F0;
  opacity: 0;
  transform: translateY(6px);
  animation: pscreen-in 0.5s ease forwards;
  animation-delay: calc(0.3s + var(--i, 0) * 0.16s);
}
.pscreen-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #38BDF8, #6366F1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.pscreen-chips {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.phone-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}
.phone-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}
.phone-caption .badge-dot {
  animation: phone-pulse 2s ease-in-out infinite;
}
.phone-app-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
}
a.phone-app-name:hover {
  text-decoration: underline;
}
.phone-dots {
  display: flex;
  gap: 0.5rem;
}
.phone-dots:empty {
  display: none;
}
.phone-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.phone-dot[aria-current="true"] {
  width: 1.25rem;
  background: #38BDF8;
}
.phone-dot:focus-visible,
.phone-app-name:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 3px;
}
.phone-note {
  font-size: 0.6875rem;
  color: #94A3B8;
  text-align: center;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes phone-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes phone-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes pscan-beam {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(280%); }
}
@keyframes pscan-line {
  0%, 60%, 100% { background: rgba(255, 255, 255, 0.12); }
  20%, 34% { background: rgba(56, 189, 248, 0.6); }
}
@keyframes pscreen-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-stage, .phone-glow, .phone-notch-dot, .pscan-line, .pscan-beam, .phone-caption .badge-dot {
    animation: none;
  }
  .pscreen-list li {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .phone, .phone-screen {
    transition: none;
  }
}
