/* The home page. One cable runs from the phone at the top to the PC at the bottom; the
   features hang off it, right, left, right. Fonts are Windows' own (Sitka, Bahnschrift,
   Cascadia), which is what Linecast's visitors have. */

:root {
  --bg: #12100e;
  --bg-raised: #1a1714;
  --line: #2a2521;
  --track: #2f2924;
  --text: #f1ebe3;
  --muted: #aaa196;
  --dim: #7a7168;
  --accent: #ff5a4e;
  --accent-soft: rgba(255, 90, 78, 0.16);
  --serif: "Sitka Banner", "Sitka Display", "Sitka Heading", "Sitka Text", Constantia, Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --label: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(255, 120, 90, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* A faint grain, so the dark isn't a flat screen colour. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }

/* ---- Top bar ---- */
.top {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 48px;
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 15px var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.top nav { margin-left: auto; display: flex; gap: 30px; }
.top nav a { color: var(--muted); text-decoration: none; font: 15px var(--label); letter-spacing: 0.04em; }

/* ---- The run: hero, features and the cable through them ---- */
#run {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.cable {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.cable-track { fill: none; stroke: var(--track); stroke-width: 2; }
.cable-live {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 90, 78, 0.55));
}
.cable-pulses circle { fill: #ffd2c9; }
.cable-pulses circle.glow { fill: var(--accent); opacity: 0.28; }

.hero, .feat, .cable-end { position: relative; z-index: 1; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 24px 0 140px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 13px var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.6s ease-out infinite;
}
@keyframes breathe {
  0% { transform: scale(1); opacity: 0.55; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}
h1 {
  font-size: clamp(54px, 5.8vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.015em;
}
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lead { margin-top: 28px; max-width: 32em; font-size: 19px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 38px; }
.cta {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 4px;
  background: var(--accent);
  color: #1d0906;
  font: 600 16px var(--label);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.note { color: var(--dim); font: 14px var(--label); letter-spacing: 0.05em; }
.readouts {
  display: flex;
  gap: 48px;
  margin: 60px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.readouts div { margin: 0; }
.readouts dt { font: 12px var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.readouts dd { margin: 6px 0 0; font: 34px/1 var(--mono); color: var(--text); }
.readouts small { margin-left: 8px; font: 13px var(--mono); color: var(--muted); }

.hero-shots { position: relative; padding-bottom: 20%; }
.hero-shots .panel { width: 84%; }
/* The phone's screen, held sideways, in front of the PC window. */
.hero-shots .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Screens: lit when the cable reaches them (see home.js). */
.screen {
  border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.screen:not(.on) { filter: brightness(0.1) saturate(0); }
.screen.on { animation: power-on 1.1s var(--ease) both; }
@keyframes power-on {
  0% { filter: brightness(0.1) saturate(0); }
  9% { filter: brightness(1.45) saturate(0.3); }
  15% { filter: brightness(0.32) saturate(0.2); }
  30% { filter: brightness(1.12) saturate(0.85); }
  100% { filter: brightness(1) saturate(1); }
}

/* Features, alternating against the right and left edges */
.feat {
  display: grid;
  width: 66%;
  gap: 60px;
  align-items: center;
  margin-bottom: 210px;
}
.feat.right { margin-left: auto; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); }
.feat.left { margin-right: auto; grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr); }
.feat.left .feat-text { order: 2; }
.feat.left .feat-shot { order: 1; }
.feat.right .feat-text { padding-left: 46px; }
.feat.left .feat-text { padding-right: 46px; }
.feat.tall .feat-shot img { width: 300px; }
.feat.tall.right .feat-shot { justify-self: end; }
.feat h2 { font-size: 40px; line-height: 1.1; }
.feat p { margin-top: 18px; color: var(--muted); }

/* Where the cable meets each feature */
.plug {
  position: absolute;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--track);
  background: var(--bg);
  transition: border-color 0.5s, box-shadow 0.7s;
}
.feat.right .plug { left: 0; transform: translateX(-50%); }
.feat.left .plug { right: 0; transform: translateX(50%); }
.plug.lit { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.plug-tag {
  position: absolute;
  top: -3px;
  white-space: nowrap;
  font: 12px var(--mono);
  letter-spacing: 0.04em;
  color: var(--dim);
  transition: color 0.6s;
}
.feat.right .plug-tag { right: 26px; }
.feat.left .plug-tag { left: 26px; }
.plug.lit .plug-tag { color: var(--accent); }

.cable-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: -60px auto 0;
  padding-bottom: 150px;
}
.cable-end svg { width: 64px; height: 48px; fill: none; stroke: var(--track); stroke-width: 2; transition: stroke 0.8s; }
.cable-end span { font: 12px var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); transition: color 0.8s; }
.cable-end.lit svg { stroke: var(--accent); }
.cable-end.lit span { color: var(--text); }

/* ---- The plain part below ---- */
.plain-part { padding: 0 48px 120px; }
.plain-part .wrap { max-width: 1040px; margin: 0 auto; }
.plain-part h2 { font-size: 44px; line-height: 1.1; }
.muted { color: var(--muted); }
.plain-part > .wrap > .muted { margin-top: 12px; }
.compare { width: 100%; border-collapse: collapse; margin: 36px 0 26px; font-size: 16px; }
.compare th { font: 12px var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); text-align: left; padding: 0 10px 12px; }
.compare td { padding: 15px 10px; border-top: 1px solid var(--line); }
.compare .c { text-align: center; width: 26%; }
.compare .yes { color: var(--accent); font-size: 18px; }
.compare .no { color: var(--dim); }
.compare td.muted { font-size: 15px; }
.quiet-link { font: 15px var(--label); letter-spacing: 0.05em; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 90px; align-items: start; }
.needs { margin: 26px 0 0; padding: 0; list-style: none; }
.needs li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); color: var(--muted); position: relative; }
.needs li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 8px; height: 2px; background: var(--accent); }
.needs a { color: var(--text); }
.maker { border-left: 1px solid var(--line); padding: 6px 0 6px 40px; }
.maker h3 { font-size: 28px; margin: 18px 0 12px; }
.maker p { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 34px 48px 50px; color: var(--dim); font-size: 14px; }
.foot .wrap { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot .small { width: 100%; font-size: 13px; }

/* ---- Rising in ---- */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rise.in { opacity: 1; transform: none; }

/* ---- Narrow windows and phones: one column, no cable ---- */
@media (max-width: 999px) {
  .top { padding: 18px 20px; flex-wrap: wrap; gap: 14px; }
  .top nav { margin-left: 0; gap: 18px; flex-wrap: wrap; }
  #run { padding: 0 20px; }
  .cable, .plug, .cable-end { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 48px; padding: 30px 0 90px; }
  .readouts { gap: 26px; flex-wrap: wrap; }
  .feat, .feat.right, .feat.left { width: 100%; grid-template-columns: 1fr; gap: 28px; margin: 0 0 90px; }
  .feat.left .feat-text, .feat.left .feat-shot { order: 0; }
  .feat.right .feat-text, .feat.left .feat-text { padding: 0; }
  .feat.tall .feat-shot img { width: 240px; }
  .feat h2 { font-size: 32px; }
  .plain-part { padding: 0 20px 80px; }
  .two { grid-template-columns: 1fr; gap: 50px; }
  .maker { border-left: 0; padding: 0; }
  .foot { padding: 28px 20px 40px; }
}

/* ---- No movement for people who've asked for none ---- */
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .screen, .screen.on { filter: none; animation: none; }
}
