:root {
  color-scheme: light;
  --ink: #0d1b2a;
  --muted: #5d6b7a;
  --paper: #ffffff;
  --bg: #f5f8fb;
  --line: #d9e3ee;
  --blue: #0867ff;
  --blue-dark: #0757d8;
  --teal: #12c8c8;
  --navy: #0b1b2c;
  --navy-2: #10243a;
  --green: #0f766e;
  --shadow: 0 24px 80px rgba(11, 27, 44, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  border-bottom: 1px solid rgba(217, 227, 238, 0.88);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--ink);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 10px 40px rgba(11, 27, 44, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 850;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.6vw, 22px);
  color: #324358;
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a {
  border-radius: 999px;
  padding: 7px 10px;
}

.nav-links a:hover {
  background: rgba(8, 103, 255, 0.08);
  color: var(--blue-dark);
}

.language-switch {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  padding: 3px;
}

.language-switch a {
  padding: 4px 8px;
  font-size: 0.78rem;
}

.language-switch a[aria-current="page"] {
  background: var(--navy);
  color: #ffffff;
}

.mobile-header-controls {
  display: none;
}

.mobile-dropdown {
  position: relative;
}

.mobile-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
  list-style: none;
  padding: 9px 12px;
}

.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}

.mobile-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #526173;
  border-bottom: 2px solid #526173;
  transform: translateY(-2px) rotate(45deg);
}

.mobile-dropdown[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.mobile-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 80;
  display: grid;
  min-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(11, 27, 44, 0.16);
}

.mobile-dropdown-panel a {
  color: #324358;
  font-size: 0.92rem;
  font-weight: 780;
  padding: 11px 13px;
  white-space: nowrap;
}

.mobile-dropdown-panel a + a {
  border-top: 1px solid #edf2f7;
}

.mobile-dropdown-panel a:hover,
.mobile-dropdown-panel a[aria-current="page"] {
  background: #edf5ff;
  color: var(--blue-dark);
}

.mobile-section-menu .mobile-dropdown-panel {
  left: 0;
  width: min(220px, 74vw);
}

.mobile-language-menu .mobile-dropdown-panel {
  right: 0;
  min-width: 76px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #030907;
  padding: clamp(64px, 8vw, 104px) clamp(18px, 4vw, 56px) clamp(54px, 7vw, 86px);
}

.hero-scene,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-scene {
  z-index: 0;
  overflow: hidden;
}

.hero-app-shot {
  position: absolute;
  top: 50%;
  right: clamp(22px, 4vw, 84px);
  width: min(1260px, 62vw);
  height: auto;
  max-height: min(76vh, 820px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow:
    0 72px 170px rgba(0, 0, 0, 0.68),
    0 0 90px rgba(15, 118, 110, 0.12);
  transform: translateY(-50%) perspective(1500px) rotateX(2deg) rotateY(-7deg) rotateZ(-1deg);
  transform-origin: 62% 50%;
}

.hero-scene .product-window {
  display: none;
}

.product-window {
  position: absolute;
  right: max(-190px, -8vw);
  top: clamp(86px, 12vh, 138px);
  width: min(1640px, 90vw);
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr);
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #f8fbff;
  box-shadow:
    0 60px 150px rgba(0, 0, 0, 0.62),
    0 0 90px rgba(15, 118, 110, 0.1);
  transform: perspective(1550px) rotateX(2.2deg) rotateY(-7.5deg) rotateZ(-1.2deg);
  transform-origin: 74% 50%;
}

.window-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 18px;
}

.window-topbar strong,
.window-topbar span {
  display: block;
}

.window-topbar strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.window-topbar span {
  color: #65758b;
  font-size: 0.72rem;
  font-weight: 760;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-actions span {
  width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.window-actions .primary-action {
  width: 76px;
  border-color: rgba(15, 118, 110, 0.32);
  background: #0f766e;
}

.window-sidebar,
.window-panel {
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.window-sidebar {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 850;
}

.mini-brand img {
  width: 34px;
}

.sidebar-line,
.sidebar-pill {
  display: block;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.sidebar-line.active {
  border-color: rgba(8, 103, 255, 0.42);
  background: #edf5ff;
}

.sidebar-line.short {
  width: 70%;
}

.sidebar-pill {
  height: auto;
  color: #40546a;
  padding: 7px 9px;
  font-size: 0.74rem;
  font-weight: 800;
}

.window-canvas {
  grid-row: 2;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(82, 104, 130, 0.24) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(180deg, #f2f7fd, #e8f0f8);
}

.canvas-tabs {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  gap: 8px;
  height: 52px;
  align-items: end;
  border-bottom: 1px solid #d7e0eb;
  padding: 0 16px;
  background: rgba(246, 250, 254, 0.86);
}

.canvas-tabs span {
  min-width: 110px;
  border: 1px solid #d1dce8;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  padding: 10px 14px;
  color: #2d3d51;
  font-size: 0.74rem;
  font-weight: 850;
}

.canvas-tabs .active {
  border-color: rgba(15, 118, 110, 0.5);
  background: #e7f7f3;
  color: #0f766e;
}

.relationship {
  position: absolute;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 200, 200, 0.8), rgba(8, 103, 255, 0.72));
  box-shadow: 0 0 18px rgba(18, 200, 200, 0.34);
  transform-origin: left center;
}

.r1 {
  top: 39%;
  left: 23%;
  width: 39%;
  transform: rotate(13deg);
}

.r2 {
  top: 63%;
  left: 51%;
  width: 25%;
  transform: rotate(19deg);
}

.table-card {
  position: absolute;
  z-index: 2;
  width: 220px;
  overflow: hidden;
  border: 1px solid #bfd0e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(11, 27, 44, 0.12);
}

.table-card.selected {
  border-color: rgba(18, 200, 200, 0.8);
  box-shadow:
    0 0 0 4px rgba(18, 200, 200, 0.16),
    0 12px 30px rgba(11, 27, 44, 0.12);
}

.table-card strong {
  display: block;
  background: var(--navy-2);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.table-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  border-top: 1px solid #edf2f7;
  padding: 6px 10px;
  color: #203044;
  font-size: 0.72rem;
  font-weight: 720;
}

.table-card code {
  color: #738195;
  font-size: 0.68rem;
}

.table-users {
  top: 28%;
  left: 9%;
}

.table-orders {
  top: 38%;
  left: 42%;
}

.table-payments {
  top: 68%;
  left: 56%;
}

.window-panel {
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 1px solid var(--line);
  color: #40546a;
  font-size: 0.78rem;
  font-weight: 720;
}

.window-panel strong {
  color: var(--navy);
  font-size: 1rem;
}

.window-panel span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.window-panel .safe {
  border-color: rgba(15, 118, 110, 0.24);
  background: #eafaf5;
  color: #0f766e;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 7, 6, 0.92) 0%, rgba(2, 7, 6, 0.74) 31%, rgba(2, 7, 6, 0.3) 55%, rgba(2, 7, 6, 0.04) 100%),
    linear-gradient(0deg, rgba(2, 7, 6, 0.5) 0%, rgba(2, 7, 6, 0.08) 48%, rgba(2, 7, 6, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(710px, 100%);
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.55rem, 6.25vw, 5.35rem);
  max-width: 720px;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: #ffffff;
}

.button.ghost {
  color: rgba(255, 255, 255, 0.86);
}

.button.secondary.dark {
  border-color: #b8c7d8;
  color: var(--navy);
}

.section {
  padding: clamp(70px, 9vw, 124px) clamp(18px, 4vw, 56px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.workflow-grid,
.ai-grid,
.quick-grid,
.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.section h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.open-source-copy {
  display: grid;
  gap: 28px;
}

.open-source-visual {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d8e4ef;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(11, 27, 44, 0.1);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.seo-band {
  background:
    linear-gradient(180deg, #f6faff, #eef5fb);
}

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

.feature-grid article,
.ai-card,
.mode-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 22px;
  box-shadow: 0 12px 34px rgba(11, 27, 44, 0.08);
}

.feature-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(8, 103, 255, 0.1);
  color: var(--blue);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.feature-grid h3,
.mode-list strong,
.ai-card strong,
.steps strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.feature-grid h3 {
  margin: 0 0 8px;
}

.feature-grid p {
  font-size: 0.94rem;
}

.workflow-section {
  background: var(--paper);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.steps span {
  color: var(--muted);
}

.ai-section {
  background:
    linear-gradient(135deg, rgba(8, 103, 255, 0.1), rgba(18, 200, 200, 0.14)),
    #f4f9fb;
}

.ai-card {
  display: grid;
  gap: 12px;
  background: var(--navy);
  color: #ffffff;
}

.ai-card strong {
  color: #ffffff;
}

.ai-card span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.quick-start {
  background: #071827;
  color: #ffffff;
}

.quick-start h2,
.quick-start .section-kicker {
  color: #ffffff;
}

.quick-start p {
  color: rgba(255, 255, 255, 0.72);
}

pre {
  overflow-x: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #030b13;
  color: #d8f3ff;
  padding: 22px;
  font-size: 0.95rem;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.deploy-section {
  background: var(--paper);
}

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

.mode-list article {
  display: grid;
  gap: 4px;
  box-shadow: none;
}

.mode-list span {
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(8, 103, 255, 0.16), transparent 38%),
    #f7fafc;
}

.final-cta .section-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.final-cta img {
  width: min(720px, 100%);
}

.final-cta h2 {
  max-width: 900px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer span {
  color: var(--navy);
  font-weight: 850;
}

.site-footer a:hover {
  color: var(--blue);
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-window {
    right: -22vw;
    width: min(1200px, 106vw);
    opacity: 0.52;
  }

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

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    background: #ffffff;
    padding: 15px 18px 12px;
  }

  .brand {
    justify-self: center;
    min-width: 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-header-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
  }

  .mobile-section-menu {
    min-width: 0;
  }

  .mobile-language-menu {
    width: 74px;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .product-window {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 24, 39, 0.94), rgba(7, 24, 39, 0.86));
  }

  .intro-grid,
  .workflow-grid,
  .ai-grid,
  .quick-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

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

  .steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.9rem);
  }
}
