/* IMD TV — site styles. Look approved 2026-11-14: near-black navy, drifting blue-violet light, left section rail. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-0: #060a26;
  --bg-1: #0d1446;
  --bg-2: #160d52;
  --text: #f2f4ff;
  --text-2: rgba(235, 240, 255, .74);
  --text-3: rgba(235, 240, 255, .55);
  --kicker: #9fb4ff;
  --line: rgba(255, 255, 255, .12);
  --card: rgba(255, 255, 255, .06);
  --card-hover: rgba(255, 255, 255, .09);
  --accent-a: #7aa2ff;
  --accent-b: #c38bff;
  --coffee: #ffd38a;
  --rail-x: 34px;
  --content-left: 220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* The whole page at 120% on wide screens (user, 2026-11-14: reads best and fills the space); phones stay at 100%. */
@media (min-width: 901px) { html { zoom: 1.2; } }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; color: var(--bg-0); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Background: gradient sky and three slowly drifting lights. */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(1200px 700px at 85% -10%, #2a1f8f 0%, transparent 60%),
              linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2)); }
.blob { position: fixed; border-radius: 50%; filter: blur(110px); opacity: .5; pointer-events: none; z-index: 0;
  animation: drift 20s ease-in-out infinite alternate; }
.b1 { width: 620px; height: 620px; background: #5a3cf0; top: -160px; right: -140px; }
.b2 { width: 540px; height: 540px; background: #2f6bff; bottom: -200px; left: -160px; animation-duration: 26s; }
.b3 { width: 420px; height: 420px; background: #b06bff; top: 40%; left: 45%; opacity: .25; animation-duration: 32s; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.18); } }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px; transition: background .4s, backdrop-filter .4s; }
.top.scrolled { background: rgba(6, 10, 38, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.brand img { width: 64px; height: auto; }
.brand span { background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.top nav a { color: var(--text-2); text-decoration: none; transition: color .3s; }
.top nav a:hover { color: #fff; }
.top nav .pill { color: var(--bg-0); background: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.top nav .pill:hover { color: var(--bg-0); }

/* Section rail */
.rail { position: fixed; left: var(--rail-x); top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 16px; }
.rail a { color: rgba(255, 255, 255, .55); text-decoration: none; font-size: 12px; letter-spacing: .06em; display: flex; align-items: center; gap: 12px; transition: color .4s; }
.rail a .line { width: 14px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: width .45s cubic-bezier(.2, .7, .2, 1), background .45s; }
.rail a.on { color: #fff; }
.rail a.on .line { width: 38px; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.rail a:hover { color: rgba(255, 255, 255, .85); }

/* Sections */
main { position: relative; z-index: 1; }
section { min-height: 100vh; padding: 120px 10vw 120px var(--content-left); display: flex; flex-direction: column; justify-content: center; }
.reveal { opacity: 0; transform: translateY(36px) scale(.985); filter: blur(6px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

.kicker { font-size: 13px; color: var(--kicker); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
h1 { font-size: clamp(48px, 7vw, 104px); font-weight: 800; line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.grad { background: linear-gradient(90deg, var(--kicker), var(--accent-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--text-2); max-width: 640px; margin-top: 24px; line-height: 1.6; }
.small { margin-top: 18px; font-size: 13px; color: var(--text-3); }

.btns { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn { padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: transform .3s, background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #fff; color: #0b1140; }
.btn.ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); }

/* From Themes down, sections size to their content instead of filling the screen (user, 2026-11-14: less empty space). */
#themes, #why, #download, #faq, #support { min-height: auto; padding-top: 72px; padding-bottom: 72px; }
/* Intro and story fit their content too, so the gaps to Why I built it and Features match on tall screens (user, 2026-11-15). */
#intro, #story { min-height: auto; }

/* Intro: text and a screenshot side by side on wide screens */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.intro .hero-shot { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45); transform: perspective(1400px) rotateY(-6deg); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.intro .hero-shot:hover { transform: perspective(1400px) rotateY(0); }

/* Story */
.story { max-width: 760px; }
.story p { font-size: 19px; color: var(--text-2); line-height: 1.7; margin-top: 22px; }
.story p:first-of-type { margin-top: 28px; }
.story strong { color: #fff; font-weight: 600; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .5s cubic-bezier(.2, .7, .2, 1), background .5s; }
.card:hover { transform: translateY(-4px); background: var(--card-hover); }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(91, 124, 255, .9), rgba(164, 107, 255, .9)); }
.icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows: text and screenshot side by side, alternating sides */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-top: 80px; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.feature p { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.feature ul, .more { list-style: none; display: grid; gap: 10px; }
.feature ul { margin-top: 18px; }
.feature li, .more li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.feature li::before, .more li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); }
.feature .shot img { aspect-ratio: auto; }
.more-title { font-size: 24px; font-weight: 800; margin-top: 96px; }
.more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; margin-top: 20px; }

/* Theme gallery */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.shot { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.shot:hover { transform: scale(1.02); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 13px; color: #fff; background: rgba(6, 10, 38, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 4px 11px; border-radius: 999px; }

/* Theme cards fade between the guide and the categories screen, all in step. */
.shot.rotate img + img { position: absolute; inset: 0; animation: swap 14s ease-in-out infinite; }
@keyframes swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.settings-shots { margin-top: 20px; }

/* Download steps */
.steps { counter-reset: s; margin-top: 36px; display: grid; gap: 14px; max-width: 760px; list-style: none; }
.install-h { font-size: 22px; color: #fff; margin: 44px 0 0; }
.install-h + .steps { margin-top: 16px; }
.steps span { overflow-wrap: anywhere; }
.steps li { display: flex; gap: 18px; align-items: baseline; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--text-2); }
.steps li::before { counter-increment: s; content: counter(s); font-weight: 800; font-size: 22px; color: var(--kicker); min-width: 22px; }
.steps a { color: #fff; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: rgba(255, 255, 255, .1); padding: 2px 8px; border-radius: 6px; font-size: .92em; }

/* FAQ */
.faq { max-width: 800px; margin-top: 30px; }
.qa { border-bottom: 1px solid var(--line); padding: 20px 0; }
.qa h3 { font-size: 18px; margin: 0; }
.qa p { margin-top: 10px; color: var(--text-2); line-height: 1.65; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--kicker); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--text-2); line-height: 1.65; }

/* Support */
.coffee { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(255, 211, 138, .45); color: var(--coffee); text-decoration: none; font-weight: 600; transition: background .3s; }
.coffee:hover { background: rgba(255, 211, 138, .08); }

footer { position: relative; z-index: 1; padding: 48px 10vw 56px var(--content-left); color: var(--text-3); font-size: 13px; line-height: 1.7; border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: #fff; }

/* Narrower screens */
@media (max-width: 1100px) {
  .intro { grid-template-columns: 1fr; }
  .intro .hero-shot { transform: none; max-width: 720px; }
  .grid, .themes, .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .feature.flip .text { order: 0; }
}
@media (max-width: 900px) {
  :root { --content-left: 24px; }
  .rail { display: none; }
  .top { padding: 14px 20px; }
  .top nav a:not(.pill) { display: none; }
  section { min-height: auto; padding: 110px 24px 64px; }
  footer { padding: 40px 24px 48px; }
  .lead { font-size: 18px; }
}
@media (max-width: 600px) {
  .grid, .themes, .more { grid-template-columns: 1fr; }
  .blob { opacity: .35; }
}

/* People who've asked their device for less motion get none. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .shot.rotate img + img { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .card, .shot, .btn, .intro .hero-shot { transition: none; transform: none; }
  .card:hover, .shot:hover, .btn:hover { transform: none; }
}
