/* Frozyn website */

:root {
  color-scheme: dark light;
  --accent: #3b9bff;
  --accent-deep: #2a63ea;
  --ink: #edf3fc;
  --ink-soft: #a3b5cf;
  --base: #070d18;
  --card: rgba(22, 34, 56, 0.55);
  --edge: rgba(170, 205, 255, 0.14);
  --hair: rgba(160, 200, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.55);
  --frame: #0d1626;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --accent: #1f7ae6;
    --accent-deep: #1a56d6;
    --ink: #10213a;
    --ink-soft: #4b5f7c;
    --base: #eaf2fa;
    --card: rgba(255, 255, 255, 0.66);
    --edge: rgba(255, 255, 255, 0.9);
    --hair: rgba(20, 60, 115, 0.13);
    --shadow: rgba(24, 60, 110, 0.18);
    --frame: #d9e6f3;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--base);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

code {
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: 0.86em;
}

/* ------------------------------------------------------------------ */
/* Sky                                                                */
/* ------------------------------------------------------------------ */

.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 55%, transparent);
}

.sky i {
  position: absolute;
  border-radius: 50%;
}

.sky i:nth-child(1) {
  width: 1100px;
  height: 1100px;
  left: -380px;
  top: -620px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 48%, transparent), transparent);
}

.sky i:nth-child(2) {
  width: 900px;
  height: 900px;
  right: -360px;
  top: -340px;
  background: radial-gradient(closest-side, rgba(70, 200, 235, 0.3), transparent);
}

.sky i:nth-child(3) {
  width: 1000px;
  height: 1000px;
  left: 28%;
  top: 320px;
  background: radial-gradient(closest-side, rgba(110, 95, 230, 0.2), transparent);
}

/* ------------------------------------------------------------------ */
/* Navigation                                                         */
/* ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--base) 62%, transparent);
  border: 1px solid var(--hair);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.nav nav a:hover {
  color: var(--ink);
  background: var(--hair);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 34px -12px color-mix(in srgb, var(--accent) 80%, transparent);
  transition:
    transform 0.18s var(--ease),
    filter 0.18s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.button.small {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
}

.button.large {
  height: 60px;
  padding: 0 34px;
  border-radius: 18px;
  font-size: 19px;
}

.link {
  color: var(--ink-soft);
  font-size: 16px;
  text-underline-offset: 4px;
}

.link:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 40px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 auto;
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(46px, 8.4vw, 92px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  background: linear-gradient(to bottom, var(--ink) 35%, color-mix(in srgb, var(--accent) 60%, var(--ink)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 600px;
  margin: 26px auto 0;
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.window {
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--frame);
  border: 1px solid var(--edge);
  box-shadow:
    0 0 0 1px var(--hair),
    0 50px 110px -40px var(--shadow),
    0 30px 80px -50px color-mix(in srgb, var(--accent) 70%, transparent);
}

.hero .window {
  margin-top: 64px;
}

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */

h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

section p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 70px 0 30px;
}

.pillars article {
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--edge);
  box-shadow: 0 20px 50px -30px var(--shadow);
}

.pillars h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pillars p {
  margin: 0;
  font-size: 15.5px;
}

.glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.glyph svg {
  width: 24px;
  height: 24px;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 56px;
  padding: 70px 0;
}

.showcase.flip .copy {
  order: 2;
}

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

.everything {
  margin: 50px 0;
  padding: 48px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--edge);
}

.everything ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
}

.everything li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 15.5px;
  color: var(--ink);
}

.everything li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.85;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 60px;
  text-align: center;
}

.download img {
  margin-bottom: 24px;
  filter: drop-shadow(0 16px 30px color-mix(in srgb, var(--accent) 50%, transparent));
}

.download > p {
  max-width: 520px;
  margin: 0 0 28px;
}

.download > p.meta {
  margin: 18px 0 0;
}

.notice {
  margin-top: 14px !important;
  padding: 10px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, #ffb347 18%, transparent);
  color: var(--ink) !important;
  font-size: 14.5px;
}

details {
  border-top: 1px solid var(--hair);
}

summary {
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

summary::after {
  content: "+";
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 20px;
  max-width: 68ch;
  font-size: 16px;
}

.fine {
  width: min(600px, 100%);
  margin-top: 30px;
  text-align: start;
  border-bottom: 1px solid var(--hair);
}

.fine summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.hash code {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hair);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.faq {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 50px 0 90px;
}

.faq details:last-child {
  border-bottom: 1px solid var(--hair);
}

/* ------------------------------------------------------------------ */
/* Help page                                                          */
/* ------------------------------------------------------------------ */

.page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 80px 0 90px;
}

.page h1 {
  max-width: none;
  font-size: clamp(38px, 6vw, 60px);
  text-align: start;
  margin: 0;
}

.page .lede {
  margin: 18px 0 40px;
  text-align: start;
}

.page h2 {
  margin-top: 50px;
  font-size: 26px;
}

.lost {
  text-align: center;
  padding: 120px 0;
}

.lost h1 {
  max-width: none;
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 50px;
  border-top: 1px solid var(--hair);
}

.foot p {
  max-width: 520px;
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.foot nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.foot nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot nav a:hover {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Small screens, motion                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 0;
  }
  .showcase.flip .copy {
    order: 0;
  }
  .everything {
    padding: 30px 24px;
  }
  .everything ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  main,
  .foot {
    width: calc(100% - 32px);
  }
  .nav {
    gap: 10px;
    padding-inline-start: 14px;
  }
  .nav nav {
    display: none;
  }
  .nav .button {
    margin-inline-start: auto;
  }
  .hero {
    padding-top: 60px;
  }
  .hero .window {
    margin-top: 44px;
    border-radius: 10px;
  }
  .everything ul {
    grid-template-columns: 1fr;
  }
  .foot {
    flex-direction: column;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
