:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-strong: #15191e;
  --text: #1f252b;
  --muted: #65717d;
  --line: #d7ded7;
  --primary: #1f6f78;
  --primary-dark: #174f56;
  --accent: #b85c2d;
  --success: #2f7d4e;
  --danger: #b64242;
  --shadow: 0 18px 45px rgba(31, 37, 43, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Noto Sans SC",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(246, 248, 245, 0.92);
  border-bottom: 1px solid rgba(215, 222, 215, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

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

.button.danger {
  border-color: rgba(182, 66, 66, 0.35);
  color: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.hero {
  min-height: min(760px, calc(100vh - 138px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 104px) clamp(24px, 7vw, 92px);
}

.hero h1,
.auth-panel h1,
.content-page h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-panel h1,
.content-page h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.hero p,
.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #394550;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 25% 18%, rgba(31, 111, 120, 0.18), transparent 34%),
    linear-gradient(135deg, #192025, #26372f 52%, #1b2729);
}

.preview-window {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(246, 248, 245, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #edf2ee;
}

.preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9aa8a0;
}

.graph-preview {
  position: relative;
  height: 300px;
  background:
    linear-gradient(rgba(31, 111, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 120, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.graph-node {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(31, 111, 120, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 740;
  box-shadow: 0 8px 22px rgba(31, 37, 43, 0.1);
}

.node-primary {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: #fff;
}

.node-company {
  background: #fff;
}

.node-company:nth-of-type(2) {
  left: 12%;
  top: 22%;
}

.node-company:nth-of-type(3) {
  right: 10%;
  top: 18%;
}

.node-institution {
  left: 15%;
  bottom: 20%;
  border-color: rgba(184, 92, 45, 0.34);
}

.node-capital {
  right: 12%;
  bottom: 18%;
  border-color: rgba(184, 92, 45, 0.34);
}

.graph-edge {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: rgba(31, 111, 120, 0.38);
}

.edge-a {
  width: 190px;
  left: 24%;
  top: 41%;
  transform: rotate(24deg);
}

.edge-b {
  width: 175px;
  left: 49%;
  top: 40%;
  transform: rotate(-22deg);
}

.edge-c {
  width: 230px;
  left: 30%;
  bottom: 31%;
  transform: rotate(-2deg);
}

.preview-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.preview-list div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
}

.preview-list span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 54px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.auth-panel.compact {
  box-shadow: var(--shadow);
}

.feature-grid,
.contact-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card,
.price-card,
.auth-panel,
.device-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 37, 43, 0.08);
}

.feature-card,
.price-card {
  padding: 22px;
}

.feature-card h2,
.feature-card h3,
.price-card h2 {
  margin: 0;
  font-size: 20px;
}

.feature-card p,
.price-card p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card p {
  margin-bottom: 0;
}

.contact-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.legal-footer {
  padding: 24px clamp(20px, 5vw, 72px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  background: #eef3ef;
}

.auth-shell,
.content-page {
  width: min(960px, calc(100vw - 40px));
  margin: 48px auto;
}

.auth-panel {
  padding: clamp(24px, 5vw, 42px);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #35414b;
  font-weight: 680;
}

input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(31, 111, 120, 0.16);
}

.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.device-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.device-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.device-title {
  font-weight: 740;
}

.device-row code {
  overflow-wrap: anywhere;
}

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

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

  .hero-visual {
    min-height: 260px;
    order: -1;
  }

  .graph-preview {
    height: 240px;
  }

  .graph-node {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .feature-grid,
  .contact-grid,
  .price-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .device-row {
    grid-template-columns: 1fr;
  }
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f0f0ee;
  color: #111827;
}

.landing-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.landing-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 16px 0;
}

.landing-mark,
.landing-nav {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.landing-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
}

.landing-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-mark:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 44px rgba(37, 99, 235, 0.22);
}

.landing-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  min-height: 42px;
  padding: 4px;
  border-radius: 999px;
}

.landing-nav:hover {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14);
}

.landing-nav a,
.landing-kicker,
.landing-link-list a {
  color: #374151;
  text-decoration: none;
}

.landing-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.landing-nav a:hover {
  transform: translateY(-2px);
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.26);
}

.landing-nav a:focus-visible {
  background: #2563eb;
  color: #fff;
  outline: 4px solid #bfdbfe;
  outline-offset: 2px;
}

.landing-main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 520px) minmax(320px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 7vw, 72px);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 8vw, 112px);
}

.landing-copy {
  max-width: 520px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 650;
}

.landing-kicker span,
.landing-button span,
.landing-submit span,
.landing-direct span,
.landing-link-list > a > span:last-child,
.landing-link-button > span:last-child {
  display: inline-block;
  transition: transform 0.2s ease;
}

.landing-kicker:hover span,
.landing-button:hover span,
.landing-submit:hover span,
.landing-direct:hover span,
.landing-link-list a:hover > span:last-child,
.landing-link-button:hover > span:last-child {
  transform: translateX(2px);
}

.landing-copy h1 {
  max-width: 470px;
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(42px, 5.4vw, 60px);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-copy p,
.landing-muted {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.75;
}

.landing-copy p {
  max-width: 500px;
  margin: 0 0 20px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.landing-button,
.landing-submit,
.landing-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.landing-button-primary-outline {
  border: 1px solid #3b82f6;
  color: #2563eb;
}

.landing-button-primary-outline:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.landing-button-secondary {
  border: 1px solid rgba(156, 163, 175, 0.45);
  background: rgba(255, 255, 255, 0.55);
  color: #111827;
}

.landing-button-secondary:hover {
  border-color: rgba(75, 85, 99, 0.7);
  background: #fff;
}

.landing-evidence {
  display: grid;
  max-width: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(10px);
}

.landing-evidence div {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.68);
}

.landing-evidence div + div {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.landing-evidence strong,
.landing-evidence span {
  display: block;
}

.landing-evidence strong {
  color: #111827;
  font-size: 13px;
}

.landing-evidence span {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.5;
}

.landing-access {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: rgba(249, 250, 251, 0.78);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  padding: clamp(20px, 3vw, 24px);
  backdrop-filter: blur(16px);
}

.landing-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.landing-access-head p {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 680;
}

.landing-access-head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.15;
}

.landing-access-head > span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.landing-muted {
  margin: 0 0 18px;
  font-size: 13px;
}

.landing-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.landing-form label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 12px;
  font-weight: 680;
}

.landing-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font: inherit;
  padding: 0 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-form input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px #dbeafe;
}

.landing-submit {
  width: 100%;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.landing-submit:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.landing-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.landing-direct {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.7);
  color: #111827;
}

.landing-direct:hover {
  border-color: #9ca3af;
  background: #fff;
}

.landing-access .status {
  min-height: 20px;
  margin: 0 0 14px;
  font-size: 12.5px;
}

.landing-link-list {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.landing-link-list a,
.landing-link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  font-family: inherit;
  transition: background 0.2s ease;
}

.landing-link-list a:hover,
.landing-link-button:hover {
  background: rgba(255, 255, 255, 0.72);
}

.landing-link-button:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  outline: 4px solid #dbeafe;
  outline-offset: 2px;
}

.landing-link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.landing-link-label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #2563eb;
}

.landing-page a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.landing-kicker[aria-disabled="true"] {
  opacity: 1;
}

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(17, 24, 39, 0.3);
  backdrop-filter: blur(14px);
}

.landing-modal[hidden] {
  display: none;
}

.landing-modal-panel {
  width: min(360px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  padding: 16px;
  backdrop-filter: blur(18px);
}

.landing-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.landing-modal-head p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 680;
}

.landing-modal-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.landing-modal-head button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.landing-modal-head button:hover,
.landing-modal-head button:focus-visible {
  background: #2563eb;
  color: #fff;
  outline: none;
}

.landing-modal-head svg {
  width: 16px;
  height: 16px;
}

.landing-modal-panel > img {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: #fff;
}

.landing-modal-note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

.landing-legal {
  padding: 0 clamp(24px, 8vw, 112px) 20px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 900px) {
  .landing-main {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 48px;
  }

  .landing-copy h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .landing-access {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .landing-header {
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 10px;
  }

  .landing-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    gap: 0;
    padding: 3px;
    white-space: nowrap;
  }

  .landing-nav a {
    padding: 9px 7px;
    font-size: 12px;
    text-align: center;
  }

  .landing-main {
    gap: 24px;
    padding: 40px 20px 28px;
  }

  .landing-legal {
    padding-inline: 20px;
  }
}
