/* Pragma Labs · landing styles */

:root {
  --bg: #15181D;
  --bg-2: #1D2026;
  --surface: #1F232A;
  --surface-2: #242830;
  --surface-3: #2C3039;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #8A94A7;
  --text-dim: #6b7384;
  --brand-cyan: #00BFFB;
  --brand-blue: #0270D7;
  --brand-blue-2: #0F8AFD;
  --gradient: linear-gradient(135deg, #00BFFB 0%, #0270D7 100%);
  --gradient-button: linear-gradient(135deg, #0F8AFD 0%, #0258B0 100%);
  --gradient-button-hover: linear-gradient(135deg, #1F95FF 0%, #0367C9 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 191, 251, 0.16) 0%, rgba(2, 112, 215, 0.16) 100%);
  --shadow-glow: 0 30px 80px -20px rgba(2, 112, 215, 0.45);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

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

/* Background ambience */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0, 191, 251, 0.10), transparent 60%),
    radial-gradient(700px 600px at -10% 30%, rgba(2, 112, 215, 0.10), transparent 65%),
    radial-gradient(500px 500px at 50% 110%, rgba(15, 138, 253, 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(21, 24, 29, 0.78);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img { width: 28px; height: 32px; }
.brand-text { font-size: 16px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button-primary,
.button-primary:link,
.button-primary:visited,
.button-primary:hover,
.button-primary:active,
.button-primary:focus {
  color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-font-smoothing: antialiased;
}

.button-primary {
  background: var(--gradient-button);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 30px -8px rgba(2, 112, 215, 0.55);
}

.button-primary:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 36px -8px rgba(2, 112, 215, 0.7);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button-ghost:hover {
  border-color: var(--brand-cyan);
  background: rgba(0, 191, 251, 0.06);
}

.button-sm { padding: 9px 16px; font-size: 13px; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan);
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 24px 0 20px;
  max-width: 14ch;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.trust-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  font-weight: 600;
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 16px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

/* Products grid */
.products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  grid-column: span 3;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)) ,
    var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.product-card.feature { grid-column: span 6; min-height: 300px; }
.product-card.span-2  { grid-column: span 2; }
.product-card.span-4  { grid-column: span 4; }

.product-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 191, 251, 0.4), transparent 40%, rgba(2, 112, 215, 0.4));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -24px rgba(2, 112, 215, 0.35);
}

.product-card:hover::after { opacity: 1; }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(0, 191, 251, 0.10);
  border: 1px solid rgba(0, 191, 251, 0.22);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 18px;
}

.product-tag.muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.product-name {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.product-card.feature .product-name {
  font-size: 28px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-cyan);
  margin: 0 0 20px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.product-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.product-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-weight: 500;
}

.product-card .glyph {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 200px;
  height: 200px;
  opacity: 0.18;
  pointer-events: none;
  filter: blur(0.2px);
}

/* Approach section */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.approach-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.approach-num {
  font-family: 'IBM Plex Sans', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.approach-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.approach-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

/* Highlight banner */
.highlight {
  position: relative;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(0, 191, 251, 0.18), transparent 70%),
    radial-gradient(600px 240px at 100% 100%, rgba(2, 112, 215, 0.18), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.highlight h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.highlight p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 16px;
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 24, 29, 0.55);
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* CTA */
.cta-block {
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(0, 191, 251, 0.16), transparent 70%),
    var(--bg-2);
}

.cta-block h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.cta-block p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 96px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-links, .footer-social {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  color: var(--brand-cyan);
  border-color: rgba(0, 191, 251, 0.4);
  background: rgba(0, 191, 251, 0.06);
}

.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-copyright {
  color: var(--text-dim);
  font-size: 13px;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero visual */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.orbit-2 { inset: 12%; border-color: rgba(0,191,251,0.18); }
.orbit-3 { inset: 24%; border-color: rgba(2,112,215,0.20); }
.orbit-4 { inset: 36%; border-color: var(--border-strong); }

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  height: 28%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gradient);
  box-shadow:
    0 0 0 6px rgba(2,112,215,0.18),
    0 0 60px rgba(0,191,251,0.45),
    inset 0 0 30px rgba(255,255,255,0.18);
}

.orbit-pip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 16px var(--brand-cyan);
  transform: translate(-50%, -50%);
}

.orbit-pip.cyan  { background: var(--brand-cyan); }
.orbit-pip.blue  { background: var(--brand-blue-2); box-shadow: 0 0 16px var(--brand-blue-2); }
.orbit-pip.dim   { background: #fff; opacity: 0.55; box-shadow: none; }

@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

.orbit-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin-cw 28s linear infinite;
}
.orbit-spin.fast { animation-duration: 18s; }
.orbit-spin.rev  { animation: spin-ccw 36s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .orbit-spin { animation: none; }
}

/* About / 404 */
.simple-page {
  padding: 96px 0 64px;
}

.simple-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.simple-page p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 0 16px;
}

.simple-page .lead {
  font-size: 19px;
  color: var(--text);
}

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product-card,
  .product-card.feature,
  .product-card.span-2,
  .product-card.span-4 { grid-column: span 2; }
  .approach { grid-template-columns: 1fr; }
  .highlight { padding: 40px 28px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a:not(.button) { display: none; }
  .products { grid-template-columns: 1fr; }
  .product-card,
  .product-card.feature,
  .product-card.span-2,
  .product-card.span-4 { grid-column: span 1; }
  .highlight { padding: 32px 22px; }
  .highlight-stats { grid-template-columns: 1fr; }
  .site-footer-inner { justify-content: center; text-align: center; }
}
