/* Prophetek Global
   Palette sampled from cerberus.com: navy, brand blue, cyan, white, light grey. */

:root {
  --navy:      #142278;
  --blue:      #0050F6;
  --cyan:      #00D9FF;
  --white:     #FFFFFF;
  --grey-50:   #F1F1F1;
  --grey-700:  #4A4C4C;

  --bg:        #060a2e;
  --bg-deep:   #03051a;
  --ink:       var(--white);
  --ink-soft:  #b9c2ee;
  --line:      #243089;
  --cyan-hi:   #5CE8FF;
  --error:     #b3122b;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 10;
  --z-skip: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 2px; }
.light :focus-visible { outline-color: var(--blue); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-skip);
  background: var(--cyan); color: var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(3,5,26,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  font-weight: 700; font-size: 1.625rem; letter-spacing: -0.03em; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
}
.brand span {
  font-size: .6875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
}

nav ul { display: flex; gap: clamp(18px, 3.2vw, 44px); }
nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink);
}
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
nav a:hover::after, nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Dark stage (home hero + inner page heads) ---------- */
.hero, .page-head {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(90% 75% at 85% 15%, #0a2fb8 0%, transparent 62%),
    radial-gradient(70% 60% at 100% 100%, #5a0f6e99 0%, transparent 60%),
    var(--bg);
}
#streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero::after, .page-head::after { /* keeps the left calm so text always reads */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,5,26,.85) 0%, rgba(3,5,26,.35) 55%, transparent 80%);
}

.hero {
  flex: 1; min-height: 520px;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 56px;
}
.hero-inner { position: relative; }

h1 {
  font-weight: 600;
  font-size: clamp(2.25rem, 1.2rem + 3.8vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 14em;
}
h1 span { display: block; }
h1 .accent { color: var(--cyan); }

/* Hero buttons: same three destinations as the header */
.tabs {
  display: flex; flex-direction: column; gap: 12px;
  width: min(100%, 340px);
  margin-top: clamp(36px, 5vw, 64px);
}
.tabs a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 8px 8px 8px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.005em; color: var(--white);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .25s var(--ease);
}
.tabs a::after {            /* arrow badge */
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 20px;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.tabs a:hover { background-color: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.tabs a:hover::after { background-color: var(--navy); transform: translateX(3px); }
.tabs a:active { transform: scale(.985); }
.tabs a:focus-visible { outline-offset: 3px; border-radius: 999px; }

/* Desktop: headline left, buttons in a right column */
@media (min-width: 1000px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; column-gap: clamp(48px, 6vw, 120px); }
  .tabs { margin-top: 0; padding-bottom: .4rem; }
}

/* ---------- Inner page head ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 112px); }
.page-lede {
  margin-top: 24px; max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.4rem); line-height: 1.45; color: var(--ink-soft);
}

/* ---------- Light content sections ---------- */
.light { background: var(--white); color: var(--navy); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { padding-top: 0; }

.split { display: grid; gap: clamp(20px, 4vw, 40px); }
.split > h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.prose p { color: var(--grey-700); max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose .big {
  color: var(--navy); font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
  line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 30ch;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 2fr; } }

.cols { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.cols > li { border-top: 1.5px solid var(--navy); padding: 24px 0 40px; }
.cols h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.cols p { margin-top: 12px; color: var(--grey-700); max-width: 40ch; }
.cols .num { display: block; margin-bottom: 20px; font-size: .9375rem; font-weight: 700; color: var(--blue); }

.cta { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 104px); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.cta h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

/* Definition rows + bullet points */
.defs { display: grid; border-top: 1.5px solid var(--navy); }
.defs > div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid #d5d8e6; }
.defs dt { font-weight: 700; font-size: .9375rem; color: var(--blue); }
.defs dd { margin: 0; font-size: 1.125rem; color: var(--navy); font-weight: 500; }
@media (min-width: 640px) { .defs > div { grid-template-columns: 160px 1fr; align-items: baseline; } }

.points { margin-top: 20px; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 22px; color: var(--grey-700); font-size: .9375rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1.5px; background: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  max-width: 100%; padding: 18px 28px;
  background: var(--blue); color: var(--white);
  font: inherit; font-weight: 700; font-size: clamp(1rem, .9rem + .6vw, 1.125rem); letter-spacing: -0.01em;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn span { overflow-wrap: anywhere; }
.btn svg { flex: none; transition: transform .3s var(--ease); }
.btn:hover { background: var(--cyan); color: var(--navy); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: clamp(36px, 6vw, 72px); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact-side h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.contact-side p { margin-top: 16px; color: var(--grey-700); max-width: 36ch; }
.contact-side .direct { margin-top: 32px; font-size: .9375rem; }
.contact-side .direct a { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 1.125rem; color: var(--blue); border-bottom: 1.5px solid currentColor; overflow-wrap: anywhere; }
.contact-side .direct a:hover { color: var(--navy); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.field input {
  width: 100%; height: 58px; padding: 0 18px;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--grey-50);
  border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input::placeholder { color: #6b6e6e; }
.field input:hover { border-color: #c9ccd6; }
.field input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(0,80,246,.15); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .err { font-size: .875rem; font-weight: 600; color: var(--error); }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: .8125rem; color: var(--grey-700); max-width: 52ch; }

.success { padding: 32px; background: var(--grey-50); border-radius: 16px; }
.success h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.success p { margin-top: 10px; color: var(--grey-700); }
.success[hidden], .form[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 26px; color: var(--ink-soft); font-size: .8125rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.foot a { color: var(--ink); font-weight: 600; }
.foot a:hover { color: var(--cyan); }

/* ---------- Entrance (enhances visible default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  h1 span, .page-head h1, .page-lede { animation: rise 1.1s var(--ease) both; }
  h1 span:nth-child(2) { animation-delay: .12s; }
  h1 span:nth-child(3) { animation-delay: .24s; }
  .page-lede { animation-delay: .14s; }
  .tabs { animation: rise 1.1s var(--ease) .4s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .tabs { width: 100%; }
  .brand { font-size: 1.25rem; gap: 4px; }
  .brand span { display: none; }
  nav ul { gap: 18px; }
  .form .btn, .cta .btn { width: 100%; }
  .hero::after, .page-head::after { background: linear-gradient(180deg, rgba(3,5,26,.6), rgba(3,5,26,.25)); }
  .foot { flex-direction: column; align-items: flex-start; }
}
