/* PicSnake public site — picsnake.online
   Static, dependency-free. Dark theme shared with the app and the B2B landing. */

:root {
  --bg: #0a0e12;
  --bg-soft: #0f151b;
  --card: #141c24;
  --card-hover: #1a232d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf2;
  --muted: #9aa7b4;
  --accent: #00ff88;
  --accent-soft: rgba(0, 255, 136, 0.12);
  --green: #00c46a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --max: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-top: 1.6em;
}

h3 {
  font-size: 1.18rem;
  margin-top: 1.4em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.45em;
}

code {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0a0e12;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.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(--muted);
}

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

.nav .nav-lang {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav .nav-lang:hover {
  border-color: var(--text);
}

.nav .btn-primary,
.nav .btn-primary:hover {
  color: #0a0e12;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0e12;
}

.btn-primary:hover {
  background: #33ffa1;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 76px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background: radial-gradient(60% 60% at 50% 30%, rgba(0, 255, 136, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
}

.hero-card {
  position: relative;
  padding: 24px;
  background: linear-gradient(160deg, #17211b 0%, #111820 62%);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

/* Camera-viewfinder frame inside the card. */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  pointer-events: none;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-card-badge {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-card-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.check-list strong {
  display: block;
  font-size: 0.92rem;
}

.check-list .desc {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card-foot a {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.hero h1 span {
  color: var(--accent);
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

/* Sections */

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

.section:last-of-type {
  border-bottom: 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Cards */

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: block;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  text-decoration: none;
  background: var(--card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}

.card-meta {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.card th,
.card td {
  text-align: left;
  vertical-align: top;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.card th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card tr:last-child td {
  border-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.15em;
}

.card li {
  margin-bottom: 0.5em;
}

.card li:last-child {
  margin-bottom: 0;
}

/* Numbered rule list on the home page */

.rules {
  counter-reset: rule;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rules li {
  position: relative;
  padding: 18px 18px 18px 58px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
}

/* With 7 rules the last odd card spans the row instead of leaving a hole. */
.rules li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.rules li::before {
  counter-increment: rule;
  content: counter(rule);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.rules strong {
  display: block;
  margin-bottom: 3px;
}

.rules span {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-inline {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Short definitions: easy for readers and answer engines to quote. */

.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.glossary div {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.glossary dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.glossary div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Answer box */

.answer {
  margin: 0 0 34px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.04rem;
}

.answer strong {
  color: var(--accent);
}

/* Article layout */

.page {
  padding: 40px 0 60px;
}

.prose {
  min-width: 0;
  font-size: 1.05rem;
}

.prose h1 {
  margin-bottom: 0.4em;
}

.prose h2 {
  padding-top: 0.2em;
}

.prose li {
  margin-bottom: 0.55em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.breadcrumbs span[aria-current] {
  color: var(--text);
}

.meta {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.related {
  margin-top: 34px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.related ul {
  margin-bottom: 0;
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* FAQ */

.faq-list {
  min-width: 0;
}

.faq-list h3 {
  margin-bottom: 0.35em;
}

.faq-list p {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.faq-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps li {
  position: relative;
  padding: 20px 20px 20px 66px;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
}

.steps strong {
  display: block;
  margin-bottom: 3px;
}

/* Footer */

.site-footer {
  padding: 48px 0 28px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 12px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

/* Legal */

.legal {
  padding: 46px 0 64px;
}

.legal-inner {
  min-width: 0;
}

.legal h2 {
  font-size: 1.25rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 860px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav .btn {
    margin-top: 6px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 54px 0 42px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .rules,
  .glossary,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

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

  .hero-proof {
    flex-direction: column;
    gap: 6px;
  }
}

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

  * {
    transition: none !important;
  }
}
