@font-face {
  font-family: "Oxanium";
  src: url("../fonts/Oxanium-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ef-graphite: #0e0e0e;
  --ef-ivory: #fcfaf5;
  --ef-ember: #fc4a02;
  --ef-surface: #121418;
  --ef-surface-raised: #191b20;
  --ef-border: #30333a;
  --ef-muted: #a6a29b;
  --ef-font-display: "Oxanium", Inter, ui-sans-serif, system-ui, sans-serif;
}

#navbar-logo {
  gap: 0.65rem;
}

#navbar-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

#navbar-logo::after {
  color: var(--ef-ivory);
  content: "ENKYDIA FORGE";
  font-family: var(--ef-font-display);
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.enkydia-home {
  --ef-page-max: 1240px;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  color: var(--ef-ivory);
  background: #0b0c0e;
}

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

.ef-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  min-height: 660px;
  padding: clamp(5rem, 9vw, 8.5rem) max(2rem, calc((100vw - var(--ef-page-max)) / 2));
  border-bottom: 1px solid var(--ef-border);
  isolation: isolate;
}

.ef-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(#fc4a020b 1px, transparent 1px),
    linear-gradient(90deg, #fc4a020b 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}

.ef-hero::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  content: "";
  background: var(--ef-ember);
}

.ef-hero-copy {
  max-width: 720px;
}

.ef-wordmark {
  display: block;
  width: min(520px, 92%);
  height: auto;
  margin: 0 0 2.25rem;
  object-fit: contain;
  object-position: left center;
}

.ef-kicker {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1.15rem;
  color: var(--ef-ember);
  font-family: var(--ef-font-display);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ef-kicker::before {
  width: 2.4rem;
  height: 2px;
  content: "";
  background: var(--ef-ember);
}

.ef-title {
  max-width: 760px;
  margin: 0;
  color: var(--ef-ivory);
  font-family: var(--ef-font-display);
  font-size: clamp(3.1rem, 6vw, 6.1rem);
  font-weight: 770;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ef-title span {
  color: var(--ef-ember);
}

.ef-lead {
  max-width: 680px;
  margin: 1.65rem 0 0;
  color: #c7c3bc;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.ef-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.35rem;
}

.ef-actions .ui.button {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding-inline: 1.3rem;
  border-radius: 4px;
  font-weight: 700;
}

.ef-actions .ef-secondary-button {
  color: var(--ef-ivory) !important;
  background: #15171b !important;
  box-shadow: inset 0 0 0 1px #3a3d44 !important;
}

.ef-actions .ef-secondary-button:hover {
  color: var(--ef-ivory) !important;
  background: #1c1f24 !important;
  box-shadow: inset 0 0 0 1px #555a64 !important;
}

.ef-terminal {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 510px;
  justify-self: end;
  border: 1px solid #363941;
  border-radius: 8px;
  background: #08090b;
  box-shadow: 18px 18px 0 #fc4a0212;
}

.ef-terminal::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid #fc4a0240;
  transform: rotate(45deg);
}

.ef-terminal-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 46px;
  padding: 0 1rem;
  border-bottom: 1px solid #2a2d33;
  background: #111317;
}

.ef-terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b4f57;
}

.ef-terminal-dot.is-hot {
  background: var(--ef-ember);
}

.ef-terminal-path {
  margin-left: auto;
  color: #777b84;
  font-family: var(--fonts-monospace, monospace);
  font-size: 0.73rem;
}

.ef-terminal pre {
  min-height: 310px;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  color: #d8d5cf;
  background: transparent;
  font-family: var(--fonts-monospace, monospace);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  line-height: 1.85;
  white-space: pre-wrap;
}

.ef-code-prompt,
.ef-code-accent {
  color: var(--ef-ember);
}

.ef-code-ok {
  color: #70c884;
}

.ef-code-muted {
  color: #767a83;
}

.ef-section {
  width: min(calc(100% - 4rem), var(--ef-page-max));
  margin-inline: auto;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.ef-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.ef-section-label {
  margin: 0 0 0.8rem;
  color: var(--ef-ember);
  font-family: var(--ef-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ef-section-title {
  margin: 0;
  color: var(--ef-ivory);
  font-family: var(--ef-font-display);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 730;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ef-section-intro {
  max-width: 610px;
  margin: 0;
  justify-self: end;
  color: var(--ef-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.ef-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ef-border);
  border-left: 1px solid var(--ef-border);
}

.ef-capability {
  position: relative;
  min-height: 255px;
  padding: 2rem;
  border-right: 1px solid var(--ef-border);
  border-bottom: 1px solid var(--ef-border);
  background: #101216;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ef-capability:hover {
  z-index: 1;
  border-color: #fc4a0270;
  background: #15171b;
  transform: translateY(-3px);
}

.ef-capability-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 2.6rem;
  color: var(--ef-ember);
  border: 1px solid #fc4a0260;
  place-items: center;
}

.ef-capability h3 {
  margin: 0 0 0.85rem;
  color: var(--ef-ivory);
  font-family: var(--ef-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ef-capability p {
  margin: 0;
  color: var(--ef-muted);
  line-height: 1.62;
}

.ef-workflow-band {
  border-block: 1px solid var(--ef-border);
  background: #0e0f12;
}

.ef-workflow {
  width: min(calc(100% - 4rem), var(--ef-page-max));
  margin-inline: auto;
  padding-block: clamp(4rem, 7vw, 6rem);
}

.ef-workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.7rem;
  background: var(--ef-border);
}

.ef-workflow-step {
  position: relative;
  min-height: 150px;
  padding: 1.7rem;
  background: #111317;
}

.ef-step-number {
  display: block;
  margin-bottom: 1.7rem;
  color: var(--ef-ember);
  font-family: var(--ef-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ef-workflow-step strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ef-ivory);
  font-family: var(--ef-font-display);
  font-size: 1.03rem;
}

.ef-workflow-step span:last-child {
  color: var(--ef-muted);
  font-size: 0.9rem;
}

.ef-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 4rem), var(--ef-page-max));
  margin-inline: auto;
  padding-block: 2.25rem;
}

.ef-stack-label {
  margin-right: 0.65rem;
  color: var(--ef-muted);
  font-family: var(--ef-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ef-stack-item {
  padding: 0.48rem 0.72rem;
  color: #d9d6d0;
  border: 1px solid #34373d;
  background: #111317;
  font-family: var(--fonts-monospace, monospace);
  font-size: 0.78rem;
}

.enkydia-home a:focus-visible,
.enkydia-home button:focus-visible {
  outline: 3px solid var(--ef-ember);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .ef-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ef-terminal {
    max-width: 720px;
    justify-self: start;
  }

  .ef-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ef-workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #navbar-logo::after {
    display: none;
  }

  .ef-hero {
    padding-inline: 1.35rem;
  }

  .ef-title {
    font-size: clamp(2.75rem, 14vw, 4.8rem);
  }

  .ef-terminal {
    box-shadow: 9px 9px 0 #fc4a0212;
  }

  .ef-section,
  .ef-workflow,
  .ef-stack {
    width: min(calc(100% - 2.7rem), var(--ef-page-max));
  }

  .ef-section-heading {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .ef-section-intro {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .ef-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ef-actions .ui.button {
    justify-content: center;
    width: 100%;
  }

  .ef-capability-grid,
  .ef-workflow-list {
    grid-template-columns: 1fr;
  }

  .ef-capability {
    min-height: 220px;
  }

  .ef-terminal-path {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ef-capability {
    transition: none;
  }
}
