/* Nelos website — shared styles. Mobile-first, no frameworks. */

:root {
  --bg: #0d1320;
  --bg-soft: #131c2e;
  --surface: #18233a;
  --surface-2: #1e2c47;
  --border: #2a3a5a;
  --text: #e8eef7;
  --text-muted: #9fb0c9;
  --accent: #84cc16;
  --accent-soft: #a3e635;
  --accent-ink: #0d1320;
  --radius: 14px;
  --maxw: 1040px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 48px;
  background: radial-gradient(
      900px 400px at 50% -10%,
      rgba(132, 204, 22, 0.14),
      transparent 70%
    ),
    var(--bg);
}

.hero img.logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 24px rgba(132, 204, 22, 0.25));
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--accent-soft);
  font-weight: 600;
  margin: 0 0 18px;
}

.hero .oneliner {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.22);
  flex: 0 0 auto;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(132, 204, 22, 0.12);
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Honesty / note section ---------- */
.note {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.note .container {
  max-width: 760px;
}

.note .panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.note .panel .mark {
  font-size: 1.5rem;
  line-height: 1.2;
}

.note h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.note p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Content pages (privacy / support) ---------- */
.page {
  padding: 48px 0 72px;
}

.page .container {
  max-width: 760px;
}

.page h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  margin: 0 0 6px;
}

.page .updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 32px;
}

.page h2 {
  font-size: 1.3rem;
  margin: 36px 0 10px;
  padding-top: 8px;
}

.page h3 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
}

.page p,
.page li {
  color: var(--text-muted);
}

.page ul {
  padding-left: 22px;
}

.page li {
  margin-bottom: 6px;
}

.page strong {
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent-soft);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .answer {
  padding: 14px 0 18px;
  color: var(--text-muted);
}

.faq .answer p {
  margin: 0 0 10px;
}

/* ---------- Code / template block ---------- */
pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Contact callout ---------- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.contact-box .email {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.site-footer .foot-brand img {
  width: 26px;
  height: 26px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--text-muted);
}

.site-footer .copyright {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
