/* v1 — mevcut Baynorm iskeleti + 3D terminal */

body {
  background-color: #090a0f !important;
}

main.bg-surface-base {
  position: relative;
  z-index: 1;
  background-color: transparent !important;
}

section[id] {
  scroll-margin-top: 88px;
}

#hero {
  min-height: 180vh;
}

#hero3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#hero3d.is-loaded {
  opacity: 1;
}

main > div > section:not(#hero):not(#iletisim) {
  position: relative;
  z-index: 2;
  background-color: rgba(9, 10, 15, 0.97);
}

#iletisim {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem !important;
  background-color: #090a0f;
}

footer {
  display: none !important;
}

.bn-hero-hit {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 25;
  width: min(720px, 82vw);
  height: min(470px, 58vh);
  transform: translate(-50%, -48%);
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.bn-hero-hit.is-ready {
  pointer-events: auto;
}

.bn-hero-hit:focus-visible {
  outline: 1px solid #c7ff47;
  outline-offset: 8px;
}

#hero3d::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(9, 10, 15, 0.9) 0%,
    rgba(9, 10, 15, 0.52) 26%,
    rgba(9, 10, 15, 0) 58%
  );
}

#hero3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  #hero3d {
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  #hero3d {
    opacity: 0.3;
  }
}

/* --- terminal ------------------------------------------------------------ */
.bn-terminal {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 680px;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e3e1e9;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: left;
  box-shadow: none;
}

.bn-terminal__3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.bn-terminal__ui {
  position: absolute;
  top: 23.5%;
  right: 12%;
  bottom: 15.5%;
  left: 12%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bn-terminal.is-active .bn-terminal__ui {
  border-color: transparent;
}

.bn-terminal__bar {
  display: none;
}

.bn-terminal__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 4px 8px;
  background: transparent;
}

.bn-terminal.is-active {
  border-color: rgba(199, 255, 71, 0.26);
}

.bn-terminal *,
.bn-terminal *::before,
.bn-terminal *::after {
  box-sizing: border-box;
}

.bn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3b45;
}

.bn-dot:nth-child(1) { background: #ff5f57; }
.bn-dot:nth-child(2) { background: #febc2e; }
.bn-dot:nth-child(3) { background: #28c840; }

.bn-terminal__title {
  margin-left: 8px;
  color: #8b8d98;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.bn-terminal__badge {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid rgba(199, 255, 71, 0.3);
  border-radius: 2px;
  color: #c7ff47;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.bn-terminal__body {
  padding: 4px 8px;
}

.bn-terminal__output {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: #2a2b35 transparent;
}

.bn-terminal__output::-webkit-scrollbar {
  width: 6px;
}

.bn-terminal__output::-webkit-scrollbar-thumb {
  background: #2a2b35;
  border-radius: 999px;
}

.bn-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.bn-line--sys { color: #a7a9b3; }
.bn-line--ok { color: #c7ff47; }
.bn-line--err { color: #ff7a7a; }
.bn-line--prompt { color: #8f92ff; }
.bn-line--user { color: #f4f3ee; }

.bn-terminal__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(199, 255, 71, 0.16);
}

.bn-prompt {
  color: #c7ff47;
  font-size: 13px;
}

.bn-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f3ee;
  font: inherit;
  font-size: 13px;
  caret-color: #c7ff47;
}

.bn-input::placeholder {
  color: #5f616c;
}

.bn-input:disabled {
  opacity: 0.55;
}

.bn-send {
  width: 30px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  background: transparent;
  color: #c7ff47;
  font: inherit;
  cursor: pointer;
}

.bn-send:hover {
  background: rgba(199, 255, 71, 0.08);
}

.bn-terminal__status {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #6f717c;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.bn-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  .bn-terminal {
    max-width: none;
    height: 600px;
    margin: 0 auto;
  }

  .bn-terminal__ui {
    border: 1px solid rgba(199, 255, 71, 0.16);
    background: rgba(8, 9, 13, 0.84);
  }
}

@media (max-width: 640px) {
  .bn-terminal {
    height: 540px;
  }

  .bn-terminal__ui {
    top: 16%;
    right: 8%;
    bottom: 13%;
    left: 8%;
  }

  .bn-input {
    font-size: 16px;
  }
}
