/* Sign-in page, premium treatment (xtx-premium-app / premium pages).
   Palette from the fibre plant: graphite jacket, single-mode yellow, signal green only for "lit".
   Type: Barlow Condensed (display, tight) + Barlow (UI). ONE hero moment: light travelling through the network
   (the schematic in the dark stage). Everything else is quiet: fade-up reveals, hover lifts. */
:root {
  --jacket: #1b2530; --jacket-2: #2a3845; --sm: #f5c518; --sm-soft: #fdf3c4; --fibre-blue: #0b6fb8;
  --paper: #f4f6f7; --live: #19a35a; --ink: #16202a; --muted: #5b6874; --line: #dde3e8; --danger: #b42318;
  --canvas: #eef1f3; --card: #fff; --ease: cubic-bezier(.2,.8,.2,1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 Barlow, system-ui, sans-serif; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--fibre-blue); }
:focus-visible { outline: 2px solid var(--jacket); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sm); }

/* small, precise nav */
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 56px); background: #121a22; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 500 21px/1 var(--display); letter-spacing: .01em; }
.brand b { color: var(--sm); font-weight: 600; }
.nav-signin { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.nav-signin:hover { border-color: var(--sm); background: rgba(255,255,255,.06); }
.nav :focus-visible, .stage :focus-visible { outline-color: #fff; }

/* dark stage: headline + sign-in, then the hero moment */
.stage { position: relative; overflow: hidden; color: #e7edf2;
  background: radial-gradient(900px 480px at 78% 8%, rgba(245,197,24,.13), transparent 60%), radial-gradient(700px 420px at 8% 100%, rgba(11,111,184,.16), transparent 60%), #121a22; }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.hero { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 56px) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.eyebrow { margin: 0 0 18px; font: 600 13px/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sm); }
.eyebrow.dark { color: #7a5c00; }
.pitch h1 { font: 700 clamp(48px, 7.2vw, 92px)/.96 var(--display); letter-spacing: -.025em; margin: 0 0 26px; max-width: 13ch; color: #fff; }
.pitch h1 em { font-style: normal; color: var(--sm); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: #b7c3ce; margin: 0 0 28px; max-width: 60ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 60ch; }
.facts li { padding-left: 26px; position: relative; color: #d3dbe2; }
.facts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 3px; background: var(--sm); border-radius: 2px; }

/* sign-in card: the primary task, the biggest, highest-contrast target */
.card { background: var(--card); color: var(--ink); border-radius: 22px; padding: 30px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.card h2 { font: 700 30px/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
.muted { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.card label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.card input { width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: 10px 14px; border: 1.5px solid #8795a2; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.card input:focus { outline: none; border-color: var(--jacket); box-shadow: 0 0 0 4px rgba(245,197,24,.55); }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw .show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; border: 0; background: #eef2f5; color: var(--ink); font: 600 13px Barlow, sans-serif; padding: 0 12px; border-radius: 999px; cursor: pointer; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 22px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--sm); color: #141b22; font: 700 18px/1 var(--display); letter-spacing: .02em; cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(245,197,24,.7); transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: #ffd84a; box-shadow: 0 16px 30px -12px rgba(245,197,24,.8); }
.btn:active { transform: scale(.97); }
.alert { margin: 0 0 6px; padding: 11px 14px; border-radius: 12px; font-size: 15px; background: #fdecea; color: var(--danger); }
.alert.ok { background: #e3f5ea; color: #13703f; }
.alert.info { background: var(--sm-soft); color: #6b5300; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.signout { margin-top: 10px; text-align: center; }
.link { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 32px; }

/* the one bold element: light travelling through the real network */
.path { position: relative; color: #e7edf2; }
.path-inner { max-width: 1240px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 56px) clamp(56px, 8vw, 104px); }
.path h2 { font: 700 28px/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 18px; color: #fff; }
.schematic { width: 100%; height: auto; display: block; }
.schematic .cables path { fill: none; stroke: #3d4f60; stroke-width: 7; stroke-linecap: round; }
.schematic .core path { fill: none; stroke: var(--sm); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.schematic .noc rect, .schematic .fdh rect { fill: #1f2b37; stroke: #8fa0af; stroke-width: 2; }
.schematic .noc path, .schematic .fdh line, .schematic .fdh path { stroke: #8fa0af; stroke-width: 2; fill: none; }
.schematic .led { fill: var(--live); }
.schematic .fat rect { fill: var(--sm); stroke: none; }
.schematic .homes path { fill: #3d4f60; }
.schematic .homes path.lit { animation: lit 4.5s linear infinite; }
@keyframes lit { 0%, 60% { fill: #3d4f60; filter: none; } 64%, 94% { fill: var(--live); filter: drop-shadow(0 0 6px rgba(25,163,90,.9)); } 100% { fill: #3d4f60; } }
.schematic .pulse { fill: #fff; filter: drop-shadow(0 0 6px var(--sm)) drop-shadow(0 0 12px var(--sm)); }
.schematic text { font: 600 17px var(--display); fill: #fff; text-anchor: middle; }
.schematic text.sub { font: 400 14px Barlow, sans-serif; fill: #b7c3ce; }
.schematic text.lbl-left { text-anchor: middle; }
.schematic text.lbl-right { text-anchor: middle; }
@media (prefers-reduced-motion: reduce) { .schematic .homes path.lit { animation: none; fill: var(--live); } .schematic .pulse { display: none; } }
.path-note { margin: 14px 0 0; color: #b7c3ce; max-width: 70ch; }


.path-inner { border-top: 1px solid rgba(255,255,255,.08); padding-top: clamp(32px, 4vw, 48px); }
.path-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.anim-toggle { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 0 16px; min-height: 40px; font: 600 14px Barlow, sans-serif; cursor: pointer; transition: border-color .2s var(--ease); }
.anim-toggle:hover { border-color: var(--sm); }
.schematic.paused .homes path.lit { animation-play-state: paused; }

/* quiet sections: generous whitespace, one idea each */
.steps, .outputs { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 128px) clamp(16px, 4vw, 56px) 0; }
.steps h2, .outputs h2 { font: 700 clamp(32px, 4vw, 48px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 clamp(28px, 4vw, 44px); max-width: 22ch; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; background: var(--card); border: 1px solid #e3e8ec; border-radius: 22px; padding: 26px 26px 28px; box-shadow: 0 1px 2px rgba(20,27,34,.04), 0 8px 24px -16px rgba(20,27,34,.22); }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--jacket); color: var(--sm); font: 700 18px/1 var(--display); margin-bottom: 18px; }
.steps h3 { font: 700 22px/1.15 var(--display); margin: 0 0 8px; letter-spacing: -.005em; }
.steps p { margin: 0; color: #4f5a64; font-size: 16px; }
.outputs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.outputs dl div { background: var(--card); border: 1px solid #e3e8ec; border-radius: 22px; padding: 26px 28px 28px; box-shadow: 0 1px 2px rgba(20,27,34,.04), 0 8px 24px -16px rgba(20,27,34,.22); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.outputs dl div:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,27,34,.05), 0 18px 34px -18px rgba(20,27,34,.32); }
.outputs .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sm-soft); color: #5c4500; margin-bottom: 16px; }
.outputs .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.outputs dt { font: 700 22px/1.2 var(--display); margin-bottom: 6px; letter-spacing: -.005em; }
.outputs dd { margin: 0; color: #4f5a64; max-width: 52ch; }

.foot { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 56px) 36px; color: var(--muted); font-size: 14px; }

/* quiet entrance: content rises once on load (visible without JS; off under reduced motion) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.pitch > * { animation: rise .6s var(--ease) both; } .pitch > :nth-child(2) { animation-delay: .06s; } .pitch > :nth-child(3) { animation-delay: .12s; } .pitch > :nth-child(4) { animation-delay: .18s; }
.hero > .card { animation: rise .7s var(--ease) .14s both; }
@media (prefers-reduced-motion: reduce) { .pitch > *, .hero > .card { animation: none; } .outputs dl div:hover, .btn:active { transform: none; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .pitch h1 { max-width: 16ch; }
  .card { max-width: 480px; }
  .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .outputs dl { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
.schematic .drops path { fill: none; stroke: #3d4f60; stroke-width: 3; }
.schematic .cables path:nth-child(n+3) { stroke-width: 4; }
.sch-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .schematic { min-width: 760px; }
  .schematic text { font-size: 17px; } .schematic text.sub { font-size: 14px; }
  .sch-wrap { margin: 0 -16px; padding: 0 16px; }
}
/* phones and tablets: sign-in straight after the headline, so the main task is in the first screen (Fitts) */
@media (max-width: 980px) {
  .pitch { display: contents; }
  .pitch .eyebrow { order: 1; margin-bottom: 0; } .pitch h1 { order: 2; margin-bottom: 0; } .hero > .card { order: 3; } .pitch .lead { order: 4; margin: 0; } .pitch .facts { order: 5; }
  .hero { gap: 22px; padding-top: 40px; }
}
