/* Spectrum App Design — shared styles (company pages) */
:root {
  --bg: #070a14;
  --bg-2: #0c1222;
  --surface: #111a2e;
  --surface-2: #17223b;
  --line: #22304f;
  --text: #e9eefb;
  --text-soft: #a9b5d1;
  --cyan: #2fe6d6;
  --sky: #18aee8;
  --blue: #4a86f0;
  --indigo: #6c6ff2;
  --focus: #2fe6d6;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 55%, var(--indigo));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid rgba(34,48,79,.6); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; color: var(--text); }
.brand img { width: 46px; height: auto; flex: none; }
.brand small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .32em; color: var(--sky); margin-top: 2px; }
.brand span { line-height: 1.05; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a.link { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; color: var(--text-soft); }
.nav a.link:hover { color: var(--text); background: var(--surface); }
.nav a.link[aria-current="page"] { color: var(--bg); background: var(--cyan); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px;
  background:
    radial-gradient(45% 60% at 78% 45%, rgba(74,134,240,.22), transparent 70%),
    radial-gradient(35% 45% at 70% 20%, rgba(47,230,214,.14), transparent 70%); }
.hero::before { /* faint circuit grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(120,160,230,.18) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent);
          mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lede { font-size: clamp(1.12rem, 1.9vw, 1.3rem); color: var(--text-soft); max-width: 40ch; }
.hero-logo { position: relative; justify-self: center; width: min(460px, 86vw); }
.hero-logo img { position: relative; filter: drop-shadow(0 0 28px rgba(47,230,214,.25)); }
.hero-logo::before { content: ""; position: absolute; inset: 6% 10% 30%; border-radius: 50%; background: radial-gradient(circle, rgba(74,134,240,.35), transparent 65%); filter: blur(18px); animation: think 5s ease-in-out infinite; }
@keyframes think { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-solid { background: var(--grad); color: #04121a; box-shadow: 0 8px 30px -10px rgba(47,230,214,.6); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(74,134,240,.75); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line); background: rgba(17,26,46,.6); }
.btn-ghost:hover { border-color: var(--sky); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head p { color: var(--text-soft); font-size: 1.15rem; }

/* Spectrum band: the signature element */
.spectrum { position: relative; padding: 56px 0 64px; }
.spectrum-line { position: relative; height: 4px; border-radius: 4px; background: var(--grad); margin: 8px 0 40px; box-shadow: 0 0 24px rgba(47,230,214,.35); }
.spectrum-line i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--bg); border: 3px solid currentColor; }
.spectrum-line i:nth-child(1) { left: 0%;   color: var(--cyan); margin-left: 0; }
.spectrum-line i:nth-child(2) { left: 33%;  color: var(--sky); }
.spectrum-line i:nth-child(3) { left: 66%;  color: var(--blue); }
.spectrum-line i:nth-child(4) { left: 100%; color: var(--indigo); margin-left: -16px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principle h3 { color: var(--text); }
.principle p { color: var(--text-soft); margin: 0; }
.principle .k { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--c); display: block; margin-bottom: 6px; }

/* Featured app */
.feature-app {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, #3a2f22 0%, #1b1c1e 55%);
  color: #efe4cc; border-radius: 24px; padding: 44px; position: relative; overflow: hidden;
  border: 1px solid rgba(232,194,122,.25);
}
.feature-app img { width: 100%; max-width: 280px; margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.feature-app h3 { font-family: "Cinzel", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); color: #e8c27a; letter-spacing: .01em; }
.feature-app p { color: #d8ccb2; max-width: 52ch; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(232,194,122,.14); color: #f0d39a; border: 1px solid rgba(232,194,122,.35); margin: 0 6px 14px 0; }
.btn-gold { background: #e8c27a; color: #1b1c1e; }
.btn-gold:hover { background: #f6dca0; transform: translateY(-2px); }

/* Next */
.next { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; border-radius: 24px; padding: 40px 44px; }
.next p { color: var(--text-soft); margin: 0; max-width: 56ch; }
.next h2 { margin-bottom: .35em; }

/* Prose pages */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lede { max-width: 56ch; }
.prose { max-width: 72ch; padding: 8px 0 72px; }
.prose p, .prose li { color: #d3dbee; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; color: var(--cyan); font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a, .page-hero a { color: var(--cyan); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.note { background: var(--surface); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 18px 22px; margin: 1.5em 0; }
.meta { color: var(--text-soft); font-size: .95rem; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--text); }
details summary::marker { color: var(--cyan); }
details[open] summary { margin-bottom: 8px; }
.mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 3.4vw, 1.6rem); word-break: break-all; }
.mail a { color: var(--cyan); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; font-size: .97rem; color: var(--text-soft); background: var(--bg-2); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot ul { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; }
.foot a { color: var(--text); text-underline-offset: 3px; }
.foot .stripe { height: 3px; width: 120px; border-radius: 3px; background: var(--grad); margin-bottom: 14px; }

@media (max-width: 900px) {
  .hero-grid, .feature-app { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(300px, 70vw); }
  .feature-app { padding: 32px 24px; }
  .feature-app img { max-width: 200px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .next { grid-template-columns: 1fr; padding: 30px 24px; }
  .hero { padding: 32px 0 56px; }
}
@media (max-width: 520px) {
  section { padding: 52px 0; }
  .nav { justify-content: center; }
  .nav ul { justify-content: center; gap: 2px; }
  .nav a.link { padding: 6px 10px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
