/* ------------------------------------------------------------------ *
 * NT AI Studio — download page — tema NoTriangle (contexto ".ground-dark")
 * Mesmos tokens do NT Visual Search: near-black #0e0e0e, texto #f4f4f4,
 * acento teal-blue #2385b3. Cantos retos (radius:0), hairlines brancas,
 * quase sem sombra, micro-labels e botões em CAIXA ALTA. Figtree.
 * ------------------------------------------------------------------ */

:root {
  --color-bg: #0e0e0e;
  --color-bg-2: #111110;
  --color-surface: #141413;
  --color-surface-2: #1a1a18;
  --color-surface-3: #232320;
  --color-line: #ffffff1f;
  --color-line-soft: #ffffff12;
  --color-ink: #f4f4f4;
  --color-muted: #9a9a9a;
  --color-faint: #6b6b6b;
  --color-accent: #2385b3;
  --color-accent-2: #3aa0cd;
  --color-accent-ink: #ffffff;
  --color-accent-soft: #12333f;
  --color-danger: #e5675a;
  --color-ok: #57c98a;

  --font-display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --chrome: 64px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
  border-color: var(--color-line);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100%;
}

/* grão global bem sutil, igual ao NT Visual Search */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: rgba(35, 133, 179, 0.4);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface-3) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: var(--color-surface-3);
  border: 3px solid transparent;
  background-clip: content-box;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.label-caps {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
}

.btn-caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.hairline {
  border-color: var(--color-line-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.19s; }

/* ---------------------------- header ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--chrome);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  background: rgba(14, 14, 14, 0.7);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mark {
  display: block;
  height: 36px;
  width: 36px;
  background: #000;
  flex: none;
  overflow: hidden;
}
.mark img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark .muted {
  color: var(--color-muted);
  font-weight: 500;
}

/* ---------------------------- language switch ---------------------------- */

.lang-switch-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-hint {
  font-size: 12px;
  color: var(--color-faint);
}

.lang-switch {
  position: relative;
}

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

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--color-line-soft);
  background: rgba(20, 20, 19, 0.6);
  color: var(--color-muted);
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: var(--font-display);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-trigger:hover {
  color: var(--color-ink);
  border-color: var(--color-muted);
}
.lang-trigger .chev {
  color: var(--color-faint);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 170px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--color-ink);
  cursor: pointer;
}
.lang-option:hover {
  background: var(--color-surface-2);
}
.lang-option.is-active {
  color: var(--color-accent-2);
}
.flag {
  flex: none;
  display: block;
  border-radius: 1px;
  outline: 1px solid var(--color-line-soft);
  outline-offset: -0.5px;
}

/* ---------------------------- hero ---------------------------- */

.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(700px 320px at 12% -10%, var(--color-accent-soft), transparent 60%),
    var(--color-bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-2);
  margin-bottom: 18px;
}
.eyebrow .rule {
  height: 1px;
  width: 28px;
  background: var(--color-accent);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 15ch;
}
.accent {
  color: var(--color-accent-2);
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn-primary:hover {
  background: var(--color-accent-2);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
}
.btn-ghost:hover {
  border-color: var(--color-muted);
  background: var(--color-surface);
}

.btn-small {
  padding: 9px 14px;
  font-size: 11px;
  margin-top: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12.5px;
  color: var(--color-faint);
}
.hero-meta strong {
  color: var(--color-muted);
  font-weight: 600;
}
.req-ps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ps-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #001e36, #31a8ff);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: -0.02em;
}

/* ------------------------ sections generic ------------------------ */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--color-line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 10px 0 0;
}

.section-head p {
  color: var(--color-muted);
  max-width: 52ch;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------------------------- screenshots ---------------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 14px;
}

.shot-frame {
  aspect-ratio: 428 / 800;
  background: var(--color-surface-2);
  border: 1px solid var(--color-line-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.shot-placeholder {
  color: var(--color-faint);
  font-size: 11px;
  text-align: center;
  padding: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shot-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.shot-caption .n {
  color: var(--color-accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
}
.shot-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.45;
}

/* ---------------------------- features ---------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.feature {
  background: var(--color-bg);
  padding: 28px;
}

.feature .icon {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  border: 1px solid var(--color-line);
  color: var(--color-accent-2);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature p {
  color: var(--color-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.feature .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-faint);
  border: 1px solid var(--color-line-soft);
  padding: 3px 8px;
}

/* ---------------------------- models & pricing ---------------------------- */

.model-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.model-col {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 20px 22px;
}

.model-col-title {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-2);
  margin: 0 0 6px;
}

.model-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.model-row {
  padding: 10px 0;
  border-top: 1px solid var(--color-line-soft);
  font-size: 13px;
}
.model-row:first-child {
  border-top: none;
}

.model-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.model-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-default,
.pill-mask {
  flex: none;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 5px;
  border: 1px solid var(--color-line-soft);
}
.pill-default {
  color: var(--color-accent-2);
  border-color: rgba(35, 133, 179, 0.4);
}
.pill-mask {
  color: var(--color-muted);
}

.model-providers {
  display: inline-flex;
  gap: 4px;
  flex: none;
}

.provider-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border: 1px solid var(--color-line-soft);
  color: var(--color-faint);
}
.provider-tag.kie {
  color: var(--color-accent-2);
  border-color: rgba(35, 133, 179, 0.4);
}
.provider-tag.rep {
  color: var(--color-muted);
}

.model-price {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-muted);
  white-space: nowrap;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.cost-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 24px;
}
.cost-card h3 {
  font-size: 15px;
  margin: 10px 0 8px;
}
.cost-card p {
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}
.cost-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cost-card-head h3 {
  margin: 0;
}
.provider-logo {
  height: 26px;
  width: 26px;
  object-fit: contain;
  border-radius: 5px;
  flex: none;
}

/* ---------------------------- gallery ---------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.gallery figure {
  margin: 0;
  background: var(--color-surface-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-link {
  display: block;
  height: 100%;
  cursor: zoom-in;
}
.gallery-link:hover img {
  transform: scale(1.04);
}
.gallery-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--color-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px;
}

/* ---------------------------- lightbox ---------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 6, 0.92);
  animation: pop 0.16s ease-out both;
}
.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  max-width: 88vw;
  max-height: 84vh;
}
.lightbox-stage img {
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  height: 38px;
  width: 38px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  width: 46px;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border: 1px solid var(--color-line-soft);
  padding: 4px 10px;
  background: var(--color-surface);
}

@media (max-width: 640px) {
  .lightbox-nav {
    height: 38px;
    width: 38px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/* ---------------------------- install ---------------------------- */

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.install-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 26px;
}

.install-card .step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  background: var(--color-accent-soft);
  color: var(--color-accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 14px;
}

.install-card h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.install-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.install-card li::marker {
  color: var(--color-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.install-card .badge {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ok);
  border: 1px solid var(--color-line-soft);
  padding: 3px 8px;
}

.note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--color-line-soft);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
}
.note strong {
  color: var(--color-ink);
}

.note-warn {
  border-color: rgba(229, 103, 90, 0.35);
  background: rgba(229, 103, 90, 0.06);
}
.note-warn strong {
  color: var(--color-danger);
}

/* ------------------------ section modifiers ------------------------ */

.section-alt {
  background: var(--color-bg-2);
}
.section-flush {
  border-bottom: none;
}

/* ---------------------------- footer ---------------------------- */

footer {
  padding: 40px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--color-faint);
}
.footer-row a {
  color: var(--color-muted);
}
.footer-row a:hover {
  color: var(--color-ink);
}

/* ---------------------------- responsive ---------------------------- */

@media (max-width: 900px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .install-grid {
    grid-template-columns: 1fr;
  }
  .model-cols {
    grid-template-columns: 1fr;
  }
  .cost-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 64px 0 48px;
  }
  section {
    padding: 52px 0;
  }
  .model-row {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .model-price {
    margin-left: auto;
  }
}
