/* SR-FE-PUBLIC-HOME-01 — public company homepage (owner-approved 2026-11-19).
   Graphite, chrome and steel with restrained cool-blue and violet highlights.
   Hero: a short, one-time galaxy-travel sequence that settles into a static orbital composition. */
:root {
  --g0: #080a0e;
  --g1: #0e1218;
  --g2: #141922;
  --g3: #1b222d;
  --line: #2a3340;
  --steel: #8aa0b5;
  --steel-dim: #6b7f93;
  --chrome: #e8edf4;
  --blue: #6ab0ff;
  --blue-light: #8fc3ff;
  --violet: #a393ff;
  --text: #eef2f7;
  --muted: #b2bccb;
  --focus: #8fc3ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--g0); }

body {
  margin: 0; background: var(--g0); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.6;
}

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }

a { color: var(--blue-light); text-underline-offset: 0.15em; }
a:hover { color: #ffffff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--chrome); color: var(--g0); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }


/* ---------- Compact header ---------- */
.site-header { background: var(--g1); border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
/* Official logo in reverse (white lettering and border on black), scoped to the header logo.
   The shared source PNG (black artwork on white) is untouched; the filter inverts it at render time. */
.brand-logo { display: block; width: 44px; height: 44px; object-fit: contain; background: #ffffff; filter: invert(1); }
.brand-name { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.01em; }

.login { display: flex; flex-direction: row-reverse; align-items: center; gap: 0.9rem; }
.login-note { margin: 0; font-size: 0.8125rem; color: var(--muted); text-align: right; max-width: 14rem; line-height: 1.3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.6rem 1.5rem; font: inherit; font-weight: 700; font-size: 1rem;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-login { min-width: 7.5rem; white-space: nowrap; }
.btn-login:not(:disabled) { background: linear-gradient(180deg, #f4f7fb, #b9c3d0); color: var(--g0); }
.btn-login:disabled { background: var(--g3); color: #aab4c2; border: 2px dashed var(--steel-dim); cursor: not-allowed; }
.btn-chrome {
  background: linear-gradient(180deg, #f6f9fc 0%, #c8d1dd 55%, #aab5c3 100%); color: var(--g0);
  border-color: #eef2f7; min-height: 3.25rem; padding: 0.75rem 2rem; font-size: 1.0625rem; overflow-wrap: anywhere;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 20px rgba(106, 176, 255, 0.18);
}
.btn-chrome:hover { color: var(--g0); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 28px rgba(106, 176, 255, 0.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 3rem 0 3.5rem;
  background:
    radial-gradient(1.2px 1.2px at 8% 18%, #dbe7ff 99%, transparent),
    radial-gradient(1px 1px at 22% 72%, #b6c8ee 99%, transparent),
    radial-gradient(1.4px 1.4px at 37% 12%, #ffffff 99%, transparent),
    radial-gradient(1px 1px at 48% 84%, #c7d6f5 99%, transparent),
    radial-gradient(1.2px 1.2px at 58% 30%, #dbe7ff 99%, transparent),
    radial-gradient(1px 1px at 71% 8%, #b6c8ee 99%, transparent),
    radial-gradient(1.4px 1.4px at 83% 64%, #ffffff 99%, transparent),
    radial-gradient(1px 1px at 92% 36%, #c7d6f5 99%, transparent),
    radial-gradient(1px 1px at 14% 46%, #9fb3d9 99%, transparent),
    radial-gradient(1px 1px at 64% 90%, #9fb3d9 99%, transparent),
    radial-gradient(55rem 30rem at 82% 20%, rgba(106, 176, 255, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at 5% 100%, rgba(163, 147, 255, 0.14), transparent 65%),
    linear-gradient(180deg, #11161d 0%, #0c1015 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
/* Copy always sits above the graphic, so it stays readable throughout the sequence. */
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 0.75rem; color: var(--blue-light); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; }
h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 18ch; color: #f4f7fb; }
.lede { margin: 0 0 1.75rem; max-width: 34rem; font-size: 1.125rem; color: var(--muted); }
.hero-actions { margin: 0; }
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; overflow: hidden; }
.orbit-toggle {
  position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 3;
  font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1; cursor: pointer;
  color: var(--muted); background: rgba(14, 18, 24, 0.78); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 0.85rem; min-height: 2.25rem;
}
.orbit-toggle:hover { color: #ffffff; border-color: var(--steel); }
.orbit-toggle[hidden] { display: none; }

/* ----- Galaxy composition: the default (no class) is the settled, static final state ----- */
.space { width: 100%; max-width: 34rem; height: auto; font-family: inherit; }
.space .ring { fill: none; stroke: var(--steel); stroke-opacity: 0.45; stroke-width: 1.5; }
.space .ring-outer { stroke-dasharray: 2 7; stroke-opacity: 0.6; }
.space .pill { fill: #171d27; stroke: url(#pillStroke); stroke-width: 1.5; }
.space .plabel { font-size: 17px; font-weight: 600; fill: #eef2f7; }
.space .star-label { font-size: 18px; font-weight: 700; fill: #0b0f16; }
.space .star, .space .glow, .space .orbit { transform-origin: 260px 260px; }
.space .counter { transform-origin: 0 0; }
.space .pulse { fill: none; stroke: var(--blue-light); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform-origin: 260px 260px; }
.space .fs { opacity: 0; transform-origin: 260px 260px; }

/* ----- One-time sequence (only with html.motion; ends by ~5.5 s; no looping) -----
   0.0 s  star + starfield
   0.5 s  pulse rolls outward, stars streak past (forward travel)
   1.0 s  six capabilities burst out of the star; some swell as they pass close to the viewer
   ~4.3 s settle into the stable orbital composition (rings fade in)                       */
html.motion .space .glow    { animation: glow-in 3s ease-out 0.2s backwards; }
html.motion .space .star    { animation: star-in 1.2s ease-out backwards; }
html.motion .space .pulse   { animation: pulse-out 2.6s ease-out 0.5s backwards; }
html.motion .space .fs      { animation: fly var(--dur) cubic-bezier(0.3, 0.1, 0.6, 1) var(--delay) backwards; }
html.motion .space .planet  { animation: emerge var(--dur) cubic-bezier(0.22, 0.7, 0.2, 1) var(--delay) backwards; }
html.motion .space .ring    { animation: ring-in 1.8s ease-out 2.4s backwards; }

/* ----- Slow orbit after the intro settles (~4.4 s): starts exactly at each planet's settled position.
   The orbit group turns clockwise; every planet counter-rotates by the same angle so labels stay upright.
   Rings and planets turn together (rigid), so labels can never collide. One turn takes 150 s. ----- */
html.motion .space .orbit   { animation: orbit 150s linear 4.4s infinite; }
html.motion .space .counter { animation: counter-orbit 150s linear 4.4s infinite; }
html.motion .space.paused .orbit,
html.motion .space.paused .counter { animation-play-state: paused; }
@keyframes orbit         { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes counter-orbit { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

@keyframes glow-in  { from { opacity: 0.35; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes star-in  { from { opacity: 0.85; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-out { 0% { opacity: 0; transform: scale(1); } 12% { opacity: 0.45; } 100% { opacity: 0; transform: scale(5.2); } }
@keyframes fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  18%  { opacity: 0.75; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(var(--ss)); }
}
@keyframes emerge {
  0%   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.12); }
  18%  { opacity: 1; }
  55%  { opacity: 1; transform: translate(calc(var(--dx) * 0.35), calc(var(--dy) * 0.35)) scale(var(--peak)); }
  82%  { transform: translate(calc(var(--dx) * -0.05), calc(var(--dy) * -0.05)) scale(1.05); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes ring-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Service cards ---------- */
.services { background: var(--g1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.25rem 0; }
h2 { margin: 0 0 1.5rem; font-size: 1.75rem; line-height: 1.25; color: #f4f7fb; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { border-radius: 14px; padding: 1.5rem; background: linear-gradient(160deg, #1b222d 0%, #12171e 100%); border: 1px solid var(--line); border-top-width: 3px; }
.card h3 { margin: 1rem 0 0.5rem; font-size: 1.1875rem; line-height: 1.3; color: #f4f7fb; }
.card p { margin: 0; color: var(--muted); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 12px; background: #0e1218; border: 1px solid var(--line); }
.card-discovery { border-top-color: var(--blue); }
.card-discovery .card-icon { color: var(--blue); }
.card-integration { border-top-color: var(--violet); }
.card-integration .card-icon { color: var(--violet); }
.card-delivery { border-top-color: #dfe6ef; }
.card-delivery .card-icon { color: #dfe6ef; }

/* ---------- Contact ---------- */
.contact { padding: 3rem 0; background: linear-gradient(120deg, #151b25 0%, #1f2340 100%); border-bottom: 1px solid var(--line); }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.contact h2 { margin: 0 0 0.35rem; }
.contact p { margin: 0; font-size: 1.125rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--g0); color: var(--muted); padding: 2.25rem 0 2.5rem; font-size: 0.9375rem; }
.legal-name { margin: 0 0 1rem; color: #ffffff; font-weight: 700; font-size: 1.125rem; }
.legal-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.legal-address { font-style: normal; color: #ffffff; overflow-wrap: anywhere; }
.legal { margin: 0; display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
.legal dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.legal dd { margin: 0; color: #ffffff; overflow-wrap: anywhere; }

@media (min-width: 52rem) {
  .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .legal-grid { grid-template-columns: 1.6fr 2.4fr; gap: 1.5rem; }
  .legal { grid-template-columns: 1fr 1fr 1.4fr; gap: 1.5rem; }
}

@media (max-width: 40rem) {
  .header-inner { flex-wrap: wrap; row-gap: 0.4rem; gap: 0.5rem; }
  .login { display: contents; }
  .btn-login { margin-left: auto; min-width: 0; padding: 0.4rem 0.85rem; font-size: 0.875rem; }
  .login-note { order: 3; flex: 0 0 100%; text-align: left; max-width: none; }
  .brand { gap: 0.5rem; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 0.875rem; line-height: 1.15; max-width: 6.5rem; }
  /* let the graphic use the full width so labels stay legible */
  .hero-visual { margin-left: -1rem; margin-right: -1rem; }
}

/* Reduced motion: never run the sequence; show the static final composition. */
@media (prefers-reduced-motion: reduce) {
  .space *, .space { animation: none !important; }
  .btn { transition: none; }
}
