/* =====================================================================
   MoOnThePage – style.css
   1) Change colors/sizes in the :root block below – everything uses them.
   2) Layout breakpoints (phone/tablet) are at the bottom.
   ===================================================================== */

:root {
  /* ---- COLORS ---- */
  --bg: #080809;
  /* page background */
  --text: #ffffff;
  /* headings */
  --text-muted: rgba(255, 255, 255, .478);
  /* paragraphs */
  --btn-text: rgba(255, 255, 255, .831);
  /* button label */
  --line: #5f476b;
  /* borders, dividers, icons, footer */
  --line-hover: #7b6187;
  /* icon hover */
  --accent: #00a3ff;
  /* "ThePage", main buttons */

  /* ---- SIZES ---- */
  --radius-box: 2rem;
  /* rounded corners of big boxes */
  --gap-section: 9rem;
  /* space between sections (6rem on phones) */
  --max-width: 68rem;
  /* width of the whole page content */

  /* ---- FONT ---- Inter is used if installed; otherwise system fonts (no external download) */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 18pt;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  line-height: 1;
  background: linear-gradient(55deg, #050505 0%, #030303 60%, #0f1114 100%);
  background-color: var(--bg);
  background-attachment: fixed;
}

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

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

/* falling dots canvas (behind everything) */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- page wrapper ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 9rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-section);
  text-align: center;
}

.page>* {
  width: 100%;
}

/* ---------- typography ---------- */
.title,
.heading {
  font-weight: 500;
  line-height: 1.125;
  color: var(--text);
  /* gradient text effect – delete these 3 lines for plain white text */
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .412) 0%, #fff 67%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title {
  font-size: 3.625em;
  letter-spacing: -.175rem;
}

.title .accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.heading {
  font-size: 3em;
  letter-spacing: -.175rem;
}

.h-sm {
  font-size: 2em;
  letter-spacing: -.05rem;
}

.text {
  color: var(--text-muted);
  font-size: 1em;
  line-height: 1.875;
  font-weight: 400;
}

/* ---------- hero / centered blocks ---------- */
.hero {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  /* width: 5.25rem; */
  /* margin-bottom: 1rem; */
  width: clamp(11rem, 45vw, 20rem);
  height: auto;
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  width: 13rem;
  height: 3.75rem;
  padding: 0 .5rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 2.5rem;
  color: var(--btn-text);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease;
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
  margin-left: .75rem;
  fill: var(--line);
  flex: none;
}

.btn:hover {
  transform: scale(1.1125);
}

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

.btn-accent svg {
  fill: var(--accent);
}

/* ---------- bordered two-column boxes (sections 1, 2, 6) ---------- */
.box {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  text-align: left;
}

.box .col-img {
  flex: 0 0 35%;
  position: relative;
  min-height: 14rem;
}

.box .col-text {
  flex: 0 0 65%;
  padding: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
}

.box .col-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* placeholder shown when an image file is missing */
.col-img.missing {
  background: linear-gradient(135deg, #14101c, #0b0b10);
}

.col-img.missing img {
  display: none;
}

.box .buttons {
  align-items: flex-start;
}

/* swap image to the right side (Section 2) */
.box.reverse .col-img {
  order: 2;
}

.box.reverse .col-text {
  order: 1;
  flex-basis: 65%;
}

/* ---------- three-column row with vertical dividers (sections 3-5) ---------- */
.trio {
  display: flex;
}

.tcol {
  flex: 1 1 0;
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  border-left: 1px solid var(--line);
}

.tcol:first-child {
  border-left: 0;
  padding-left: 0;
}

.tcol:last-child {
  padding-right: 0;
}

.small-img {
  width: 8.25rem;
}

/* ---------- social icons ---------- */
.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.625rem;
  font-size: 2em;
}

.icons a {
  display: flex;
  width: 1em;
  height: 1em;
  transition: transform .25s ease;
}

.icons svg {
  width: 100%;
  height: 100%;
  fill: var(--line);
  transition: fill .25s ease;
}

.icons a:hover {
  transform: scale(1.2);
}

.icons a:hover svg {
  fill: var(--line-hover);
}

.footer {
  color: var(--line);
  font-size: .75em;
  line-height: 1.875;
}

/* ---------- scroll-in animation (optional; JS adds .in) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* hidden helper – used by script.js to hide sections */
.is-hidden {
  display: none !important;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

/* ---------- tablets / phones ---------- */
@media (max-width: 980px) {
  html {
    font-size: 11pt;
  }
}

@media (max-width: 736px) {
  :root {
    --gap-section: 6rem;
  }

  .page {
    padding: 4rem 2rem;
    gap: var(--gap-section);
  }

  .title {
    font-size: 3.5em;
    letter-spacing: -.15rem;
  }

  .heading {
    font-size: 2em;
    letter-spacing: -.1rem;
    line-height: 1.25;
  }

  /* boxes stack: image on top, text below, everything centered */
  .box,
  .box.reverse {
    flex-direction: column;
    text-align: center;
  }

  .box .col-img,
  .box.reverse .col-img {
    order: 0;
    flex-basis: auto;
    min-height: 16rem;
  }

  .box .col-text,
  .box.reverse .col-text {
    order: 1;
    flex-basis: auto;
    padding: 4rem 2rem;
    align-items: center;
    gap: 2rem;
  }

  .box .buttons {
    align-items: center;
  }

  /* trio stacks with horizontal dividers */
  .trio {
    flex-direction: column;
  }

  .tcol {
    border-left: 0;
    padding: 4rem 0;
    border-top: 1px solid var(--line);
  }

  .tcol:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .tcol:last-child {
    padding-bottom: 0;
  }

  .small-img {
    width: 7rem;
  }
}

@media (max-width: 480px) {
  .hero {
    gap: 2.1875rem;
  }

  .btn {
    width: 100%;
    max-width: 32rem;
  }

  .buttons {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .page {
    padding: 3rem 1.5rem;
  }
}