/* Ryft - ryft.ac. One stylesheet for every page. Dark navy and the logo's ice blue, Inter (self-hosted). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter.woff2") format("woff2");
}

:root {
  --bg: #050a18;
  --bg-2: #081129;
  --panel: #0b1531;
  --panel-2: #0f1c3e;
  --line: #1a2850;
  --line-strong: #2a3d70;
  --text: #e8eefb;
  --muted: #a3b1d0;
  --faint: #7f8fb5;
  --ice: #9fd3ff;
  --accent: #5d9bff;
  --primary: #2c66db;
  --primary-hover: #3a76ee;
  --ok: #5ccf98;
  --no: #f2837c;
  --wrap: 1120px;
  --gutter: 24px;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--panel); padding: 8px 14px; border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 24, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.menu a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.menu a:hover { color: var(--text); background: rgba(159, 211, 255, .06); }
.menu a[aria-current="page"] { color: var(--text); }
.menu .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.burger svg { margin: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.menu .btn { padding: 10px 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn svg { flex: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(93, 155, 255, .16), transparent 70%),
    radial-gradient(700px 420px at 10% 100%, rgba(44, 102, 219, .12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { margin: 0 0 18px; color: var(--ice); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
.hero h1 span { color: var(--ice); }
.lead { margin: 22px 0 0; font-size: 18.5px; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(44, 102, 219, .45); }
.hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 85% 0%, rgba(93, 155, 255, .14), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero .wrap { position: relative; padding-top: 80px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; max-width: 16em; }

/* ---------------------------------------------------------------- sections */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--bg-2); }
.head { max-width: 720px; margin-bottom: 48px; }
.head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; }
.head p { margin: 16px 0 0; color: var(--muted); font-size: 17.5px; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.card h3:first-child { margin-top: 0; }
.card p { margin: 10px 0 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(93, 155, 255, .1); color: var(--ice); border: 1px solid rgba(93, 155, 255, .22); }

.list { margin: 14px 0 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 9px 0 9px 30px; color: var(--muted); border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.list.no li::before { width: 12px; height: 2px; top: 21px; border: 0; background: var(--no); transform: none; }
.list strong { color: var(--text); font-weight: 600; }

/* the handling of a case, in order */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--ice);
  border: 1px solid var(--line-strong); background: var(--panel);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -8px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* two doors at the end of the home page */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; transition: border-color .25s; }
.door:hover { border-color: var(--accent); color: var(--text); }
.door h3 { font-size: 22px; font-weight: 750; }
.door p { color: var(--muted); margin: 10px 0 18px; }
.door .more { color: var(--ice); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.door:hover .more svg { transform: translateX(3px); }
.more svg { transition: transform .25s var(--ease); }

/* questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq .answer p { margin: 0 0 12px; }

.note { margin-top: 28px; padding: 18px 22px; border-radius: 12px; background: rgba(93, 155, 255, .07); border: 1px solid rgba(93, 155, 255, .2); color: var(--muted); }
.note strong { color: var(--text); }

.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; }
.cta p { color: var(--muted); max-width: 38em; margin: 16px auto 0; font-size: 17.5px; }
.cta .actions { justify-content: center; }

/* ---------------------------------------------------------------- legal text */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; font-weight: 750; margin: 56px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.toc a { color: var(--ice); font-weight: 500; }
table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--text); font-weight: 600; }
table.data td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 56px 0 40px; color: var(--faint); font-size: 14.5px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot img { height: 26px; width: auto; margin-bottom: 14px; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { color: var(--faint); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .burger { display: grid; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin: 14px 0 0; border-bottom: 0; border-radius: 10px; }
  section.block { padding: 64px 0; }
  .grid.three, .grid.two, .doors { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .lead { font-size: 17px; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* fields still to fill in (legal notice) */
mark { background: rgba(234, 183, 85, .16); color: #f3d38b; padding: 0 5px; border-radius: 4px; }

/* ---------------------------------------------------------------- what Ryft does, in one picture */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr; align-items: stretch; }
.node { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 24px; animation: node-glow 8s var(--ease) infinite; animation-delay: calc(var(--i) * 2s); }
.node h3 { font-size: 18px; font-weight: 700; margin-top: 16px; }
.node p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.node-step { position: absolute; top: 16px; right: 18px; font-size: 13px; font-weight: 700; color: var(--faint); }
.node-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--ice); background: rgba(93, 155, 255, .1); border: 1px solid rgba(93, 155, 255, .24); overflow: hidden; }
.node-ryft { border-color: rgba(93, 155, 255, .45); background: linear-gradient(180deg, #102350, var(--panel)); }
.node-ryft .node-icon { padding: 0; }
.node-ryft .node-icon img { width: 100%; height: 100%; object-fit: cover; }
/* each step lights up in turn, as if the case were travelling along */
@keyframes node-glow {
  0%, 22%, 100% { box-shadow: 0 0 0 0 rgba(93, 155, 255, 0); border-color: var(--line); }
  8% { box-shadow: 0 0 0 1px rgba(159, 211, 255, .55), 0 18px 50px -18px rgba(93, 155, 255, .6); border-color: rgba(159, 211, 255, .7); }
}
.node-ryft { animation-name: node-glow-ryft; }
@keyframes node-glow-ryft {
  0%, 22%, 100% { box-shadow: 0 0 0 0 rgba(93, 155, 255, 0); border-color: rgba(93, 155, 255, .45); }
  8% { box-shadow: 0 0 0 1px rgba(159, 211, 255, .7), 0 18px 60px -16px rgba(93, 155, 255, .75); border-color: rgba(159, 211, 255, .9); }
}
.link { position: relative; }
.link::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--line-strong), rgba(93, 155, 255, .5), var(--line-strong)); border-radius: 2px; }
.link span { position: absolute; top: 50%; left: 6px; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px 3px rgba(159, 211, 255, .7); opacity: 0; animation: travel 8s linear infinite; }
.flow .link:nth-of-type(2) span { animation-delay: 1.2s; }
.flow .link:nth-of-type(4) span { animation-delay: 3.2s; }
.flow .link:nth-of-type(6) span { animation-delay: 5.2s; }
@keyframes travel {
  0% { opacity: 0; transform: translateX(0); }
  2% { opacity: 1; }
  10% { opacity: 1; transform: translateX(26px); }
  12%, 100% { opacity: 0; transform: translateX(26px); }
}

/* ---------------------------------------------------------------- the butterfly floats */
.hero-art img { animation: drift 9s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes drift {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50% { transform: scale(1.06) translateY(-8px); }
}

/* ---------------------------------------------------------------- appear on scroll (only with JS: without it, all shows) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .wrap > div:first-child > * { animation: rise-in .8s var(--ease) both; }
.js .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
.js .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
.js .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
.js .hero-art { animation: rise-in 1s var(--ease) .2s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.lead strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .link { height: 40px; }
  .link::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line-strong), rgba(93, 155, 255, .5), var(--line-strong)); }
  .link span { left: 50%; top: 6px; margin: 0 0 0 -4px; animation-name: travel-down; }
  @keyframes travel-down {
    0% { opacity: 0; transform: translateY(0); }
    2% { opacity: 1; }
    10% { opacity: 1; transform: translateY(20px); }
    12%, 100% { opacity: 0; transform: translateY(20px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .node, .link span, .hero-art img, .js .hero-art, .js .hero .wrap > div:first-child > * { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* anchors land below the sticky header */
section[id] { scroll-margin-top: 68px; }
