:root {
  --brand: #25265d;
  --brand-soft: #ececfa;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #d1d5db;
  --header-bg: rgba(255, 255, 255, 0.96);
  --terminal-bg: #fbfcff;
  --terminal-top-bg: linear-gradient(180deg, #ffffff, #f6f8fd);
  --terminal-top-border: #dde1ef;
  --terminal-text: #131c33;
  --shadow: 0 14px 30px rgba(26, 31, 54, 0.08);
  --radius: 12px;
}

html[data-theme="dark"] {
  --bg: #111827;
  --surface: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #374151;
  --header-bg: rgba(17, 24, 39, 0.95);
  --terminal-bg: #0f172a;
  --terminal-top-bg: linear-gradient(180deg, #1f2937, #111827);
  --terminal-top-border: #334155;
  --terminal-text: #e2e8f0;
  --shadow: 0 14px 30px rgba(5, 8, 20, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 38, 93, 0.08), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(37, 38, 93, 0.06), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--brand);
  background: var(--header-bg);
  backdrop-filter: blur(7px);
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  height: 72px;
  padding: 0 2rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  margin-left: 0.25rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--brand);
  color: var(--brand);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.section {
  margin-top: 4.5rem;
  scroll-margin-top: 90px;
}

.hero-section {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  color: var(--brand);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.subheading {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.4rem;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  font-size: 1.75rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading a {
  color: var(--brand);
  font-weight: 600;
}

.terminal {
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--terminal-bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--terminal-top-border);
  background: var(--terminal-top-bg);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.dot:first-of-type {
  background: #c6c9d8;
}

.dot:nth-of-type(2) {
  background: #b6bbcf;
}

.dot:nth-of-type(3) {
  background: #9ea6c6;
}

.terminal-title {
  margin: 0 0 0 auto;
  font-size: 0.8rem;
  color: #5c6278;
  font-family: "IBM Plex Mono", monospace;
}

.terminal-output {
  margin: 0;
  min-height: 190px;
  padding: 1rem;
  font-size: 0.92rem;
  font-family: "IBM Plex Mono", monospace;
  white-space: pre-wrap;
  color: var(--terminal-text);
}

.terminal-static {
  min-height: unset;
}

.cursor {
  display: inline-block;
  width: 0.68ch;
  color: var(--brand);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border-radius: var(--radius);
  min-height: 250px;
}

.feature-card::part(root) {
  border: 1px solid #cfd5e6;
  border-top: 3px solid var(--brand);
  box-shadow: 0 10px 22px rgba(20, 25, 50, 0.08);
  border-radius: var(--radius);
}

.feature-card ui5-card-header {
  --_ui5_card_header_title_color: var(--brand);
}

.card-content {
  padding: 1rem;
}

.feature-icon {
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.doc-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.doc-steps h3 {
  margin-bottom: 0.4rem;
  color: var(--brand);
}

.doc-steps ol {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.doc-steps li {
  margin-bottom: 0.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shot-card {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #d9deea;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
}

.shot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef1f9;
}

.shot-card figcaption {
  text-align: center;
  padding: 0.8rem;
  color: var(--brand);
  font-weight: 600;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid #d7dbe8;
  background: var(--surface);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.footer-grid h4 {
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.footer-grid p {
  margin: 0;
  color: #303647;
}

.footer-grid a {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-section,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-bar {
    height: auto;
    padding: 0.8rem 1.25rem;
  }
}
