/* ==========================================
   NOA — Product page styles
   (loaded on top of styles.css, reuses its tokens)
   ========================================== */

.noa-by {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 1px;
}

/* --- Hero --- */
.noa-hero {
  min-height: 0;
  padding-bottom: var(--section-pad);
}

.noa-hero .hero-content {
  padding-top: clamp(48px, 8vw, 96px);
}

.noa-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 56px auto 0;
}

.noa-stat {
  padding: 18px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.noa-stat-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-300);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.noa-stat-label {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* --- Browser-style frame --- */
.noa-frame {
  background: rgba(15, 15, 24, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 8, 12, 0.6), 0 0 0 1px rgba(59, 47, 212, 0.08);
}

.noa-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.noa-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-600);
  opacity: 0.6;
}

.noa-frame-url {
  margin: 0 auto;
  padding: 3px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-500);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.noa-frame img,
.noa-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.noa-hero-shot {
  max-width: 1080px;
  margin: 64px auto 0;
}

.noa-hero-try {
  margin-top: 18px;
  font-size: 0.9rem;
}

.noa-hero-try a {
  color: var(--gray-400);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.noa-hero-try a:hover {
  color: var(--blue-300);
  border-color: rgba(59, 47, 212, 0.5);
}

/* --- Feature rows --- */
.noa-features .section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.noa-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
}

.noa-feature + .noa-feature {
  border-top: 1px solid var(--border);
}

.noa-feature--flip .noa-feature-text {
  order: 2;
}

.noa-feature--flip .noa-shot {
  order: 1;
}

.noa-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.noa-feature-text h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.noa-feature-text p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.noa-shot {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 15, 24, 0.9);
  box-shadow: 0 16px 48px rgba(8, 8, 12, 0.5);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}

.noa-shot:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 47, 212, 0.35);
}

.noa-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Architecture section --- */
.noa-archi {
  padding-top: 0;
}

.noa-archi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.noa-archi-item {
  margin: 0;
}

.noa-archi-item figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .noa-archi-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Under the hood --- */
.noa-engine-desc {
  max-width: 720px;
}

.noa-engine-chips {
  margin: 0;
  max-width: 860px;
}

.noa-chip-text {
  font-size: 0.85rem;
  white-space: normal;
  line-height: 1.35;
}

/* --- Node mosaic band --- */
.noa-mosaic {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(80px, 10vw, 130px) 0;
}

.noa-mosaic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.75);
}

.noa-mosaic-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 75% at 50% 50%, rgba(8, 8, 12, 0.6) 0%, rgba(8, 8, 12, 0.25) 55%, rgba(8, 8, 12, 0.7) 100%),
    linear-gradient(180deg, var(--bg-dark) 0%, transparent 22%, transparent 78%, var(--bg-dark) 100%);
}

.noa-mosaic-content h2,
.noa-mosaic-content > div > p {
  text-shadow: 0 2px 24px rgba(8, 8, 12, 0.9);
}

.noa-mosaic-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.noa-mosaic-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.noa-mosaic-content > div > p {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto;
}

.noa-pills {
  margin-top: 40px;
}

.noa-pills .sector-pill {
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: blur(6px);
}

.noa-recent {
  margin-top: 26px;
  font-size: 0.84rem;
  color: var(--gray-500);
  text-shadow: 0 2px 16px rgba(8, 8, 12, 0.9);
}

.noa-recent-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-300);
  margin-right: 8px;
}

.noa-recent-item {
  color: var(--gray-300);
}

/* --- Demo --- */
.noa-center {
  text-align: center;
}

.noa-center h2,
.noa-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.noa-video {
  max-width: 960px;
  margin: 0 auto;
}

.noa-demo-actions {
  margin-top: 32px;
  text-align: center;
}

.noa-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* --- Capture loupe --- */
img[data-zoom] {
  cursor: zoom-in;
  /* A finger on a capture belongs to the loupe: no scroll, no pinch,
     no iOS long-press callout, no selection wiggle, no image drag. */
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.noa-loupe {
  position: fixed;
  width: 260px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background-color: var(--gray-900);
  background-repeat: no-repeat;
  box-shadow: 0 12px 40px rgba(8, 8, 12, 0.75), 0 0 0 1px rgba(59, 47, 212, 0.2);
  pointer-events: none;
  z-index: 200;
}

/* --- Beta countdown --- */
.noa-countdown {
  margin: 4px 0 32px;
  position: relative;
}

.noa-countdown-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-300);
  margin-bottom: 14px;
  position: relative;
}

#beta-open-msg {
  margin: 4px 0 32px;
}

.noa-countdown-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.noa-count-tile {
  min-width: 78px;
  padding: 14px 10px 12px;
  background: rgba(8, 8, 12, 0.5);
  border: 1px solid rgba(59, 47, 212, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.noa-count-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.noa-count-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Audience --- */
.noa-audience {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 10, 142, 0.03) 50%, transparent 100%);
}

.noa-audience .diff-card h3 {
  margin-bottom: 10px;
}

/* --- FAQ --- */
.noa-faq {
  border-top: 1px solid var(--border);
}

.noa-faq-list {
  max-width: 760px;
}

.noa-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.noa-faq-item:hover {
  border-color: rgba(59, 47, 212, 0.25);
}

.noa-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--gray-200);
  position: relative;
  transition: color 0.2s;
}

.noa-faq-item summary::-webkit-details-marker {
  display: none;
}

.noa-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-400);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.25s;
}

.noa-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.noa-faq-item summary:hover {
  color: var(--white);
}

.noa-faq-item p {
  padding: 0 22px 18px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--gray-400);
  max-width: 660px;
}

/* --- Beta request modal --- */
.noa-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* display:flex above would defeat the hidden attribute; restore it. */
.noa-modal[hidden] {
  display: none;
}

.noa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.noa-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--gray-900);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 47, 212, 0.12);
}

.noa-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 1.6rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

.noa-modal-close:hover {
  color: var(--white);
}

.noa-modal h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.noa-modal-sub {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.55;
  margin-bottom: 22px;
}

.noa-field {
  display: block;
  margin-bottom: 16px;
}

.noa-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 6px;
}

.noa-field input,
.noa-field textarea {
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.noa-field input:focus,
.noa-field textarea:focus {
  outline: none;
  border-color: rgba(59, 47, 212, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 47, 212, 0.18);
}

.noa-field textarea {
  resize: vertical;
  min-height: 84px;
}

.noa-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.noa-form-error {
  color: #ff9d9d;
  font-size: 0.85rem;
  margin: 2px 0 12px;
}

.noa-modal-actions {
  margin-top: 6px;
}

.noa-modal-actions .btn {
  width: 100%;
  justify-content: center;
}

.noa-form-privacy {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* --- Footer --- */
.noa-footer .footer-inner {
  grid-template-columns: 2fr 1fr 1fr;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .noa-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .noa-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .noa-feature--flip .noa-feature-text {
    order: 1;
  }

  .noa-feature--flip .noa-shot {
    order: 2;
  }
}

@media (max-width: 768px) {
  .noa-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .noa-hero-shot {
    margin-top: 44px;
  }

  .noa-frame-url {
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .noa-footer .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .noa-by {
    display: none;
  }

  .noa-stat {
    padding: 14px 10px;
  }

  .noa-countdown-row {
    gap: 8px;
  }

  .noa-count-tile {
    min-width: 0;
    flex: 1;
    max-width: 84px;
    padding: 10px 6px 8px;
  }

  .noa-count-num {
    font-size: 1.3rem;
  }
}
