/* ============================================================
   Kraken Strategy — monochrome, minimal, circuit-aware design
   ============================================================ */

/* ---------- Fonts (Iosevka, bundled) ---------- */
@font-face {
  font-family: "Iosevka";
  src: url("fonts/Iosevka/Iosevka-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka";
  src: url("fonts/Iosevka/Iosevka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka";
  src: url("fonts/Iosevka/Iosevka-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka";
  src: url("fonts/Iosevka/Iosevka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka";
  src: url("fonts/Iosevka/Iosevka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #131316;
  --surface-2: #17171b;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --ink: #f4f4f5;
  --ink-dim: #a1a1aa;
  --ink-mute: #6b6b73;
  --white: #ffffff;
  --black: #050506;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Iosevka", ui-monospace, monospace;
  --font-body: "Iosevka", ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Background texture ---------- */
.bg-network {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.eyebrow--light { color: var(--ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn--solid {
  background: var(--white);
  color: var(--black);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,255,255,0.18); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--link {
  padding: 14px 4px;
  color: var(--ink-dim);
}
.btn--link:hover { color: var(--white); }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand__logo {
  height: 44px;
  width: auto;
  flex: none;
  filter: invert(1);
  transition: filter 0.3s var(--ease);
}
.brand:hover .brand__logo { filter: invert(1) drop-shadow(0 0 12px rgba(255,255,255,0.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 0.95; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  color: var(--ink-mute);
  font-weight: 500;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links > a:not(.btn) {
  font-size: 0.92rem;
  color: var(--ink-dim);
  font-weight: 400;
  position: relative;
  transition: color 0.25s;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--white); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
main { flex: 1 0 auto; }
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 6px 0 24px;
  text-transform: uppercase;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, var(--white), var(--ink-mute));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lede {
  font-size: 1.12rem;
  color: var(--ink-dim);
  max-width: 48ch;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__logo {
  display: block;
  height: clamp(340px, 56vh, 540px);
  width: auto;
  max-width: 100%;
  filter: invert(1) drop-shadow(0 0 48px rgba(255, 255, 255, 0.10));
  /* promote to its own compositor layer so the (expensive) invert+drop-shadow
     filter rasterizes once and the transform animates as a cheap texture move */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}

/* marquee */
.hero__marquee {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.marquee__track .dot { color: var(--white); opacity: 0.5; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section__head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section__lede {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-dim);
}

/* ---------- Capabilities cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 6px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.card p { color: var(--ink-dim); font-size: 0.96rem; }
.card__list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border: 1px solid var(--ink-mute);
  border-radius: 2px;
  transform: rotate(45deg);
}
.card--cta {
  background: linear-gradient(160deg, var(--white), #d4d4d8);
  color: var(--black);
  justify-content: center;
  align-items: flex-start;
}
.card--cta h3, .card--cta p { color: var(--black); }
.card--cta .btn--ghost { border-color: rgba(0,0,0,0.25); color: var(--black); }
.card--cta .btn--ghost:hover { border-color: var(--black); background: rgba(0,0,0,0.06); }

/* ---------- Approach steps ---------- */
.approach { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 32px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.step:first-child { border-left: none; padding-left: 0; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.step__num::before {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--white);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step p { color: var(--ink-dim); font-size: 0.96rem; }

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.about__copy p {
  color: var(--ink-dim);
  margin-bottom: 18px;
  font-size: 1.04rem;
}
.about__values {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.value {
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
}
.value strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.value span { color: var(--ink-mute); font-size: 0.92rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 36px 28px;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat__label {
  font-size: 0.86rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid var(--line);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__meta {
  margin-top: 40px;
  display: grid;
  gap: 22px;
}
.contact__line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
a.contact__line:hover { border-bottom-color: var(--white); }
.contact__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact__line span:last-child { color: var(--ink); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; }
.form__note {
  font-size: 0.88rem;
  color: var(--ink-dim);
  min-height: 1.2em;
}
.form__note.success { color: var(--white); }

/* ---------- Footer ---------- */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 40px 0 40px;
  background: var(--bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  row-gap: 24px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.footer__logo {
  height: 46px;
  width: auto;
  filter: invert(1);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}
.footer__name em { color: var(--ink-mute); font-style: normal; font-weight: 500; }
.footer__tag {
  color: var(--ink-mute);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.footer__links {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--ink-dim);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--white); }
.footer__legal {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 8px; }
  .hero__logo { height: clamp(300px, 50vh, 440px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: none; padding-left: 0; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10,10,11,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links > a:not(.btn) {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; width: 100%; }
  .nav__toggle { display: flex; }

  .hero { padding: 130px 0 60px; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); padding: 28px 0 28px; }
  .step:first-child { border-top: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__links { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
