:root {
  --color-primary: #00bcd4;
  --color-secondary: #00acc1;
  --color-accent: #ff5722;
  --color-bg: #e0f7fa;
  --color-text: #004d56;
  --color-muted: #006064;
  --color-border: #00838f;
  --color-surface: #ffffff;
  --font-display: "Abril Fatface", Georgia, serif;
  --font-body: "Crimson Text", Georgia, serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --nn-header-h: 72px;
  --nn-page-w: 1120px;
  --radius: 10px;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-padding-top: var(--nn-header-h);
}

body {
  margin: 0;
  padding-top: var(--nn-header-h);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0, 188, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 87, 34, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 28%);
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

[hidden] {
  display: none !important;
}

.nn-wrap {
  width: min(100% - 2rem, var(--nn-page-w));
  margin-inline: auto;
}

.nn-measure {
  max-width: 760px;
}

.nn-measure.nn-wrap,
.nn-wrap.nn-measure {
  width: min(100% - 2rem, 760px);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-muted);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: var(--space-lg) 0 var(--space-sm);
}

h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: currentColor;
  margin-top: 0.35rem;
}

.is-in h2::after {
  animation: nn-k-line 0.6s ease both;
}

@keyframes nn-k-line {
  from { width: 0; }
  to { width: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .is-in h2::after {
    animation: none;
    width: 3rem;
  }
}

.nn-lede {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.nn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nn-header-h);
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nn-header a,
.nn-header a:visited {
  color: var(--color-muted);
}

.nn-header--row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--nn-header-h);
}

.nn-header--logo {
  flex-shrink: 0;
  order: 1;
}

.nn-header--logo img {
  width: 180px;
  height: auto;
  display: block;
}

.nn-header--cta {
  order: 2;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.nn-nav {
  order: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.nn-nav--link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.nn-nav--link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}

.nn-nav--link:hover::after,
.nn-nav--link.is-active::after {
  right: 0;
}

.nn-nav--link.is-active {
  color: var(--color-accent);
}

.nn-burger,
.nn-overlay,
.nn-drawer {
  display: none;
}

.nn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nn-btn--icon {
  display: inline-flex;
  flex-shrink: 0;
}

.nn-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #00363a;
}

.nn-btn--primary:hover,
.nn-btn--primary:visited {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #00363a;
}

.nn-btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.nn-header a.nn-btn,
.nn-header a.nn-btn:visited {
  color: var(--color-text);
}

.nn-header a.nn-btn--primary,
.nn-header a.nn-btn--primary:visited {
  color: #00363a;
}

.nn-card {
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: var(--space-md);
}

.nn-hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  background:
    linear-gradient(135deg, rgba(0, 188, 212, 0.22), rgba(224, 247, 250, 0.4) 45%, rgba(255, 87, 34, 0.08)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(0, 172, 193, 0.05) 18px,
      rgba(0, 172, 193, 0.05) 19px
    );
}

.nn-hero--grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-lg);
  align-items: center;
}

.nn-hero--title {
  margin-top: 0;
}

.nn-hero--text {
  max-width: 36rem;
  margin: 0 0 var(--space-md);
}

.nn-hero--actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.nn-hero a.nn-btn,
.nn-hero a.nn-btn:visited {
  color: var(--color-text);
}

.nn-hero a.nn-btn--primary,
.nn-hero a.nn-btn--primary:visited {
  color: #00363a;
}

.nn-device {
  position: relative;
  width: min(100%, 280px);
  margin-inline: auto;
  padding: 14px 12px 18px;
  border: 3px solid var(--color-muted);
  border-radius: 28px;
  background: #00363a;
  box-shadow: 0 18px 40px rgba(0, 77, 86, 0.25);
}

.nn-device--notch {
  width: 38%;
  height: 10px;
  margin: 0 auto 12px;
  border-radius: 0 0 10px 10px;
  background: #001f24;
  border: 2px solid var(--color-muted);
  border-top: 0;
}

.nn-device--still {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #001f24;
}

.nn-tabs {
  padding: var(--space-lg) 0 var(--space-xl);
}

.nn-tabs--bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  border-bottom: 1.5px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.nn-tabs--tab {
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1.5px solid transparent;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
}

.nn-tabs--tab.is-active,
.nn-tabs--tab[aria-selected="true"] {
  border-color: var(--color-border);
  border-bottom-color: var(--color-bg);
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.35);
}

.nn-tabs--panel {
  min-width: 0;
}

.nn-section--title {
  margin-top: 0;
}

.nn-section--lead {
  margin-top: 0;
  max-width: 40rem;
}

.nn-timeline {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  border-left: 2px solid var(--color-primary);
}

.nn-timeline--item {
  position: relative;
  padding: 0 0 var(--space-md) var(--space-md);
  min-width: 0;
}

.nn-timeline--item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.nn-timeline--item time {
  display: block;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.nn-filters {
  margin: var(--space-md) 0;
}

.nn-filters--label {
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.nn-filters--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nn-chip {
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

.nn-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #00363a;
}

.nn-rank {
  display: grid;
  gap: var(--space-lg);
}

.nn-rank--item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "pos pos pos"
    "icon name preview"
    "icon dev preview"
    "icon tag preview"
    "desc desc preview"
    "facts facts facts"
    "note note note"
    "actions actions actions";
  gap: 0.5rem 1rem;
  align-items: start;
  min-width: 0;
}

.nn-rank--item .nn-app--icon {
  grid-area: icon;
}

.nn-rank--item .nn-app--preview {
  grid-area: preview;
  justify-self: end;
}

.nn-rank--pos {
  grid-area: pos;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.nn-rank--name {
  grid-area: name;
  margin: 0;
  font-size: 1.35rem;
  min-width: 0;
}

.nn-rank--dev {
  grid-area: dev;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.nn-rank--tag {
  grid-area: tag;
  margin: 0;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-accent);
  width: fit-content;
}

.nn-rank--desc {
  grid-area: desc;
  margin: 0.25rem 0 0;
  min-width: 0;
}

.nn-rank--facts {
  grid-area: facts;
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.nn-rank--note {
  grid-area: note;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.nn-rank--actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.nn-app--icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  object-fit: contain;
  flex-shrink: 0;
}

.nn-app--preview {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 240px;
  object-fit: contain;
}

.nn-review .nn-app--preview {
  max-width: 280px;
  max-height: 280px;
}

.nn-chart {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.nn-chart--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  min-width: 0;
}

.nn-chart--name {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nn-chart--track {
  display: block;
  height: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
}

.nn-chart--bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.nn-chart--val {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.nn-cta {
  padding: var(--space-xl) 0;
  background:
    linear-gradient(90deg, rgba(0, 188, 212, 0.2), rgba(255, 87, 34, 0.12)),
    var(--color-bg);
  border-top: 1.5px solid var(--color-border);
  border-bottom: 1.5px solid var(--color-border);
}

.nn-cta--inner {
  text-align: center;
}

.nn-cta--inner p {
  max-width: 36rem;
  margin: 0 auto var(--space-md);
}

.nn-cta a.nn-btn--primary,
.nn-cta a.nn-btn--primary:visited {
  color: #00363a;
}

.nn-page,
.nn-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.nn-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.nn-crumbs a {
  text-decoration: none;
}

.nn-crumbs a:hover {
  text-decoration: underline;
}

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

.nn-feed--heading {
  margin-top: var(--space-lg);
  border-bottom: 1.5px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.nn-feed--item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 131, 143, 0.35);
  min-width: 0;
}

.nn-feed--item time {
  display: block;
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 700;
}

.nn-feed--title {
  display: inline-block;
  margin: 0.25rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--color-muted);
}

.nn-feed--title:hover {
  color: var(--color-accent);
}

.nn-faq--q {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.nn-form {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.nn-form--field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.nn-form--field span {
  font-weight: 700;
}

.nn-form--field input,
.nn-form--field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.nn-form--field textarea {
  min-height: 140px;
  resize: vertical;
}

.nn-form--note {
  margin: 0;
  color: var(--color-muted);
}

.nn-review--passport {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-lg);
  min-width: 0;
}

.nn-review--passport > div {
  min-width: 0;
}

.nn-review--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.nn-review--now {
  margin-top: var(--space-lg);
}

.nn-code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.nn-parent--card,
.nn-data--card {
  margin-bottom: var(--space-md);
}

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

.nn-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.nn-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
}

.nn-glossary dt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: var(--space-md);
  color: var(--color-muted);
}

.nn-glossary dd {
  margin: 0.25rem 0 0;
}

.nn-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1.5px solid var(--color-border);
}

.nn-footer--card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.nn-footer--lede {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-muted);
}

.nn-footer--checked {
  margin: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.nn-footer--links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.nn-footer--links a,
.nn-footer--cookie {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
}

.nn-footer--links a:hover,
.nn-footer--cookie:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.nn-footer--legal {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-muted);
}

.nn-cookie {
  display: none;
}

.nn-cookie:not([hidden]) {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  gap: 12px;
  align-items: center;
  background: #004d56;
  color: #e0f7fa;
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.nn-cookie--inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--nn-page-w));
}

.nn-cookie a {
  color: #fff;
}

.nn-cookie--actions .nn-btn,
.nn-cookie--actions .nn-btn--primary {
  box-shadow: none;
  min-height: 44px;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #00363a;
}

body.nn-cookie-open {
  padding-bottom: 110px;
}

@media (max-width: 1024px) {
  .nn-nav {
    gap: 0.55rem;
  }

  .nn-nav--link {
    font-size: 0.88rem;
  }
}

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

  .nn-rank--item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "pos pos"
      "icon name"
      "icon dev"
      "icon tag"
      "desc desc"
      "preview preview"
      "facts facts"
      "note note"
      "actions actions";
  }

  .nn-rank--item .nn-app--preview {
    display: block;
    margin: 16px auto 0;
    justify-self: center;
  }

  .nn-review--passport {
    grid-template-columns: auto 1fr;
  }

  .nn-review--passport .nn-app--preview {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .nn-footer--card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  :root {
    --nn-header-h: 64px;
  }

  .nn-header--logo {
    order: 1;
    margin-right: auto;
  }

  .nn-header--logo img {
    width: 130px;
    min-height: 28px;
  }

  .nn-nav,
  .nn-header--cta {
    display: none !important;
  }

  .nn-header--row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .nn-burger {
    display: block;
    order: 4;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
  }

  .nn-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-muted);
  }

  .nn-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .nn-drawer {
    display: block;
    position: fixed;
    z-index: 210;
    background: var(--color-bg);
    overflow-y: auto;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nn-drawer--sheet {
    inset: 0;
    height: 100vh;
    height: 100dvh;
    padding: 72px 24px 32px;
    opacity: 0;
  }

  .nn-drawer a {
    display: block;
    padding: 14px 8px;
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: var(--color-muted);
    text-decoration: none;
  }

  .nn-drawer--cta {
    margin-top: var(--space-md);
    width: 100%;
  }

  .nn-drawer--close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nn-overlay {
    opacity: 1;
    visibility: visible;
    display: none;
  }

  body.nav-open .nn-drawer--sheet {
    visibility: visible;
    opacity: 1;
  }

  .nn-hero--actions .nn-btn {
    width: 100%;
  }

  .nn-cookie:not([hidden]) {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  .nn-rank--item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pos"
      "icon"
      "name"
      "dev"
      "tag"
      "desc"
      "preview"
      "facts"
      "note"
      "actions";
  }

  .nn-review--passport {
    grid-template-columns: 1fr;
  }

  .nn-app--icon {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .nn-wrap {
    width: min(100% - 1.25rem, var(--nn-page-w));
  }
}
