/* RÜK werks — rukwerks.com
   Colors come from the two apps: Paracletos Slate + Mocha gradients,
   Stillwater's paper white and slate ink. Type: Cinzel (Stillwater) + Montserrat (Paracletos). */

:root {
  --slate-1: #4C616A;
  --slate-2: #334555;
  --slate-3: #16253B;
  --mocha-1: #97867E;
  --mocha-2: #756861;
  --mocha-3: #594F47;
  --paper: #F6F5F3;
  --ink: #5F6B76;
  --ink-strong: #3C454E;
  --white: #FFFFFF;
  --display: "Cinzel", "Times New Roman", serif;
  --ui: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate-3);
  color: var(--white);
  font: 400 16px/1.65 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font: 500 12px/1 var(--ui);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
}

/* ───── Hero ───── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--slate-1) 0%, var(--slate-2) 55%, var(--slate-3) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font: 500 11px/1 var(--ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity .3s;
}
.nav-links a:hover { opacity: 1; }

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 96px;
}
.hero-logo {
  width: min(440px, 76vw);
  aspect-ratio: 42.14 / 14.15;
  fill: var(--white);
  margin-bottom: 44px;
}
.hero .eyebrow { opacity: 0.7; }
.hero-line {
  font: 400 clamp(22px, 3.2vw, 34px)/1.4 var(--display);
  max-width: 760px;
  margin: 22px 0 64px;
  letter-spacing: 0.01em;
}
.hero-apps { display: flex; gap: 56px; }
.hero-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font: 500 11px/1.5 var(--ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity .3s, transform .4s;
}
.hero-app:hover { opacity: 1; transform: translateY(-3px); }
.hero-app img {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

/* ───── App sections (shared) ───── */

.app { padding: 120px 0 128px; }
.app-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.lede { font-size: 18px; line-height: 1.7; margin: 28px 0 36px; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 920px;
  margin: 80px auto 0;
}

.features {
  list-style: none;
  padding: 0;
  margin: 88px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.features h3 {
  font: 400 19px/1.3 var(--display);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.features p { margin: 0; font-size: 14px; line-height: 1.7; }

/* ───── Stillwater ───── */

.stillwater {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  transition: color .9s ease;
}
/* Dark mode fades in over the paper when the switch is flipped. */
.stillwater::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #1D2228 0%, #15191E 100%);
  opacity: 0;
  transition: opacity .9s ease;
}
.stillwater.is-alt::before { opacity: 1; }
.stillwater.is-alt { color: #A7AFB8; }

.sw-logo { width: min(460px, 86vw); transition: filter .9s ease; }
.stillwater.is-alt .sw-logo { filter: brightness(0) invert(.9); }
.stillwater .lede, .stillwater .features h3, .stillwater .soon, .sw-theme-name { color: var(--ink-strong); transition: color .9s ease, border-color .9s ease; }
.stillwater.is-alt .lede, .stillwater.is-alt .features h3, .stillwater.is-alt .soon, .stillwater.is-alt .sw-theme-name { color: #E6E9EC; }
.stillwater .soon { border-color: rgba(60, 69, 78, .35); }
.stillwater.is-alt .soon { border-color: rgba(255, 255, 255, .3); }

.sw-theme { margin: 0; text-align: center; }
.sw-theme figcaption { margin-bottom: 22px; }
.sw-theme-name { display: block; font: 400 26px/1.2 var(--display); letter-spacing: 0.04em; }
.sw-note { margin: 28px auto 0; max-width: 260px; font-size: 14px; line-height: 1.7; }
.sw-note span { display: block; margin-bottom: 6px; font: 400 19px/1.3 var(--display); letter-spacing: 0.04em; color: var(--ink-strong); transition: color .9s ease; }
.stillwater.is-alt .sw-note span { color: #E6E9EC; }
.sw-theme-tag { display: block; margin-top: 4px; font: 400 15px/1.4 var(--display); }

.stillwater .phone {
  background: #E4E3DE;
  box-shadow: 0 0 0 1px rgba(60, 69, 78, .08), 0 30px 60px rgba(60, 69, 78, .14);
  transition: background .9s ease, box-shadow .9s ease;
}
.stillwater.is-alt .phone {
  background: #2A3038;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .35);
}

/* Light-on-dark versions of the switch for Stillwater's paper background. */
.stillwater .theme-switch { background: rgba(60, 69, 78, .06); box-shadow: inset 0 0 0 1px rgba(60, 69, 78, .16); transition: background .9s, box-shadow .9s; }
.stillwater .theme-switch button { color: var(--ink-strong); transition: background .4s, opacity .4s, color .9s; }
.stillwater .theme-switch button[aria-pressed="true"] { background: rgba(60, 69, 78, .12); }
.stillwater.is-alt .theme-switch { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.stillwater.is-alt .theme-switch button { color: var(--white); }
.stillwater.is-alt .theme-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); }

/* ───── Paracletos ───── */

.paracletos {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--mocha-1) 0%, var(--mocha-2) 50%, var(--mocha-3) 100%);
}
/* Slate gradient fades in over Mocha when the switch is flipped. */
.paracletos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--slate-1) 0%, var(--slate-2) 50%, var(--slate-3) 100%);
  opacity: 0;
  transition: opacity .9s ease;
}
.paracletos.is-alt::before { opacity: 1; }

/* ───── Theme switches (shared) ───── */

/* Each image has an alternate twin (Dark / Slate) stacked on top of it. */
.pc-icon, .phone { position: relative; }
.alt-only {
  position: absolute;
  opacity: 0;
  transition: opacity .9s ease;
}
.phone .alt-only { inset: 7px; width: calc(100% - 14px); }
.pc-icon .alt-only { inset: 0; }
.is-alt .alt-only { opacity: 1; }

.theme-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 72px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.theme-switch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 500 11px/1 var(--ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: background .4s, opacity .4s;
}
.theme-switch button:hover { opacity: 1; }
.theme-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); opacity: 1; }
.theme-switch + .shots { margin-top: 48px; }
.pc-icon {
  width: 96px;
  height: 96px;
  border-radius: 22.5%;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(40, 30, 24, .3);
  margin-bottom: 32px;
}
.pc-name { margin: 0; }
.pc-name img { width: min(400px, 78vw); height: auto; }
.eyebrow.light { opacity: 0.8; }
.paracletos .lede { margin: 36px 0 28px; }
.soon {
  margin: 0;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font: 500 11px/1 var(--ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Paracletos screenshots are bare screens, so give them a quiet device frame. */
.phone {
  margin: 0;
  padding: 7px;
  border-radius: 46px;
  background: rgba(20, 16, 14, .55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(30, 22, 18, .35);
}
.phone img { border-radius: 39px; }
.pc-shots { gap: 44px; max-width: 860px; }
.paracletos .features p { opacity: 0.85; }

/* ───── Footer ───── */

.footer {
  background: linear-gradient(180deg, var(--slate-2) 0%, var(--slate-3) 100%);
  padding: 104px 0 56px;
  text-align: center;
}
.footer-logo {
  width: 150px;
  aspect-ratio: 42.14 / 14.15;
  fill: var(--white);
  margin-bottom: 36px;
}
.footer-line {
  font: 500 11px/1 var(--ui);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 14px;
}
.footer-mail {
  font: 400 clamp(18px, 2.6vw, 22px)/1.3 var(--ui);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 4px;
  transition: border-color .3s;
}
.footer-mail:hover { border-color: rgba(255, 255, 255, .9); }
.footer-links { margin: 64px 0 18px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.footer-links a, .copy {
  font: 500 11px/1.6 var(--ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.55;
}
.footer-links a:hover { opacity: 0.9; }
.copy { margin: 0; opacity: 0.4; }

/* ───── Motion ───── */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───── Phones ───── */

@media (max-width: 760px) {
  .nav { padding: 22px 16px; }
  .nav-links { gap: 18px; }
  .nav-links a { letter-spacing: 0.16em; font-size: 10px; }
  .wrap { padding: 0 16px; }
  .app { padding: 88px 0 96px; }
  .lede { font-size: 16px; }
  .hero-apps { gap: 40px; }

  /* Screenshots become a sideways swipe. */
  .shots {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 56px -16px 0;
    padding: 0 16px 24px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots > * { flex: 0 0 68%; scroll-snap-align: center; }
  .phone { border-radius: 36px; padding: 6px; }
  .phone img { border-radius: 30px; }
  .phone .alt-only { inset: 6px; width: calc(100% - 12px); }

  .features { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
}

@media (max-width: 420px) {
  .nav-links a:last-child { display: none; }
}
