* {
  cursor: url("cursor.png") 4 4, auto;
  box-sizing: border-box;
}

:root {
  --bg: #f6f6f4;
  --surface: #dededc;
  --surface-2: #ffffff;
  --text: #141414;
  --muted: #686868;
  --line: #1b1b1b;
  --accent: #8fcfd2;
  --accent-dark: #277f84;
  --warning: #f0d98a;
  --shadow: 8px 8px 0 #141414;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Baloo 2", sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

body.dark {
  --bg: #171717;
  --surface: #303030;
  --surface-2: #222;
  --text: #f4f4f2;
  --muted: #aaa;
  --line: #f4f4f2;
  --accent: #79c8cc;
  --accent-dark: #9de3e6;
  --warning: #665b35;
  --shadow: 8px 8px 0 #000;
}

a {
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* =========================
   TOP BAR
========================= */

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 12px;
  z-index: 10;
}

.logo {
  text-decoration: none;
  font-family: "Patrick Hand", cursive;
  font-size: 25px;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

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

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
}

/* =========================
   GENERAL
========================= */

.hero,
.section {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 55px 0 90px;
}

.hero-card {
  min-height: 530px;
  background: var(--surface);
  border-radius: 65px;
  display: flex;
  align-items: center;
  padding: 70px 90px;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  max-width: 650px;
  z-index: 2;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
}

h1 {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -.04em;
}

h1 span {
  color: #2b2b2b;
}

body.dark h1 span {
  color: #ddd;
}

.hero-copy > p {
  max-width: 550px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  transition: transform .15s ease;
}

.button:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.primary {
  background: var(--text);
  color: var(--bg);
}

.secondary {
  background: transparent;
}

.miku-wrap {
  position: absolute;
  right: 15px;
  bottom: -18px;
  width: 330px;
  transform: rotate(3deg);
}

.miku {
  width: 100%;
  display: block;
}

.speech {
  position: absolute;
  top: -15px;
  left: -40px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 10px 15px;
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 var(--line);
}

.scroll-note {
  text-align: center;
  margin-top: 18px;
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 90px 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 45px;
}

.number {
  font-family: "Patrick Hand", cursive;
  font-size: 42px;
  color: var(--accent-dark);
  min-width: 55px;
}

h2 {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -.025em;
  margin-bottom: 0;
}

/* =========================
   INTRO
========================= */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}

.paper-card,
.tool-card,
.faq-list details,
.final-card,
.virus-card,
.resource-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.paper-card {
  padding: 35px;
}

.paper-card h3 {
  font-size: 25px;
}

.paper-card p {
  color: var(--muted);
}

.tilted {
  transform: rotate(1.2deg);
}

/* =========================
   DEFINITIONS
========================= */

dl {
  margin: 0;
}

dl div {
  padding: 15px 0;
  border-bottom: 1px dashed var(--muted);
}

dl div:last-child {
  border: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   TORRENT DIAGRAM
========================= */

.mini-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border-radius: 18px;
  margin-top: 30px;
}

.peer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
}

.peer-row span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
}

.peer-row i {
  font-style: normal;
  font-size: 20px;
}

.mini-diagram span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
}

/* =========================
   MIKU GIF
========================= */

.torrent-gif {
  display: block;
  width: 150px;
  height: auto;
  margin: 25px auto 0;
}

.peer-gif {
  display: block;
  width: 250px;
  height: auto;
  margin: 25px auto 0;
}

/* =========================
   SEED NOTE
========================= */

.seed-note {
  margin: 25px auto 0;
  max-width: 650px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.seed-note strong {
  font-size: 18px;
}

.seed-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   TOOLS
========================= */

.section-lead {
  color: var(--muted);
  max-width: 700px;
  margin: -20px 0 35px;
}

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

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px;
  min-height: 180px;
  box-sizing: border-box;
  transition: transform .2s ease;
}

.tool-card:hover {
  transform: translateY(-5px) rotate(-.4deg);
}

.tool-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.tool-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.telegram-card {
  grid-column: 1 / -1;
  width: 50%;
  justify-self: center;
}

/* =========================
   SAFETY
========================= */

.warning {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 27px;
  border: 2px solid var(--line);
  border-radius: 25px;
  background: var(--warning);
  margin-bottom: 25px;
}

.warning-mark {
  display: grid;
  place-items: center;
  min-width: 45px;
  height: 45px;
  font-size: 30px;
  font-weight: 700;
}

.warning strong {
  font-size: 18px;
}

.warning p {
  margin: 7px 0 0;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checklist label {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  font-size: 14px;
}

.checklist input {
  accent-color: var(--accent-dark);
  margin-right: 8px;
}

code {
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 5px;
}

/* =========================
   VIRUSTOTAL
========================= */

.virus-card {
  margin-top: 25px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 6px 6px 0 var(--line);
}

.virus-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: #103638;
  font-weight: 700;
}

.virus-copy {
  flex: 1;
}

.virus-copy .eyebrow {
  margin-bottom: 6px;
}

.virus-copy h3 {
  margin-bottom: 7px;
  font-size: 24px;
}

.virus-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* =========================
   RESOURCES
========================= */

.resources-section {
  padding-top: 60px;
}

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

.resource-card {
  padding: 28px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.resource-card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 6px 6px 0 var(--line);
}

.resource-card:nth-child(3) {
  grid-column: 1 / -1;
  width: 50%;
  justify-self: center;
}

.resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resource-badge {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent);
  color: #103638;
  font-weight: 700;
  font-size: 12px;
}

.arrow {
  font-size: 24px;
}

.resource-card h3 {
  font-size: 27px;
  margin: 25px 0 8px;
}

.resource-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.resource-link {
  font-family: "Patrick Hand", cursive;
  font-size: 19px;
}

.resource-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}

/* =========================
   FAQ
========================= */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 23px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-weight: 600;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  color: var(--muted);
  padding: 0 0 20px;
  margin: 0;
  max-width: 800px;
}

/* =========================
   FINAL CARD
========================= */

.final-card {
  padding: 45px 55px;
  display: flex;
  gap: 35px;
  align-items: center;
  background: var(--surface);
}

.final-card h2 {
  font-size: clamp(45px, 6vw, 70px);
}

.final-card p:last-child {
  color: var(--muted);
  max-width: 650px;
}

.tiny-miku {
  width: 145px;
  flex: 0 0 145px;
}

/* =========================
   FOOTER
========================= */

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 30px auto 50px;
  padding-top: 20px;
  border-top: 1px solid var(--muted);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

  .topbar {
    width: calc(100% - 28px);
    margin-top: 12px;
  }

  nav {
    display: none;
  }

  .hero,
  .section {
    width: calc(100% - 28px);
  }

  .hero {
    padding-top: 25px;
    padding-bottom: 60px;
  }

  .hero-card {
    padding: 48px 28px 300px;
    border-radius: 40px;
    min-height: 600px;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(58px, 16vw, 90px);
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .hero-actions {
    gap: 10px;
  }

  .miku-wrap {
    width: 250px;
    right: 10px;
    bottom: -18px;
  }

  .speech {
    left: -10px;
  }

  .two-col,
  .tool-grid,
  .checklist,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 65px 0;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 30px;
  }

  h2 {
    font-size: clamp(45px, 13vw, 68px);
  }

  .number {
    min-width: 35px;
    font-size: 32px;
  }

  /* Keep the seed section comfortable on phones */
  .seed-note {
    padding: 18px 16px;
  }

  .seed-note p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Large centered Miku GIF */
  .peer-gif {
    width: min(100%, 430px);
    height: auto;
    margin: 30px auto 0;
  }

  .torrent-gif {
    width: min(100%, 350px);
    height: auto;
    margin: 25px auto 0;
  }

  /* Tools */
  .tool-card {
    gap: 18px;
    padding: 28px;
    min-height: auto;
  }

  .tool-icon {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
  }

  .tool-card h3 {
    font-size: 22px;
  }

  .tool-card p {
    font-size: 15px;
  }

  .telegram-card {
    grid-column: auto;
    width: 100%;
  }

  /* Safety */
  .warning {
    gap: 15px;
    padding: 22px;
  }

  .warning-mark {
    min-width: 42px;
    height: 42px;
    font-size: 27px;
  }

  .warning strong {
    font-size: 17px;
  }

  .warning p {
    font-size: 15px;
    line-height: 1.6;
  }

  .checklist label {
    font-size: 15px;
  }

  /* VirusTotal */
  .virus-card {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 24px;
  }

  .virus-card .button {
    margin-left: 0;
  }

  .virus-copy p {
    font-size: 15px;
  }

  /* Resources */
  .resource-card {
    padding: 25px;
  }

  .resource-card:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }

  .resource-card h3 {
    font-size: 25px;
  }

  .resource-card p {
    font-size: 15px;
  }

  /* FAQ */
  .faq-list details {
    padding: 0 18px;
  }

  .faq-list summary {
    font-size: 16px;
    padding: 20px 0;
    padding-right: 10px;
  }

  .faq-list p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Final card */
  .final-card {
    padding: 30px;
    flex-direction: column;
    text-align: center;
  }

  .tiny-miku {
    width: 120px;
    flex: 0 0 120px;
  }

  /* Footer */
footer {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 500px) {

  body {
    font-size: 16px;
  }

  .topbar {
    width: calc(100% - 24px);
  }

  .logo {
    font-size: 23px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero,
  .section {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card {
    padding: 40px 22px 270px;
    min-height: 560px;
    border-radius: 32px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 76px);
    margin-bottom: 18px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .button {
    font-size: 14px;
    padding: 11px 16px;
  }

  .miku-wrap {
    width: 220px;
    right: 0;
    bottom: -15px;
  }

  .speech {
    font-size: 18px;
    padding: 8px 12px;
  }

  .section {
    padding: 55px 0;
  }

  h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .paper-card {
    padding: 25px 20px;
  }

  .peer-row {
    gap: 7px;
  }

  .peer-row span {
    padding: 7px 9px;
    font-size: 12px;
  }

  .peer-row i {
    font-size: 17px;
  }

  .peer-gif {
    width: 100%;
    max-width: 430px;
    margin-top: 28px;
  }

  .tool-card {
    padding: 24px 20px;
  }

  .tool-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .warning {
    padding: 20px 16px;
  }

  .warning-mark {
    min-width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .virus-card {
    padding: 22px 18px;
  }

  .virus-card .button {
    width: 100%;
    text-align: center;
  }

  .resource-card {
    padding: 23px 20px;
  }

  .final-card {
    padding: 25px 20px;
  }

  footer {
    width: calc(100% - 24px);
  }

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

.vpn-note {
  align-items: flex-start;
}

}

.vpn-section {
  padding-top: 60px;
}

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

.vpn-card {
  padding: 32px;
}

.vpn-card h3 {
  font-size: 27px;
  margin-bottom: 18px;
}

.vpn-list {
  margin: 0;
  padding-left: 22px;
}

.vpn-list li {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 10px;
}

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

.vpn-note {
  margin-top: 25px;
  padding: 27px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 2px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
}

.vpn-note-mark {
  display: grid;
  place-items: center;
  min-width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface-2);
  font-size: 22px;
}

.vpn-note strong {
  font-size: 18px;
}

.vpn-note p {
  margin: 7px 0 0;
  color: var(--muted);
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
}

#loading-screen img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 850px) {
  #loading-screen img {
    width: 140px;
    height: 140px;
  }
}

/* VPN comparison */
.vpn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vpn-card {
  padding: 35px;
}

.vpn-card h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.vpn-card ul {
  margin: 0;
  padding-left: 28px;
}

.vpn-card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Mobile */
@media (max-width: 850px) {
  .vpn-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vpn-card {
    padding: 28px;
  }

  .vpn-card h3 {
    font-size: 30px;
  }

  .vpn-card li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}