@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,650..900,65..100&family=Manrope:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --paper: #f8fbff;
  --paper-warm: #fff8f2;
  --ink: #0f1722;
  --muted: #4f5e6d;
  --soft: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(25, 38, 54, 0.15);
  --line-bright: rgba(255, 255, 255, 0.82);
  --shadow: rgba(38, 54, 76, 0.14);
  --shadow-deep: rgba(38, 54, 76, 0.22);
  --coral: #d86d56;
  --blue: #486fe8;
  --green: #2c8b72;
  --gold: #c6953f;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.95) 42%, rgba(255, 248, 241, 0.9) 100%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

.kraitos-hub::before,
.kraitos-hub::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.kraitos-hub::before {
  background:
    linear-gradient(90deg, rgba(17, 24, 34, 0.038) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 24, 34, 0.032) 1px, transparent 1px),
    linear-gradient(125deg, transparent 0 28%, rgba(255, 255, 255, 0.74) 28% 28.18%, transparent 28.18% 68%, rgba(214, 226, 241, 0.48) 68% 68.14%, transparent 68.14%);
  background-size: 84px 84px, 84px 84px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12) 74%, transparent);
}

.kraitos-hub::after {
  inset: 7vh 5vw;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 46%, rgba(255, 255, 255, 0.52)),
    linear-gradient(90deg, rgba(216, 109, 86, 0.08), transparent 36%, rgba(72, 111, 232, 0.1) 70%, rgba(44, 139, 114, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(20, 35, 55, 0.08),
    0 40px 150px rgba(47, 67, 92, 0.12);
  backdrop-filter: blur(30px) saturate(1.45);
  -webkit-backdrop-filter: blur(30px) saturate(1.45);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: 0 18px 44px var(--shadow);
  font-weight: 850;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 22px;
}

.hub-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 32px));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.3) 44%, rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.45);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(128, 145, 166, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 28px 86px rgba(28, 43, 64, 0.15);
  backdrop-filter: blur(42px) saturate(1.7);
  -webkit-backdrop-filter: blur(42px) saturate(1.7);
  transform: translateX(-50%);
  isolation: isolate;
}

.hub-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 7px;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.64)),
    linear-gradient(90deg, rgba(216, 109, 86, 0.08), rgba(72, 111, 232, 0.11), rgba(44, 139, 114, 0.08));
  pointer-events: none;
}

.hub-brand,
.hub-nav,
.hub-footer nav {
  display: flex;
  align-items: center;
}

.hub-brand,
.hub-nav,
.hub-button {
  position: relative;
  z-index: 1;
}

.hub-brand {
  gap: 10px;
  font-weight: 950;
}

.hub-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 243, 252, 0.62)),
    rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px rgba(28, 43, 64, 0.12);
  font-size: 0.95rem;
  font-weight: 950;
}

.hub-brand > span:last-child,
.hub-nav a,
.hub-button {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hub-nav {
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: #435161;
  font-size: 0.88rem;
  font-weight: 850;
}

.hub-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 7px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hub-nav a:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  transform: translateY(-1px);
}

.hub-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.66);
  color: #111b29;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 15px 38px rgba(28, 43, 64, 0.1);
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hub-button:hover {
  border-color: rgba(31, 45, 65, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 20px 54px rgba(28, 43, 64, 0.16);
  transform: translateY(-2px);
}

.hub-button.primary {
  border-color: rgba(16, 24, 39, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 241, 250, 0.82)),
    rgba(255, 255, 255, 0.8);
}

.hub-section {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: 126px max(30px, calc((100vw - 1120px) / 2)) 76px;
  overflow: hidden;
  scroll-margin-top: 92px;
}

.hub-section::before {
  content: "";
  position: absolute;
  inset: 18px max(14px, calc((100vw - 1210px) / 2));
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(17, 24, 34, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hub-hero {
  grid-template-columns: 1fr;
  align-items: center;
}

.hub-hero::after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - 1140px) / 2));
  bottom: 9vh;
  z-index: 0;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.04) 52%, rgba(255, 255, 255, 0.44)),
    repeating-linear-gradient(135deg, rgba(17, 24, 34, 0.07) 0 1px, transparent 1px 24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 40px 110px rgba(28, 43, 64, 0.1);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  opacity: 0.78;
  transform: rotate(-4deg);
}

.hub-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 760px;
}

.hub-hero .hub-copy {
  max-width: 1040px;
  padding-top: 56px;
}

.hub-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #b8513f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 26px rgba(31, 45, 65, 0.06);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  max-width: 100%;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 20px;
  font-size: 9.5rem;
  line-height: 0.82;
}

h2 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: 6.8rem;
  line-height: 0.86;
}

h1,
h2 {
  position: relative;
  isolation: isolate;
  color: #132033;
  background:
    linear-gradient(115deg, #132033 0%, #344255 34%, #172436 62%, #596879 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(19, 32, 51, 0.86);
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.72);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 28px rgba(30, 45, 64, 0.18),
    1px 0 0 rgba(72, 111, 232, 0.1),
    -1px 0 0 rgba(216, 109, 86, 0.08);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 16px 34px rgba(35, 49, 68, 0.14));
}

h1::before,
h2::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.4px rgba(255, 255, 255, 0.74);
  filter:
    drop-shadow(1px 0 0 rgba(72, 111, 232, 0.22))
    drop-shadow(-1px 0 0 rgba(216, 109, 86, 0.14))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.82));
}

h1::after,
h2::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -2;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 4px rgba(16, 24, 39, 0.2);
  filter: blur(0.25px);
}

.hub-copy p {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.58;
  font-weight: 640;
  overflow-wrap: break-word;
}

.hub-hero .hub-copy p {
  max-width: 830px;
}

.hub-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.company-proof {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(216, 109, 86, 0.18), rgba(72, 111, 232, 0.16), rgba(44, 139, 114, 0.16)),
    rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 68px rgba(28, 43, 64, 0.12);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.company-proof span {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.58);
}

.company-proof strong,
.company-proof em {
  display: block;
}

.company-proof strong {
  color: #172233;
  font-size: 0.96rem;
  font-weight: 950;
}

.company-proof em {
  color: #526170;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.48;
}

.project-view {
  isolation: isolate;
}

.project-view::after {
  content: "";
  position: absolute;
  inset: auto max(18px, calc((100vw - 1210px) / 2)) 18px auto;
  width: min(42vw, 520px);
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 34, 0.2), transparent);
}

.project-number {
  position: absolute;
  right: max(30px, calc((100vw - 1120px) / 2));
  top: 122px;
  z-index: 1;
  color: rgba(16, 24, 39, 0.055);
  font-family: var(--font-display);
  font-size: 13rem;
  line-height: 0.8;
  font-weight: 900;
}

.emploai-view .hub-kicker,
.emploai-view .preview-fallback span {
  color: var(--blue);
}

.hunt-view .hub-kicker,
.hunt-view .preview-fallback span {
  color: var(--green);
}

.project-preview {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 450px;
  display: grid;
  grid-template-rows: 42px 1fr;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(17, 24, 34, 0.04),
    0 42px 120px rgba(28, 43, 64, 0.16);
  backdrop-filter: blur(34px) saturate(1.46);
  -webkit-backdrop-filter: blur(34px) saturate(1.46);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 44%),
    linear-gradient(0deg, rgba(15, 23, 34, 0.08), transparent 34%);
  pointer-events: none;
}

.project-preview::after {
  content: "Click preview to open";
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #1b2838;
  box-shadow: 0 12px 34px rgba(28, 43, 64, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
  pointer-events: none;
}

.preview-bar {
  position: relative;
  z-index: 3;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(25, 38, 54, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(235, 243, 252, 0.58)),
    rgba(255, 255, 255, 0.72);
}

.preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(17, 24, 34, 0.22);
}

.preview-bar span:nth-child(1) {
  background: var(--coral);
}

.preview-bar span:nth-child(2) {
  background: var(--gold);
}

.preview-bar span:nth-child(3) {
  background: var(--green);
}

.preview-bar strong {
  min-width: 0;
  margin-left: 8px;
  color: #536273;
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-preview iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 408px;
  border: 0;
  background: #ffffff;
  pointer-events: none;
}

.preview-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.preview-hit:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.preview-fallback {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 24px 120px 24px 24px;
  background:
    linear-gradient(0deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0.82) 72%, transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.preview-fallback span {
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preview-fallback strong {
  color: #172233;
  font-size: 1.26rem;
  line-height: 1.05;
  font-weight: 950;
}

.preview-fallback em {
  max-width: 350px;
  color: #526170;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 650;
}

.project-view:hover .project-preview {
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 48px 130px rgba(28, 43, 64, 0.2);
  transform: translateY(-4px);
}

.hub-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(30px, calc((100vw - 1120px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.62);
  color: var(--muted);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.hub-footer p {
  margin: 0;
}

.hub-footer nav {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 850;
}

.hub-footer a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 7.4rem;
  }

  h2 {
    font-size: 5.3rem;
  }

  .project-number {
    font-size: 10.5rem;
  }

  .preview-fallback strong {
    font-size: 2.35rem;
  }
}

@media (max-width: 980px) {
  .hub-nav {
    display: none;
  }

  .hub-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-number {
    top: 104px;
  }

  .project-preview {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .kraitos-hub::after {
    inset: 7vh 14px;
  }

  .hub-header {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    gap: 10px;
    transform: none;
  }

  .hub-brand {
    font-size: 0.96rem;
  }

  .hub-section {
    width: 100%;
    min-height: auto;
    padding: 104px 20px 66px;
  }

  h1 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .hub-section::before {
    inset: 12px;
  }

  .hub-hero::after {
    right: -40px;
    bottom: 32px;
    width: 270px;
    height: 270px;
    opacity: 0.45;
  }

  .hub-copy p {
    max-width: 100%;
    font-size: 1.06rem;
  }

  .hub-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .company-proof {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .company-proof span {
    min-height: 0;
    gap: 8px;
    padding: 16px;
  }

  .hub-button {
    width: 100%;
  }

  .project-number {
    right: 20px;
    top: 92px;
    font-size: 7rem;
  }

  .project-preview {
    min-height: 280px;
    padding: 30px;
  }

  .project-preview {
    grid-template-rows: 38px 1fr;
    padding: 0;
  }

  .project-preview iframe {
    min-height: 250px;
  }

  .preview-fallback {
    padding: 18px;
  }

  .project-preview::after {
    display: none;
  }

  .hub-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 20px;
  }

  .hub-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .preview-fallback strong {
    font-size: 1.75rem;
  }

  .preview-fallback em {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hub-nav a,
  .hub-button,
  .project-preview {
    transition: none;
  }
}
