:root {
  --bg: #070d1a;
  --bg-soft: #0b1220;
  --surface: rgba(15, 23, 42, 0.86);
  --surface-strong: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #8ea2bf;
  --muted-strong: #cbd5e1;
  --brand: #6366f1;
  --hire: #a5b4fc;
  --hire-strong: #c7d2fe;
  --success: #34d399;
  --danger: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(99, 102, 241, 0.24), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(165, 180, 252, 0.12), transparent 28%),
    var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span span {
  color: var(--hire);
}

.nav-links,
.header-actions,
.hero-cta,
.trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions {
  position: relative;
}

.nav-links a,
.ghost-link {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.ghost-link:hover {
  color: var(--hire-strong);
}

.primary-link,
.ghost-link,
button {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #090f1f;
  background: linear-gradient(135deg, var(--hire), #ffffff);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}

.primary-link.large,
.ghost-link.large {
  min-height: 52px;
  padding: 0 22px;
}

.ghost-link.large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.primary-link:hover,
button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.language-toggle,
.notification-button {
  min-height: 42px;
  border: 1px solid var(--border);
  color: var(--hire-strong);
  background: rgba(165, 180, 252, 0.08);
  box-shadow: none;
}

.language-toggle {
  padding: 0 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  width: 42px;
  padding: 0;
  border-radius: 999px;
}

.notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notification-button strong {
  position: absolute;
  right: -5px;
  top: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  color: #070d1a;
  background: var(--hire);
  font-size: 0.72rem;
  line-height: 1;
}

.notification-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

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

.notification-head button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  color: var(--hire-strong);
  background: rgba(165, 180, 252, 0.08);
  box-shadow: none;
  font-size: 0.8rem;
}

.notification-menu ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-menu li {
  display: grid;
  gap: 10px;
  grid-template-columns: 8px 1fr;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.notification-menu li span {
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 999px;
  background: var(--hire);
}

.notification-menu li p {
  margin: 0;
}

.hero-shell,
.section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  align-items: center;
  gap: 34px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  padding: 64px 0 34px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--hire);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-copy > p,
.section-heading > p,
.product-card p,
.price-card p,
.auth-copy p {
  color: var(--muted);
}

.hero-copy > p {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.trust-row {
  flex-wrap: wrap;
  margin-top: 6px;
}

.trust-row span,
.mini-connector,
.badge {
  display: inline-flex;
  min-height: auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--hire-strong);
  background: rgba(165, 180, 252, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

.mini-connector.connected {
  color: #070d1a;
  background: var(--hire);
}

.hero-slider {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(12px);
}

.slide figcaption strong {
  font-size: 1.35rem;
}

.slide figcaption span {
  color: var(--muted-strong);
}

.slider-controls {
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  min-height: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.slider-dot.active {
  width: 34px;
  background: var(--hire);
}

.section {
  padding: 56px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 24px;
}

.settings-path {
  width: fit-content;
  margin-bottom: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(165, 180, 252, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-grid,
.pricing-grid,
.grid {
  display: grid;
  gap: 18px;
}

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

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

.product-card,
.price-card,
.auth-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.product-card,
.price-card,
.panel,
.auth-card {
  padding: 26px;
}

.product-card.active,
.price-card.featured {
  border-color: rgba(165, 180, 252, 0.46);
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(255, 255, 255, 0.04)),
    var(--surface);
}

.pricing-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.connector-section {
  border-top: 1px solid var(--border);
}

.connector-layout {
  display: grid;
  align-items: stretch;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.connector-flow {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.18), rgba(255, 255, 255, 0.03)),
    var(--surface);
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.connector-flow > div:not(.connector-stack) {
  padding: 14px;
  border: 1px solid rgba(165, 180, 252, 0.28);
  border-radius: 18px;
  color: var(--hire-strong);
  background: rgba(2, 6, 23, 0.34);
  font-weight: 900;
}

.connector-flow > span {
  color: var(--hire);
  font-size: 1.3rem;
  font-weight: 900;
}

.connector-stack {
  display: grid;
  gap: 8px;
}

.connector-stack span {
  padding: 10px;
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(165, 180, 252, 0.1);
  font-weight: 800;
}

.connector-buttons {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connector-button {
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.connector-button span {
  color: var(--hire);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connector-button strong {
  font-size: 1.15rem;
}

.connector-button em {
  color: var(--muted);
  font-style: normal;
}

.connector-button b {
  width: fit-content;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #070d1a;
  background: var(--hire);
  font-size: 0.78rem;
  font-weight: 900;
}

.connector-button.connected {
  border-color: rgba(52, 211, 153, 0.55);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.18), rgba(99, 102, 241, 0.08)),
    var(--surface);
}

.connector-button.connected b {
  background: var(--success);
}

.connector-search {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.8fr) auto;
  margin-top: 18px;
}

.connector-search label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

.source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-options button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  color: var(--hire-strong);
  background: rgba(165, 180, 252, 0.08);
  box-shadow: none;
  font-size: 0.78rem;
}

.source-options button.active {
  color: #070d1a;
  background: var(--hire);
}

.connector-search-result {
  max-height: 220px;
  overflow: auto;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.42);
  font: 0.86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 18px 0 8px;
}

.price strong {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.price span {
  color: var(--muted);
  font-weight: 800;
}

.select-plan,
button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  color: #070d1a;
  background: linear-gradient(135deg, var(--hire), #ffffff);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.24);
}

.auth-section {
  display: grid;
  align-items: start;
  gap: 28px;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
}

.auth-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
}

.auth-tab {
  min-height: 44px;
  background: transparent;
  color: var(--muted-strong);
  box-shadow: none;
}

.auth-tab.active {
  color: #070d1a;
  background: var(--hire);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.auth-form label,
.controls label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.42);
  font: inherit;
}

input::placeholder {
  color: #64748b;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-section {
  padding-bottom: 72px;
}

.wide {
  grid-column: 1 / -1;
}

.upload-form,
.chat-form,
.controls {
  display: grid;
  gap: 14px;
}

.upload-form,
.chat-form {
  grid-template-columns: 1fr auto;
}

.file-picker {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(165, 180, 252, 0.42);
  border-radius: 16px;
  color: var(--muted-strong);
  cursor: pointer;
}

.prompt-list {
  display: grid;
  gap: 10px;
}

.prompt-list button {
  min-height: auto;
  padding: 12px 14px;
  color: var(--hire-strong);
  background: rgba(99, 102, 241, 0.14);
  box-shadow: none;
  text-align: left;
}

.prompt-list button:hover {
  background: rgba(99, 102, 241, 0.24);
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--success);
  font-weight: 800;
}

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

.output,
.preview,
.chat-log {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
}

.output {
  margin-top: 14px;
  white-space: pre-wrap;
}

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

.preview {
  max-height: 320px;
  overflow: auto;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.chat-log {
  display: flex;
  max-height: 360px;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 16px;
}

.message.assistant {
  align-self: flex-start;
  color: var(--muted-strong);
  background: rgba(165, 180, 252, 0.12);
}

.message.user {
  align-self: flex-end;
  color: #070d1a;
  background: var(--hire);
}

.site-footer {
  padding: 48px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 46px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: var(--muted);
}

.footer-brand hr {
  width: 100%;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.site-footer section {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer h4 {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .site-header,
  .nav-links,
  .header-actions,
  .footer-bottom {
    flex-wrap: wrap;
  }

  .hero-shell,
  .auth-section,
  .connector-layout,
  .product-grid,
  .pricing-grid,
  .grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .hero-shell,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .upload-form,
  .chat-form,
  .connector-buttons,
  .connector-search {
    grid-template-columns: 1fr;
  }

  .file-picker {
    align-items: stretch;
    flex-direction: column;
  }
}
