:root {
  --purple: #5741dc;
  --purple-light: #6d56f0;
  --purple-hero: #5741dc;
  --purple-glow: rgba(87, 65, 220, 0.35);
  --text: #101114;
  --muted: #5c5c66;
  --border: #e8e7ed;
  --surface: #f6f5f9;
  --radius: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --shadow-sm: 0 2px 8px rgba(16, 17, 20, 0.04);
  --shadow-md: 0 12px 40px rgba(87, 65, 220, 0.1);
  --shadow-hover: 0 16px 48px rgba(87, 65, 220, 0.14);
  --kraken-logo: url("https://assets-cms.kraken.com/images/51n36hrp/facade/4d67f3f4eac6aa0702c6ae62b1e0b1abc41b10cd-650x155.svg");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.page-enter {
  animation: pageIn 0.55s var(--ease-out) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noticeSlide {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body.page-enter,
  .reveal,
  .hero-stagger > *,
  .notice {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

a {
  color: var(--purple);
}

.notice {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  animation: noticeSlide 0.5s var(--ease-out) both;
}

.notice em {
  font-style: normal;
  color: var(--text);
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.brand:hover img {
  opacity: 0.85;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.back-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    background 0.22s ease,
    border-color 0.22s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-radius: 12px;
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: 0 10px 28px var(--purple-glow);
}

.btn-outline {
  background: #f7f7fa;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 12px;
}

.btn-outline:hover {
  border-color: rgba(71, 59, 206, 0.35);
  background: rgba(71, 59, 206, 0.04);
}

.btn-white {
  background: #fff;
  color: var(--purple);
}

.btn-block {
  width: 100%;
}

.page-home:not(.page-kraken) .hero-wrap {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(87, 65, 220, 0.09), transparent),
    linear-gradient(180deg, rgba(87, 65, 220, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding-bottom: 44px;
}

.page-home:not(.page-kraken) .hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px 0;
}

.hero-wrap {
  padding: 8px 24px 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.page-kraken .hero-wrap {
  padding: 0 0 0;
  max-width: none;
}

.hero {
  margin: 0;
  padding: 0;
}

.hero-stagger > * {
  animation: fadeUp 0.7s var(--ease-out) both;
}

.hero-stagger h1 {
  animation-delay: 0.05s;
}
.hero-stagger .hero-lead {
  animation-delay: 0.12s;
}
.hero-stagger .perks {
  animation-delay: 0.2s;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 20ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 28px;
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.perk {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.perk:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 64px;
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar {
    display: none;
  }
}

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    padding-left 0.2s var(--ease-out);
}

.sidebar a:hover {
  color: var(--purple);
  padding-left: 16px;
}

.sidebar a.active {
  color: var(--purple);
  border-left-color: var(--purple);
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.search {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%235c5c7a'%3E%3Cpath d='M12.5 11h-.79l-.28-.27A5.47 5.47 0 0 0 13 6.5 5.5 5.5 0 1 0 7.5 12c1.3 0 2.49-.45 3.43-1.2l.27.28v.79l4.25 4.25 1.5-1.5L12.5 11zm-5 0C5.01 11 3 8.99 3 6.5S5.01 2 7.5 2 12 4.01 12 6.5 9.99 11 7.5 11z'/%3E%3C/svg%3E")
    16px center no-repeat;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.search:focus {
  outline: none;
  border-color: rgba(71, 59, 206, 0.45);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(71, 59, 206, 0.12);
}

.count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  background: #fff;
  scroll-margin-top: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.25s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(71, 59, 206, 0.2);
}

.job-card.hidden {
  display: none;
}

.job-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.job-meta .dept {
  color: var(--purple);
  font-weight: 600;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(71, 59, 206, 0.1);
  color: var(--purple);
  vertical-align: middle;
}

.job-summary {
  font-size: 1rem;
  margin: 0 0 20px;
}

.job-body h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 10px;
}

.job-body h3:first-child {
  margin-top: 0;
}

.job-body p {
  margin: 0 0 12px;
  color: #333;
}

.job-body ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  color: #333;
}

.job-body li {
  margin-bottom: 6px;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.values {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px;
}

.values-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.values h2 {
  font-size: 1.5rem;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card strong {
  display: block;
  margin-bottom: 8px;
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cta-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.cta-inner {
  background: linear-gradient(120deg, var(--purple), var(--purple-light), #7c6cff);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 60px var(--purple-glow);
}

.cta-inner h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.cta-inner p {
  margin: 0;
  opacity: 0.92;
  max-width: 42ch;
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.site-footer a {
  font-weight: 500;
}

/* ——— Application page ——— */
body.page-apply {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(71, 59, 206, 0.1), transparent),
    #fafafe;
}

.apply-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.apply-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.apply-lead {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.step {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s var(--ease-out);
}

.step.active {
  background: rgba(71, 59, 206, 0.1);
  border-color: rgba(71, 59, 206, 0.35);
  color: var(--purple);
  box-shadow: 0 4px 12px rgba(71, 59, 206, 0.12);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.field-row .field {
  margin-bottom: 0;
}

@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.control,
.field input:not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%235c5c7a'%3E%3Cpath d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.5;
}

.control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(71, 59, 206, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 59, 206, 0.1);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.file-field input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease-out);
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: rgba(71, 59, 206, 0.45);
  background: rgba(71, 59, 206, 0.04);
}

.file-drop strong {
  font-size: 14px;
  color: var(--purple);
}

.file-drop span {
  font-size: 13px;
  color: var(--muted);
}

.consent {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.55;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 12px;
  animation: successPop 0.5s var(--ease-out) both;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(71, 59, 206, 0.12);
  color: var(--purple);
  font-size: 28px;
  line-height: 56px;
}

.form-success h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.form-success p {
  color: var(--muted);
  margin: 0 0 8px;
}

form.is-hidden {
  display: none;
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
  font-size: 14px;
  line-height: 1.45;
}

.form-error[hidden] {
  display: none;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ——— Embed mode (?embed=1) for pre-landing iframe ——— */
html.page-embed .notice,
html.page-embed .site-header,
html.page-embed .kraken-topbar,
html.page-embed .hero-wrap,
html.page-embed .intro-grid,
html.page-embed .sidebar,
html.page-embed .values,
html.page-embed .cta-block,
html.page-embed .site-footer {
  display: none !important;
}

html.page-embed .layout {
  grid-template-columns: 1fr;
  max-width: 100%;
  padding: 12px 16px 24px;
  gap: 0;
}

html.page-embed .job-body {
  display: none;
}

html.page-embed .job-card {
  padding: 18px 20px;
  margin-bottom: 12px;
}

html.page-embed .job-actions .btn-outline {
  display: none;
}

html.page-embed body {
  background: #f5f5f7;
}

/* ——— Pre-landing (paid traffic) ——— */
body.page-prelanding {
  margin: 0;
  min-height: 100vh;
  background: #08070f;
  color: #f2f0ff;
}

.prelanding-split {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  min-height: 100vh;
}

@media (max-width: 960px) {
  .prelanding-split {
    grid-template-columns: 1fr;
  }
  .prelanding-embed {
    min-height: 65vh;
  }
}

.prelanding-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(88, 65, 216, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(134, 239, 172, 0.06), transparent),
    linear-gradient(180deg, #12101f 0%, #08070f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.prelanding-ad-inner {
  width: 100%;
  max-width: 380px;
}

.prelanding-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 36px;
}

.prelanding-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
}

.prelanding-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.prelanding-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prelanding-brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #86efac;
}

.prelanding-ad h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 700;
}

.prelanding-ad .sub {
  color: #9d9bb8;
  line-height: 1.6;
  margin: 0 0 20px;
  font-size: 0.98rem;
}

.prelanding-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.prelanding-trust span {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8b6d0;
}

.prelanding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.prelanding-actions .btn {
  justify-content: center;
  padding: 13px 16px;
  font-size: 14px;
}

.prelanding-actions .btn-primary {
  box-shadow: 0 6px 24px rgba(71, 59, 206, 0.4);
}

.prelanding-actions .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #eceaff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.prelanding-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.prelanding-creative {
  margin-top: 8px;
}

.prelanding-video-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 16 / 9;
  max-height: 140px;
}

.prelanding-video-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(71, 59, 206, 0.35), rgba(20, 18, 35, 0.9));
}

.prelanding-video-placeholder .play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.prelanding-creative-caption {
  margin: 10px 0 0;
  font-size: 11px;
  color: #6b6988;
  text-align: center;
}

.prelanding-embed {
  display: flex;
  flex-direction: column;
  background: #e8e8ed;
  min-height: 100vh;
  box-shadow: inset 8px 0 32px rgba(0, 0, 0, 0.06);
}

.prelanding-window-chrome {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: #f4f4f6;
  border-bottom: 1px solid #ddd;
}

.prelanding-window-chrome .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.prelanding-window-chrome .dot:nth-child(2) {
  background: #febc2e;
}

.prelanding-window-chrome .dot:nth-child(3) {
  background: #28c840;
}

.prelanding-embed-bar {
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #3d3d50;
  background: #fff;
  border-bottom: 1px solid #dcdce4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prelanding-embed-bar a {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

.prelanding-embed-bar a:hover {
  text-decoration: underline;
}

.prelanding-embed iframe {
  flex: 1;
  width: 100%;
  border: 0;
  min-height: 480px;
  background: #f5f5f7;
}

/* ——— Kraken.com/careers visual system ——— */
.page-kraken {
  background: var(--surface);
  color: var(--text);
}

.kraken-topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.kraken-topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
}

.kraken-topbar .header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.kraken-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.kraken-careers-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.kraken-hero-banner {
  background: var(--purple-hero);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 48px) clamp(32px, 5vw, 48px);
  text-align: center;
  color: #fff;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.kraken-hero-banner h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 auto 16px;
  max-width: 16ch;
}

.kraken-hero-banner__sub {
  margin: 0 auto 32px;
  max-width: 46ch;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.kraken-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.kraken-hero-mark {
  width: clamp(88px, 14vw, 120px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.25));
}

.btn-kraken-dark {
  background: #000;
  color: #fff;
  border-radius: 12px;
  box-shadow: none;
}

.btn-kraken-dark:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-kraken-soft {
  background: #f7f7fa;
  color: var(--text);
  border-radius: 12px;
  box-shadow: none;
}

.btn-kraken-soft:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kraken-content-grid {
  display: grid;
  gap: 40px 56px;
  margin-bottom: 56px;
}

@media (min-width: 900px) {
  .kraken-content-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.kraken-content-main h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 22ch;
  color: var(--text);
}

.kraken-content-main p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
}

.kraken-content-aside h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.kraken-content-aside h3:not(:first-child) {
  margin-top: 28px;
}

.kraken-content-aside p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.kraken-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .kraken-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kraken-facts li {
  font-size: 13px;
  line-height: 1.45;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}

.kraken-facts strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}

.kraken-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.kraken-how {
  margin-bottom: 56px;
}

.kraken-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .kraken-step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.kraken-step-list li {
  font-size: 14px;
  line-height: 1.55;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
}

.kraken-step-list strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}

.kraken-hero-banner--cta {
  margin-bottom: 0;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.kraken-hero-banner--cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.kraken-hero-banner--cta p {
  margin: 0 auto 28px;
  max-width: 44ch;
  opacity: 0.92;
  line-height: 1.55;
}

.kraken-footer {
  text-align: center;
  padding: 24px 24px 40px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.kraken-footer a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.kraken-footer a:hover {
  text-decoration: underline;
}

.kraken-band {
  margin-bottom: 56px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.kraken-culture-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px 24px;
}

@media (min-width: 640px) {
  .kraken-culture-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kraken-culture-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.kraken-culture-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.kraken-hero-lead-extra {
  margin: -8px auto 24px;
  max-width: 40ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.kraken-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -24px auto 48px;
  max-width: var(--max);
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.kraken-stat {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.kraken-media-block {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: 56px;
}

@media (min-width: 880px) {
  .kraken-media-block {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .kraken-media-block.is-reverse .kraken-media-copy {
    order: 2;
  }
}

.kraken-media-visual {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.kraken-media-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.kraken-media-copy h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}

.kraken-media-copy p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.kraken-hire-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .kraken-hire-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .kraken-hire-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kraken-hire-grid li {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.kraken-hire-grid strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text);
}

.kraken-hire-grid span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.kraken-hire-grid .step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.kraken-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.kraken-role-chips a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

.kraken-role-chips a:hover {
  border-color: rgba(87, 65, 220, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.kraken-note {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 0;
  line-height: 1.5;
}

.page-prelanding-full.page-kraken .btn-outline {
  background: #f7f7fa;
  color: var(--text);
  border: 1px solid var(--border);
}

.page-prelanding-full.page-kraken .btn-outline:hover {
  background: #fff;
  border-color: rgba(87, 65, 220, 0.35);
}

.page-home .site-header {
  max-width: var(--max);
  background: var(--surface);
}

.page-home .hero-wrap .kraken-hero-banner {
  margin-bottom: 0;
}

.page-home .hero-wrap .kraken-hero-banner h1 {
  max-width: 14ch;
}

.page-home .intro-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.page-apply {
  background: var(--surface);
}

.page-apply .site-header {
  background: var(--surface);
}

/* ——— Full pre-landing (no iframe) ——— */
body.page-prelanding-full:not(.page-kraken) {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(71, 59, 206, 0.2), transparent),
    #08070f;
}

body.page-prelanding-full.page-kraken {
  background: var(--surface);
}

.prelanding-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prelanding-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.prelanding-hero {
  padding: clamp(24px, 6vw, 48px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.prelanding-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 700;
}

.prelanding-hero-lead {
  color: #9d9bb8;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 28px;
}

.prelanding-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.prelanding-hero-note {
  font-size: 13px;
  color: #6b6988;
  margin: 0;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.page-prelanding-full:not(.page-kraken) .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #eceaff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.prelanding-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #f2f0ff;
}

.prelanding-about {
  padding: 40px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.prelanding-about-body {
  max-width: 640px;
}

.prelanding-about-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #9d9bb8;
}

.prelanding-about-body p:last-child {
  margin-bottom: 24px;
}

.prelanding-about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .prelanding-about-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.prelanding-about-facts li {
  font-size: 13px;
  color: #9d9bb8;
  line-height: 1.45;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.prelanding-about-facts strong {
  display: block;
  color: #e8e6ff;
  font-size: 14px;
  margin-bottom: 4px;
}

.prelanding-steps {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 40px;
}


.prelanding-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .prelanding-step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.prelanding-step-list li {
  font-size: 14px;
  color: #9d9bb8;
  line-height: 1.55;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.prelanding-step-list strong {
  display: block;
  color: #e8e6ff;
  margin-bottom: 6px;
  font-size: 15px;
}

.prelanding-roles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.prelanding-link {
  font-size: 14px;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
}

.prelanding-link:hover {
  text-decoration: underline;
}

.prelanding-role-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .prelanding-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prelanding-role-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}

.prelanding-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 92, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.prelanding-role-card.is-highlight {
  border-color: rgba(134, 239, 172, 0.45);
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.2);
}

.prelanding-role-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.prelanding-role-meta {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
}

.prelanding-role-teaser {
  margin: 0 0 16px;
  font-size: 14px;
  color: #9d9bb8;
  line-height: 1.5;
}

.prelanding-role-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.prelanding-role-links a {
  color: #c4b5fd;
  text-decoration: none;
}

.prelanding-role-links a.accent {
  color: #fff;
}

.prelanding-role-links a:hover {
  text-decoration: underline;
}

.prelanding-final {
  margin-top: 48px;
}

.prelanding-final-inner {
  text-align: center;
  padding: 40px 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--purple), var(--purple-light));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  box-shadow: 0 20px 56px var(--purple-glow);
}

.prelanding-final-inner h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.prelanding-final-inner p {
  margin: 0 auto 24px;
  max-width: 42ch;
  opacity: 0.92;
  line-height: 1.55;
  font-size: 15px;
}

.prelanding-footer {
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 13px;
  color: #6b6988;
}

.prelanding-footer a {
  color: #a78bfa;
  font-weight: 500;
}
