:root {
  --blue: #0066cc;
  --blue-dark: #004c99;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  height: 30px;
  width: auto;
}

.logo-tagline {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .logo-tagline {
    display: none;
  }
}

.nav-links {
  display: none;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover {
  background: var(--slate-100);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  padding: 8px 14px;
}

.btn-ghost:hover {
  color: var(--blue);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

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

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--slate-100) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero p {
  font-size: 1.1rem;
  color: var(--slate-500);
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.hero-badge {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-heading p {
  color: var(--slate-500);
  margin: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--slate-100);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.95rem;
}

/* Products */
.products-section {
  background: var(--slate-100);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08), 0 16px 32px rgba(15, 23, 42, 0.1);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: var(--slate-100);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--slate-900);
}

.product-brand {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0 0 4px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-900);
}

.price-lg {
  font-size: 1.6rem;
  margin: 8px 0;
}

.stock-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16803c;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

.product-cta {
  padding: 0 18px 18px;
}

/* Agent access panel */
.agent-panel {
  background: var(--slate-900);
  color: var(--white);
}

.agent-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 900px) {
  .agent-panel-inner {
    flex-direction: row;
    align-items: center;
  }
}

.agent-panel-text {
  flex: 1;
}

.agent-panel-text h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.agent-panel-text p {
  color: var(--slate-200);
  margin: 0 0 16px;
}

.agent-endpoints {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.85rem;
}

.agent-endpoints .endpoint-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-endpoints .endpoint-row:last-child {
  border-bottom: none;
}

.endpoint-label {
  color: var(--slate-200);
}

.endpoint-path {
  color: #7dd3fc;
  word-break: break-all;
  text-align: right;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 40px 0;
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--slate-500);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 16px;
}

/* Product detail page */
.product-page {
  padding: 48px 20px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .product-page {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.product-page-image {
  border-radius: var(--radius);
  background: var(--slate-100);
  width: 100%;
  height: auto;
}

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.product-page-desc {
  color: var(--slate-500);
}

.checkout-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 12px;
}
