/* ═══════════════════════════════════════════════════════════
   Orkezta — styles.css
   Edit colors and spacing here; everything uses these tokens.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0b14;
  --bg-alt:    #0f1120;
  --surface:   #151830;
  --surface-2: #1b1f3d;
  --border:    rgba(140, 150, 255, 0.14);
  --text:      #eef0ff;
  --text-sub:  #dde2f5;
  --text-dim:  #a5abce;
  --violet:    #7c6cff;
  --teal:      #38e0c8;
  --grad:      linear-gradient(120deg, #7c6cff, #38e0c8);
  --radius:    18px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1120px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 0.45em; }

a { color: var(--teal); text-decoration: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-sub { color: var(--text-sub); max-width: 620px; margin-bottom: 3rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--grad);
  color: #07080f;
  box-shadow: 0 8px 30px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(56, 224, 200, 0.4); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--violet); transform: translateY(-2px); }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-large { padding: 1.05rem 2.6rem; font-size: 1.15rem; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-mark { width: 30px; height: 30px; }
.nav-inner .logo { grid-column: 1; justify-self: start; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; justify-self: center; grid-column: 2; }
.nav-links a { color: var(--text-sub); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1rem; justify-self: end; grid-column: 3; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 5rem 0 9rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-1 { width: 680px; height: 680px; background: #4a3dbb; top: -200px; right: -80px; opacity: 0.55; }
.orb-2 { width: 520px; height: 520px; background: #0e6e63; bottom: -220px; left: -160px; animation-delay: -7s; opacity: 0.4; }
.orb-3 { width: 440px; height: 440px; background: #2c2170; top: 30%; left: 22%; animation-delay: -11s; opacity: 0.45; animation-duration: 18s; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 20, 0.55), transparent 28%, transparent 68%, var(--bg) 100%);
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 150, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.ringc {
  fill: none;
  stroke: rgba(140, 150, 255, 0.20);
  stroke-width: 1;
  stroke-dasharray: 3 10;
}
.rs3 .ringc { stroke: rgba(140, 150, 255, 0.13); }
.ringspin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 40s linear infinite;
}
.rs2 { animation-duration: 64s; animation-direction: reverse; }
.rs3 { animation-duration: 95s; }
.orb-dot.t { fill: var(--teal); filter: drop-shadow(0 0 7px var(--teal)); }
.orb-dot.v { fill: var(--violet); filter: drop-shadow(0 0 8px var(--violet)); }
.bal { opacity: 0; }
.floaters circle {
  fill: var(--violet);
  opacity: 0.5;
  transform-box: fill-box;
  animation: floaty 9s ease-in-out infinite alternate;
}
.floaters circle:nth-child(odd) { fill: var(--teal); }
.floaters circle:nth-child(2n) { animation-duration: 13s; animation-delay: -5s; }
.floaters circle:nth-child(3n) { animation-duration: 16s; animation-delay: -8s; }
@keyframes floaty {
  from { transform: translateY(-14px); opacity: 0.2; }
  to   { transform: translateY(16px);  opacity: 0.75; }
}
.badge-mark { width: 15px; height: 15px; flex-shrink: 0; }
.mob-dots { display: none; }
@media (max-width: 1024px) {
  .ringset { display: none; }
  .mob-dots { display: block; }
  .mob-dots circle {
    transform-box: fill-box;
    animation: floaty 11s ease-in-out infinite alternate;
  }
  .mob-dots circle:nth-child(2) { animation-duration: 14s; animation-delay: -6s; }
}

.hero-inner { position: relative; max-width: 800px; }
.hero-sub { color: var(--text-sub); font-size: 1.18rem; max-width: 620px; margin: 1.6rem 0 2.4rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--text-dim); font-size: 0.9rem; }

/* ─── Service cards ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 108, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 108, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.card p { color: var(--text-dim); font-size: 0.96rem; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(124, 108, 255, 0.18), rgba(56, 224, 200, 0.12));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Steps ─── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(56, 224, 200, 0.4); }
.step-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  display: block;
  margin-bottom: 0.6rem;
}
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ─── Workato section ─── */
.workato-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.workato-copy > p { color: var(--text-sub); max-width: 520px; }
.check-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.7rem; }
.check-list li { padding-left: 2rem; position: relative; color: var(--text-dim); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307080f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--grad);
}

/* Orbit visual */
.orbit-box {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}
.core {
  position: absolute;
  inset: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 32px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 80px rgba(124, 108, 255, 0.35);
}
.core svg { width: 62px; height: 62px; }
.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(140, 150, 255, 0.18);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit-b { inset: 13%; animation-duration: 20s; animation-direction: reverse; }
.orbit-c { inset: 26%; animation-duration: 15s; }
.orbit-d { inset: 39%; animation-duration: 11s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  animation: counterspin 26s linear infinite;
}
.orbit-b .chip { animation-duration: 20s; animation-direction: reverse; color: var(--violet); }
.orbit-c .chip { animation-duration: 15s; }
.orbit-d .chip { animation-duration: 11s; animation-direction: reverse; color: var(--violet); }
@keyframes counterspin { to { transform: translateX(-50%) rotate(-360deg); } }

/* ─── Rekode product section ─── */
.section-product {
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(124, 108, 255, 0.10), transparent 60%),
    radial-gradient(700px 380px at 10% 100%, rgba(56, 224, 200, 0.06), transparent 60%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  background: rgba(124, 108, 255, 0.07);
}
.product-badge span {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 0.7rem;
  border-right: 1px solid var(--border);
}
.pipeline {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 3rem 0 1rem;
}
.pipe-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.7rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}
.pipe-node small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}
.pipe-node.pipe-core {
  font-size: 1.25rem;
  border-color: rgba(124, 108, 255, 0.5);
  box-shadow: 0 0 46px rgba(124, 108, 255, 0.25);
  background: linear-gradient(140deg, rgba(124, 108, 255, 0.16), rgba(56, 224, 200, 0.08)), var(--surface);
}
.pipe-flow {
  flex: 1;
  min-width: 36px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 8px, transparent 8px 16px);
  animation: flowmove 1.1s linear infinite;
  opacity: 0.6;
}
@keyframes flowmove { to { background-position: 16px 0; } }
.rekode-steps { margin-top: 2.4rem; }
.product-stats {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.product-cta { margin-top: 2.4rem; text-align: center; }
.roadmap-note {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 1.1rem;
  opacity: 0.8;
}

/* ─── Training ─── */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.training-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.training-card:hover { transform: translateY(-5px); border-color: rgba(56, 224, 200, 0.4); }
.training-card h3 { margin-bottom: 0; }
.training-card p { color: var(--text-dim); font-size: 0.93rem; flex: 1; }
.t-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.t-workato  { color: var(--teal);   background: rgba(56, 224, 200, 0.08); }
.t-arch     { color: var(--violet); background: rgba(124, 108, 255, 0.10); }
.t-ai       { color: #ff9df5;       background: rgba(255, 157, 245, 0.08); }
.t-workshop { color: #ffc76b;       background: rgba(255, 199, 107, 0.08); }
.t-meta {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.75;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.training-cta { margin-top: 2.2rem; color: var(--text); }

/* ─── Why grid ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.why-item {
  padding: 1.8rem;
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
  border-image-slice: 0 0 0 1;
  border-left-width: 2px;
  border-left-style: solid;
  background: linear-gradient(90deg, rgba(124, 108, 255, 0.06), transparent 60%);
}
.why-item p { color: var(--text-dim); font-size: 0.95rem; }

/* ─── CTA ─── */
.cta-panel {
  position: relative;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(3rem, 7vw, 5rem) 2rem;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 60%;
  background: var(--grad);
  filter: blur(120px);
  opacity: 0.22;
}
.cta-panel h2, .cta-panel p, .cta-panel a { position: relative; }
.cta-panel > p { color: var(--text-sub); max-width: 540px; margin: 0 auto 2.2rem; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.footer-inner { display: grid; gap: 0.6rem; justify-items: center; }
.logo-footer { font-size: 1.15rem; }
.footer p { color: var(--text-dim); font-size: 0.92rem; }
.copyright { opacity: 0.6; }

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Mobile ─── */
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    background: rgba(10, 11, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.6rem 0 2rem;
    gap: 1.3rem;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .workato-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { gap: 1.8rem; }
  .pipeline { flex-direction: column; }
  .pipe-flow {
    flex: none;
    width: 2px;
    min-width: 2px;
    height: 36px;
    background: repeating-linear-gradient(180deg, var(--violet) 0 8px, transparent 8px 16px);
    animation: flowmove-v 1.1s linear infinite;
  }
  @keyframes flowmove-v { to { background-position: 0 16px; } }
}
