/* SISZL-Connector — corporate B2B landing */

:root {
  --bg: #0e1621;
  --bg-elevated: #152030;
  --bg-alt: #121c2a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(148, 175, 196, 0.18);
  --text: #e8eef4;
  --text-muted: #93a4b8;
  --accent: #1fa8a0;
  --accent-soft: rgba(31, 168, 160, 0.16);
  --accent-hover: #27c4ba;
  --heading: #f4f8fb;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1120px;
  --radius: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(31, 168, 160, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 8%, rgba(70, 110, 150, 0.14), transparent 50%),
    linear-gradient(180deg, #0c131c 0%, var(--bg) 40%, #0b121a 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #5ad8d0;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #c5e8e4;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(12, 19, 28, 0.82);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--heading);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--heading);
}

.nav-cta {
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: #041414;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #041414;
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(31, 168, 160, 0.45);
  color: var(--heading);
  background: var(--accent-soft);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 175, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 175, 196, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.brand-hero {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--heading);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #c5d4e2;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  animation: rise 0.9s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: rise 0.9s var(--ease) 0.2s both;
}

.hero-note {
  margin: 0;
  color: #7f93a8;
  font-size: 0.92rem;
  animation: rise 0.9s var(--ease) 0.26s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(18, 28, 42, 0.65), transparent);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--heading);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Problem → Solution → Result */

.flow-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.flow-step {
  padding: 2.75rem 1.75rem 2rem 1.75rem;
  border-right: 1px solid var(--border);
}

.flow-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.flow-step:first-child {
  padding-left: 0;
}

.flow-label {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.flow-step h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.flow-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Capabilities */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.api-table th,
.api-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.api-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f93a8;
  background: rgba(0, 0, 0, 0.2);
}

.api-table tr:last-child td {
  border-bottom: 0;
}

.api-table td:first-child {
  color: var(--accent);
  font-weight: 700;
  width: 2.5rem;
}

.api-table code {
  font-size: 0.82rem;
  word-break: break-all;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 1rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--accent);
}

.aside-note {
  margin: 1rem 0 0;
  color: #7f93a8;
  font-size: 0.92rem;
}

/* Deploy */

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.deploy-grid h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--heading);
}

.deploy-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}

.price-block {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-featured {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(31, 168, 160, 0.14), transparent 55%),
    var(--bg-elevated);
  border-color: rgba(31, 168, 160, 0.35);
}

.price-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--heading);
}

.price-amount {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.price-request {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.price-desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.price-featured .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Demo JSON */

.demo-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a1018;
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.demo-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.95rem 1.35rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.demo-tab:hover {
  color: var(--heading);
}

.demo-tab.is-active {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
  background: rgba(31, 168, 160, 0.06);
}

.demo-pane[hidden] {
  display: none;
}

.demo-pane.is-active {
  display: block;
  animation: pane-in 0.35s var(--ease);
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.json-block {
  margin: 0;
  padding: 1.25rem 1.35rem 1.5rem;
  max-height: 480px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #b8c9d8;
  white-space: pre;
}

.json-block code {
  color: inherit;
  font-size: inherit;
}

/* Docs */

.docs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.docs-row h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--heading);
}

.docs-row p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Contacts */

.contacts-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-person {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-link {
  display: inline-block;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent-hover);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: #0a1018;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--heading);
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.placeholder {
  color: #7f93a8 !important;
  font-style: italic;
}

.disclaimer {
  margin-top: 0.75rem !important;
  font-size: 0.82rem !important;
  line-height: 1.5;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .flow-track {
    grid-template-columns: 1fr;
  }

  .flow-step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 2.25rem 0;
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .deploy-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-featured {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(12, 19, 28, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-cta {
    margin: 0.85rem 0 0;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .docs-row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-hero,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-note,
  .reveal,
  .demo-pane.is-active,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
