@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark light;
  --dark: #07110f;
  --dark-2: #0e1e1a;
  --ink: #101820;
  --muted: #57676d;
  --paper: #f6f8f4;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 24, 32, 0.12);
  --cyan: #49f6dc;
  --green: #41b883;
  --amber: #e9a33c;
  --blue: #3278da;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--dark);
  font-weight: 800;
  transition: top 160ms ease;
}

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

.site-nav {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.82);
  color: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

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

.brand {
  gap: 9px;
  font-weight: 900;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--dark);
}

.site-nav nav {
  gap: 20px;
  color: #cfe0dc;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.nav-action,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
}

.nav-action,
.button.primary {
  background: var(--cyan);
  color: var(--dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.hero {
  min-height: 94svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 52px;
  align-items: end;
  padding: 124px max(28px, calc((100vw - 1120px) / 2)) 76px;
  color: #ffffff;
  background: var(--dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.98), rgba(7, 17, 15, 0.78), rgba(7, 17, 15, 0.42)),
    linear-gradient(180deg, rgba(7, 17, 15, 0.15), rgba(7, 17, 15, 0.88)),
    url("/assets/kraitos_launch_short_poster.jpg") right center / auto 100% no-repeat;
  transform: scale(1.01);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.86;
  font-weight: 950;
}

.hero-lede {
  max-width: 760px;
  margin-bottom: 18px;
  color: #f4fbf8;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  font-weight: 850;
}

.hero-support {
  max-width: 720px;
  margin-bottom: 30px;
  color: #bfd1cc;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions,
.source-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.78);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.panel-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #adc3bd;
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.panel-bar strong {
  color: var(--cyan);
}

.signal-grid {
  display: grid;
}

.signal-grid div {
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-grid div:last-child {
  border-bottom: 0;
}

.signal-grid span,
.metric span,
.change-grid time,
.blog-list time {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 1.08rem;
}

.signal-grid p {
  margin-bottom: 0;
  color: #cfe0dc;
}

.plain-section,
.dark-section,
.source-section {
  padding: 96px max(28px, calc((100vw - 1120px) / 2));
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #ffffff;
}

.metric {
  min-height: 104px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
}

.metric span {
  color: var(--blue);
}

.metric strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.22;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading h2,
.source-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 0.98;
  font-weight: 950;
}

.section-heading p,
.source-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.flow-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow-list article {
  min-height: 154px;
  display: grid;
  grid-template-columns: 76px minmax(0, 0.52fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.flow-list article span {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 900;
}

.flow-list h3,
.change-grid h3,
.blog-list h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.12;
}

.flow-list p,
.change-grid p,
.blog-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.dark-section {
  color: #ffffff;
  background: var(--dark);
}

.dark-section .section-heading p,
.dark-section .change-grid p {
  color: #b9ccc6;
}

.change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.12);
}

.change-grid article {
  min-height: 238px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.change-grid time {
  color: var(--amber);
}

.change-grid h3 {
  margin-bottom: 12px;
  color: #ffffff;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 0.52fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 148px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(16, 24, 32, 0.06);
}

.blog-list time {
  color: var(--blue);
}

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.94), rgba(7, 17, 15, 0.76)),
    url("/assets/kraitos_launch_short_poster.jpg") center / cover no-repeat;
}

.source-section p {
  max-width: 780px;
  color: #c7d9d3;
}

.source-section .button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 28px max(28px, calc((100vw - 1120px) / 2));
  background: #ffffff;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

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

  .hero {
    grid-template-columns: 1fr;
  }

  .intro-strip,
  .change-grid,
  .source-section {
    grid-template-columns: 1fr;
  }

  .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric:first-child {
    border-top: 0;
  }
}

@media (max-width: 720px) {
  .site-nav {
    width: min(100% - 24px, 1120px);
    top: 12px;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 104px 20px 54px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 17, 15, 0.94), rgba(7, 17, 15, 0.82)),
      url("/assets/kraitos_launch_short_poster.jpg") center top / cover no-repeat;
  }

  .plain-section,
  .dark-section,
  .source-section {
    padding: 70px 20px;
  }

  .hero-actions,
  .source-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .flow-list article,
  .blog-list article {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

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

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

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