/* ============================================
   Websites service page — hero section
   ============================================ */

.websites-hero {
  /* background: linear-gradient(140deg, #07091a 0%, #0c1230 60%, #06091a 100%); */
  background: #02050a;

  overflow: hidden;
}

/* Override the default centered page-header padding */
.websites-hero .page-header-content {
  padding: 0;
}

/* Background shapes */
.websites-hero .ws-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.websites-hero .ws-shapes img {
  position: absolute;
}
.websites-hero .ws-shapes .ws-shape-1 {
  top: 0;
  right: 0;
  opacity: 0.55;
}
.websites-hero .ws-shapes .ws-shape-2 {
  bottom: 0;
  left: 0;
  opacity: 0.45;
}
.websites-hero .ws-shapes .ws-shape-3 {
  top: 0;
  left: 0;
  opacity: 0.2;
}

/* ── Two-column layout ── */
.ws-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
}

/* ── LEFT: text ── */
.ws-hero-text {
  flex: 1;
  min-width: 0;
}
.ws-hero-text .title {
  font-size: clamp(32px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.ws-hero-text .sub-title {
  font-size: 14px;
  font-weight: 400;
}
.ws-hero-text .sub-title a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.ws-hero-text .sub-title a.inner-page {
  color: rgba(255, 255, 255, 0.85);
}
.ws-hero-text .sub-title a:not(.inner-page)::after {
  content: "›";
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── RIGHT: editor window ── */
.ws-hero-editor {
  flex: 1.1;
  min-width: 0;
}

.ws-editor-window {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Title bar */
.ws-editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ws-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.ws-dot-red {
  background: #ff5f57;
}
.ws-dot-yellow {
  background: #ffbd2e;
}
.ws-dot-green {
  background: #27c93f;
}
.ws-editor-filename {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Courier New", monospace;
}

/* Code area */
.ws-editor-body {
  padding: 20px 0;
  min-height: 300px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  overflow: hidden;
}

/* Code rows */
.wc-row {
  display: flex;
  align-items: baseline;
  padding: 0 20px;
}
.wc-row:hover {
  background: rgba(255, 255, 255, 0.025);
}
.wc-num {
  width: 30px;
  min-width: 30px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  text-align: right;
  margin-right: 20px;
  user-select: none;
}
.wc-text {
  color: #cdd9e5;
}

/* Syntax colours (GitHub dark theme) */
.wc-kw {
  color: #ff7b72;
} /* doctype / keywords */
.wc-tg {
  color: #7ee787;
} /* tags               */
.wc-at {
  color: #79c0ff;
} /* attributes         */
.wc-st {
  color: #a5d6ff;
} /* string values      */
.wc-tx {
  color: #e6edf3;
} /* text content       */
.wc-cm {
  color: #8b949e;
  font-style: italic;
} /* comments           */

/* Blinking cursor */
.wc-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #58a6ff;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: wcBlink 1s step-end infinite;
}
@keyframes wcBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── Light mode ── */
[data-theme="light"] .websites-hero {
  /* background: linear-gradient(140deg, #f4f6ff 0%, #edf0ff 60%, #f4f6ff 100%); */
  background: white;
}
[data-theme="light"] .websites-hero .ws-shapes .ws-shape-1 {
  opacity: 0.2;
}
[data-theme="light"] .websites-hero .ws-shapes .ws-shape-2 {
  opacity: 0.15;
}
[data-theme="light"] .websites-hero .ws-shapes .ws-shape-3 {
  opacity: 0.08;
}
[data-theme="light"] .ws-hero-text .title {
  color: var(--rr-color-heading-primary);
}
[data-theme="light"] .ws-hero-text .sub-title a {
  color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .ws-hero-text .sub-title a.inner-page {
  color: var(--rr-color-heading-primary);
}
[data-theme="light"] .ws-hero-text .sub-title a:not(.inner-page)::after {
  color: rgba(0, 0, 0, 0.2);
}
/* Editor intentionally stays dark in light mode */
[data-theme="light"] .ws-editor-window {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .ws-hero-inner {
    flex-direction: column;
    padding: 120px 0 60px;
    gap: 40px;
    min-height: unset;
  }
  .ws-hero-text {
    text-align: center;
  }
  .ws-hero-editor {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .ws-hero-editor {
    display: none;
  }
}
