@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

/* ===================== Landing page ===================== */
.apg-landing {
  position: relative;
  color: #f4f4f7;
  background: #07070b;
  overflow-x: hidden;
  padding-bottom: 60px;
}
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60vw 60vw at 75% -10%, rgba(10, 132, 255, 0.28), transparent 60%),
    radial-gradient(50vw 50vw at 0% 20%, rgba(191, 90, 242, 0.18), transparent 60%),
    #07070b;
  pointer-events: none;
}
.apg-landing > *:not(.landing-bg) {
  position: relative;
  z-index: 1;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
}
.brand-muted {
  color: #8e8e96;
  font-weight: 600;
}
.landing-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.muted-link {
  color: #c7c7cf;
  text-decoration: none;
  font-size: 14px;
}
.muted-link:hover {
  color: #fff;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0a84ff, #0a6fff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(10, 132, 255, 0.5);
}
.cta-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}
.ghost {
  color: #d7d7df;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}
.hero {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 8vw, 90px) clamp(16px, 5vw, 40px) 30px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #8ab4ff;
  font-weight: 600;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(34px, 6.5vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(120deg, #0a84ff, #bf5af2 60%, #ff9f0a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(16px, 2.4vw, 20px);
  color: #b9b9c3;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.window {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  background: #1c1c1e;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #2a2a2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tl-r {
  background: #ff5f57;
}
.tl-y {
  background: #febc2e;
}
.tl-g {
  background: #28c840;
}
.window-title {
  margin: 0 auto;
  font-size: 13px;
  color: #9b9ba1;
  font-weight: 600;
}
.window-body {
  display: flex;
  min-height: 320px;
  text-align: left;
}
.wb-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
}
.wb-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #d7d7df;
}
.wb-row--active {
  background: #0a84ff;
  color: #fff;
}
.wb-ico {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.7;
}
.wb-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
  padding: 12px;
}
.wb-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, #3a3a3c, #2a2a2c);
  animation: wb-fade 0.5s ease both;
}
@keyframes wb-fade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.usage {
  max-width: 760px;
  margin: 70px auto 0;
  padding: 0 clamp(16px, 5vw, 24px);
  text-align: center;
}
.usage h2,
.final h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.code {
  text-align: left;
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: #d7e0ff;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}
.usage-note {
  color: #9b9ba1;
  font-size: 14px;
  margin-top: 16px;
}
.usage-note code,
.landing-foot code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}
.features {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 clamp(16px, 5vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: #a9a9b3;
  font-size: 14px;
  line-height: 1.5;
}
.final {
  text-align: center;
  margin: 80px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.final p {
  color: #a9a9b3;
  margin: 0;
}
.landing-foot {
  text-align: center;
  color: #6e6e78;
  font-size: 13px;
  margin-top: 60px;
  padding: 0 20px;
}
@media (max-width: 620px) {
  .wb-sidebar {
    display: none;
  }
}

