:root {
  color-scheme: light;
  --bg: #eef4fb;
  --bg-deep: #0b1220;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #307fe2;
  --primary-dark: #2563b8;
  --primary-soft: rgba(48, 127, 226, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(48, 127, 226, 0.14);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 85% 0%, rgba(48, 127, 226, 0.16), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(48, 127, 226, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

img {
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 36px;
}

.section-head h2,
h1,
h3 {
  line-height: 1.35;
  margin: 0 0 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 38rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(238, 244, 251, 0.82);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

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

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.header-cta {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

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

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4d95ea);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 20px;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Hero */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(48, 127, 226, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.meta-chip strong {
  color: var(--text);
}

/* Hero preview mockup */

.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-window {
  width: min(100%, 420px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.preview-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.preview-titlebar span:first-child {
  background: #fca5a5;
}

.preview-titlebar span:nth-child(2) {
  background: #fcd34d;
}

.preview-titlebar span:nth-child(3) {
  background: #86efac;
}

.preview-titlebar p {
  margin: 0 auto 0 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.preview-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 280px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: #f1f5f9;
  border-inline-end: 1px solid var(--border);
}

.preview-sidebar span {
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
}

.preview-sidebar span.active {
  background: rgba(48, 127, 226, 0.18);
}

.preview-chat {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.bubble.user {
  align-self: flex-start;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 6px;
}

.bubble.agent {
  align-self: flex-end;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.bubble.agent p {
  margin: 8px 0 0;
}

.tool-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(48, 127, 226, 0.12);
  color: var(--primary-dark);
  font-size: 0.6875rem;
  font-weight: 700;
}

.bubble.approval {
  align-self: flex-end;
  background: white;
  border: 1px solid rgba(48, 127, 226, 0.22);
  box-shadow: var(--shadow-soft);
}

.bubble.approval p {
  margin: 0 0 10px;
  font-size: 0.75rem;
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.approval-actions span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #f1f5f9;
}

.approval-actions .ok {
  background: var(--primary);
  color: white;
}

/* Pillars */

.pillars {
  padding: 24px 0 64px;
}

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

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 127, 226, 0.24);
  box-shadow: var(--shadow);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 16px;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar-icon.chat {
  background: rgba(48, 127, 226, 0.12);
  color: var(--primary);
}

.pillar-icon.workspace {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.pillar-icon.companion {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.pillar-icon.settings {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.pillar-card h3 {
  font-size: 1.05rem;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.pillars-note {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: #1e3a5f;
  font-size: 0.9375rem;
}

/* Features bento */

.features {
  padding: 64px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.feature-large {
  grid-column: span 2;
}

.feature-wide {
  grid-column: span 3;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-card h3 {
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary);
  font-weight: 800;
}

.triple-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.triple-list strong {
  display: block;
  margin-bottom: 6px;
}

.triple-list p {
  margin: 0;
  font-size: 0.875rem;
}

/* MCP section */

.mcp-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a5f 55%, #307fe2);
  color: white;
}

.mcp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.mcp-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.mcp-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.check-list-light li {
  color: rgba(255, 255, 255, 0.82);
}

.check-list-light li::before {
  color: #93c5fd;
}

.mcp-visual {
  display: flex;
  justify-content: center;
}

.mcp-flow {
  width: min(100%, 360px);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.flow-node {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.flow-node.accent {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.flow-line {
  width: 2px;
  height: 22px;
  margin: 8px auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}

/* Start steps */

.start-section {
  padding: 72px 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
}

.step-card h3 {
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Privacy */

.privacy-section {
  padding: 56px 0;
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

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

.privacy-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Download */

.download {
  padding: 72px 0 80px;
}

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

.download-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease;
}

.download-card .platform {
  font-weight: 800;
  font-size: 1.125rem;
}

.download-card .label {
  color: var(--muted);
}

.download-card.disabled {
  opacity: 0.72;
  pointer-events: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  padding: 28px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.875rem;
}

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

.footer-domain {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8125rem;
}

.muted {
  margin: 0;
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .mcp-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

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

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

  .feature-large,
  .feature-wide {
    grid-column: span 1;
  }

  .triple-list {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .pillar-grid,
  .steps,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  h1 br {
    display: none;
  }
}
