/* Current and Cloud Workflow Automation — shared styles */

:root {
  --night: #1b1630;
  --night-2: #241d3d;
  --night-3: #30274f;
  --dusk: #6b5b8a;
  --sunset: #f0a868;
  --gold: #e2b340;
  --gold-deep: #a97d1c;
  --bolt: #3d6df2;
  --bolt-bright: #6f95ff;
  --cloud: #eef0f8;
  --text: #ece8f6;
  --text-muted: #b3abcb;
  --line: rgba(236, 232, 246, 0.12);

  --font-display: "Grenze", Georgia, serif;
  --font-pixel: "Pixelify Sans", "Courier New", monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--bolt-bright); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--night);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-pixel);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 12px 22px;
  border: 3px solid var(--night);
  box-shadow: 4px 4px 0 var(--night);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--night); }

.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { color: var(--night); }

.btn-ghost {
  background: rgba(27, 22, 48, 0.55);
  color: var(--text);
  border-color: var(--text);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}
.btn-ghost:hover { color: var(--text); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 22, 48, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  background: var(--night-3);
}
.brand .bolt { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--night); font-size: 0.95rem; padding: 8px 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--text-muted);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--night-2);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 10px; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 22, 48, 0.88) 0%, rgba(27, 22, 48, 0.6) 40%, rgba(27, 22, 48, 0) 68%),
    linear-gradient(0deg, var(--night) 0%, rgba(27, 22, 48, 0) 28%);
}

.hero-copy { max-width: 560px; padding: 80px 0 120px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.hero h1 .accent { color: var(--gold); }
.hero .lede {
  font-size: 1.2rem;
  color: #ddd6ee;
  margin: 0 0 32px;
  max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 760px) {
  .hero { min-height: 640px; align-items: flex-end; }
  .hero-bg img { object-position: 82% 30%; }
  .hero::after {
    background: linear-gradient(0deg, var(--night) 10%, rgba(27, 22, 48, 0.75) 55%, rgba(27, 22, 48, 0.1) 100%);
  }
  .hero-copy { padding: 200px 0 56px; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p { color: var(--text-muted); margin: 0; font-size: 1.1rem; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--night-2);
  border: 2px solid var(--night-3);
  padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  background: var(--bolt);
  color: #fff;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 3px 3px 0 var(--night);
}
.step h3 { font-size: 1.4rem; }
.step p { margin: 0; color: var(--text-muted); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* Chariot band */

.speed {
  background:
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.speed-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}
.speed h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.speed p { color: var(--text-muted); font-size: 1.1rem; }
.speed-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.speed-list li { padding-left: 30px; position: relative; }
.speed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: var(--gold);
  box-shadow: 2px 2px 0 var(--gold-deep);
}
.speed-art img { width: 100%; max-width: 560px; margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  .speed-art img { animation: gallop 0.9s steps(2) infinite; }
}
@keyframes gallop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 860px) {
  .speed-inner { grid-template-columns: 1fr; }
  .speed-art { order: -1; }
  .speed-art img { margin: 0 auto; max-width: 440px; }
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--night-3);
  border: 2px solid var(--night-3);
}
.feature { background: var(--night); padding: 32px 28px; }
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--gold);
}
.feature h3 { font-size: 1.3rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Meet Zoos */

.zoos {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(111, 149, 255, 0.18), transparent 60%),
    var(--night-2);
}
.zoos-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 56px;
  align-items: center;
}
.zoos-art img { width: 100%; max-width: 380px; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .zoos-art img { animation: float 4s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.zoos h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.zoos p { color: var(--text-muted); font-size: 1.1rem; }
.zoos blockquote {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(27, 22, 48, 0.6);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

@media (max-width: 860px) {
  .zoos-inner { grid-template-columns: 1fr; gap: 32px; }
  .zoos-art img { max-width: 260px; }
}

/* CTA */

.cta {
  text-align: center;
  padding: 96px 0;
  background:
    linear-gradient(180deg, var(--night) 0%, #3a2c55 70%, #6b4a5e 100%);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta p { color: #d7cfe6; font-size: 1.15rem; max-width: 520px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #120e22;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--night-2), var(--night));
}
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-hero p { color: var(--text-muted); margin: 0; }

.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  padding-top: 8px;
  scroll-margin-top: 88px;
}
.legal h3 { font-size: 1.15rem; margin-top: 28px; font-family: var(--font-body); font-weight: 700; }
.legal p, .legal li { color: #d5cfe4; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.toc {
  background: var(--night-2);
  border: 2px solid var(--night-3);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.toc p {
  font-family: var(--font-pixel);
  color: var(--gold);
  margin: 0 0 8px;
}
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- Loading screen ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--night);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-track {
  width: min(560px, 90vw);
  overflow: hidden;
  text-align: center;
}
.loader img {
  width: 220px;
  margin: 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .loader img { animation: charge 1.3s linear infinite; }
}
@keyframes charge {
  0% { transform: translateX(-160%); }
  100% { transform: translateX(160%); }
}
.loader p {
  font-family: var(--font-pixel);
  color: var(--gold);
  letter-spacing: 0.1em;
  margin: 18px 0 0;
}
.no-js .loader { display: none; }
