/* agjentiX landing — Shpatumate / Cockpit dark tokens */
:root {
  --bg-deep: #070b14;
  --bg-surface: #0f1524;
  --bg-elevated: #161e2e;
  --bg-card: #121a2a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.1);
  --text-primary: #e8eef7;
  --text-secondary: #8b9bb4;
  --text-muted: #5a6a82;
  --accent: #00d4c8;
  --accent-2: #5b8def;
  --accent-soft: rgba(0, 212, 200, 0.12);
  --accent-glow: rgba(0, 212, 200, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: nowrap;
}

.nav-links .lang-switch {
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #041016;
  box-shadow: 0 0 0 1px rgba(0, 212, 200, 0.2), 0 8px 24px rgba(0, 212, 200, 0.18);
}

.btn-primary:hover {
  color: #041016;
  box-shadow: 0 0 0 1px rgba(0, 212, 200, 0.35), 0 10px 28px rgba(0, 212, 200, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.65;
}

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

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto;
  height: 50%;
  background: radial-gradient(ellipse, rgba(0, 212, 200, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Hub mock */
.hub-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), 0 0 60px rgba(0, 212, 200, 0.06);
  overflow: hidden;
}

.hub-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.hub-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4558;
}

.hub-dot:nth-child(1) { background: #ef4444; opacity: 0.7; }
.hub-dot:nth-child(2) { background: #f59e0b; opacity: 0.7; }
.hub-dot:nth-child(3) { background: #22c55e; opacity: 0.7; }

.hub-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hub-body {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 260px;
}

.hub-side {
  background: rgba(0, 0, 0, 0.22);
  border-right: 1px solid var(--border-subtle);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hub-side span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.hub-side span.active {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 200, 0.25);
}

.hub-main {
  padding: 0.9rem;
}

.hub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.hub-row strong {
  font-weight: 600;
  color: var(--text-primary);
}

.pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pill.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.hub-flow {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hub-flow b {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Cards / grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card.featured {
  border-color: rgba(0, 212, 200, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 212, 200, 0.1), var(--shadow-soft);
  position: relative;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #041016;
  background: var(--accent);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.price span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.problem-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.problem-list li {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.step-card {
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

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

.faq details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.faq p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Form */
.apply-panel {
  max-width: 520px;
  margin: 2rem auto 0;
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: rgba(0, 212, 200, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 0.75rem;
}

.form-status.error {
  color: #f87171;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.final-cta {
  text-align: center;
}

.final-cta .hero-ctas {
  justify-content: center;
}

/* Tablet / iPad (portrait) and below */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem 1rem 1.1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    max-height: min(80vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    outline: none;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.15rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero-ctas {
    width: 100%;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
  }

  .price {
    word-break: break-word;
  }
}

/* Phone */
@media (max-width: 480px) {
  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hub-body {
    grid-template-columns: 1fr;
  }

  .hub-side {
    display: none;
  }

  .btn-lg {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* ── Use Cases page (tabbed, compact) ─────────────────────────────── */
.usecases-page .usecases-hero {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.usecases-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.usecases-intro h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.usecases-intro .lead {
  font-size: 1rem;
  margin: 0;
}

.usecases-disclaimer {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.usecases-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 340px;
  max-height: min(520px, 70vh);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.usecases-shell-rich {
  max-height: min(640px, 78vh);
  min-height: 420px;
}

.usecase-blocks {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.usecase-block {
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
}

.usecase-block-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.usecase-block .usecase-story {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.usecase-bridge {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.usecase-bridge a {
  color: var(--accent);
  text-decoration: none;
}

.usecase-bridge a:hover {
  text-decoration: underline;
}

.usecases-pattern {
  padding: 1rem 1.15rem;
}

.usecases-disclaimer strong {
  color: var(--text-secondary);
}

/* Scope / “What you actually get” cards */
.grid-scope {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.scope-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.scope-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .grid-scope {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-scope {
    grid-template-columns: 1fr;
  }
}

.usecases-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.22);
  border-right: 1px solid var(--border-subtle);
  padding: 0.4rem;
}

.usecase-tab {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.usecase-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.usecase-tab.is-active {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: rgba(0, 212, 200, 0.28);
  box-shadow: inset 2px 0 0 var(--accent);
}

.usecases-panels {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.usecase-panel {
  display: none;
  height: 100%;
  padding: 1.15rem 1.35rem 1.25rem;
  overflow-y: auto;
}

.usecase-panel.is-active {
  display: block;
}

.usecase-panel[hidden] {
  display: none !important;
}

.usecase-head {
  margin-bottom: 0.65rem;
}

.usecase-industry {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.usecase-company {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.usecase-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.usecase-story {
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 52rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.7rem;
  min-height: 4.25rem;
}

.kpi-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.usecases-footer-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.usecases-footer-cta .muted {
  margin: 0;
  font-size: 0.9rem;
  max-width: 28rem;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 900px) {
  .usecases-intro {
    grid-template-columns: 1fr;
  }

  .usecases-shell,
  .usecases-shell-rich {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }

  .usecases-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.25rem;
    padding: 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .usecase-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
    min-height: 44px;
  }

  .usecase-tab.is-active {
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .usecase-panel {
    max-height: none;
  }

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

  .usecases-footer-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .usecases-footer-cta .hero-ctas {
    width: 100%;
    justify-content: stretch;
  }

  .usecases-footer-cta .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
