/* Applied Agentics — Premium Styles */

/* ── Design Tokens ── */
:root {
  --font-heading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Primary: Sky */
  --sky-50: #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;
  --sky-600: #0284C7;
  --sky-700: #0369A1;
  --sky-800: #075985;
  --sky-900: #0C4A6E;

  /* Accent: Tangerine */
  --tangerine-50: #FFF7ED;
  --tangerine-100: #FFEDD5;
  --tangerine-200: #FED7AA;
  --tangerine-300: #FDBA74;
  --tangerine-400: #FB923C;
  --tangerine-500: #F97316;
  --tangerine-600: #EA580C;
  --tangerine-700: #C2410C;
  --tangerine-800: #9A3412;

  /* Product: AgentFlows (indigo/bluish-purple) */
  --flows-50: #EEF2FF;
  --flows-100: #E0E7FF;
  --flows-400: #818CF8;
  --flows-500: #6366F1;
  --flows-600: #4F46E5;
  --flows-700: #4338CA;

  /* Product: AgentCamp (orange #FD4F00) */
  --camp-50: #FFF5F0;
  --camp-100: #FFE6D9;
  --camp-400: #FF7A3D;
  --camp-500: #FD4F00;
  --camp-600: #E04600;
  --camp-700: #C23D00;

  /* Product: AgentPros (teal #1CBBB4) */
  --pros-50: #F0FDFC;
  --pros-100: #CCFBF1;
  --pros-400: #2DD4BF;
  --pros-500: #1CBBB4;
  --pros-600: #1CBBB4;
  --pros-700: #0D9488;

  /* Neutrals */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.15;
}

/* ── Bulma Overrides ── */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  box-shadow: none;
  min-height: 64px;
}
.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-900);
  gap: 10px;
}
.navbar-item {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  transition: color 0.15s ease;
}
.navbar-item:hover {
  color: var(--slate-900);
  background: transparent !important;
}

/* ── Logo Icon ── */
.aa-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--sky-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aa-logo-icon svg { color: #fff; }

/* ── Hero ── */
.aa-hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, var(--sky-50) 35%, #fff 65%, var(--tangerine-50) 100%);
}
.aa-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.aa-hero-blob-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: var(--sky-500);
  opacity: 0.06;
}
.aa-hero-blob-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  background: var(--tangerine-500);
  opacity: 0.05;
}

/* Hero layout */
.aa-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

/* ── Stacked Product Cards ── */
.aa-hero-visual {
  position: relative;
  height: 380px;
  justify-self: end;
  margin-right: 64px;
  width: 320px;
}

.aa-mini-card {
  position: absolute;
  width: 280px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  text-decoration: none;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, z-index 0s;
}
.aa-mini-card:hover {
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
}

.aa-mini-card-1 {
  bottom: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-2deg);
  border-left: 4px solid var(--pros-500);
}
.aa-mini-card-1:hover { transform: rotate(0deg) scale(1.08); }

.aa-mini-card-2 {
  bottom: 100px;
  left: 24px;
  z-index: 2;
  transform: rotate(1.5deg);
  border-left: 4px solid var(--flows-500);
}
.aa-mini-card-2:hover { transform: rotate(0deg) scale(1.08); }

.aa-mini-card-3 {
  bottom: 200px;
  left: 8px;
  z-index: 1;
  transform: rotate(-1deg);
  border-left: 4px solid var(--camp-500);
}
.aa-mini-card-3:hover { transform: rotate(0deg) scale(1.08); }

.aa-mini-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.aa-mini-card-1 .aa-mini-card-name { color: var(--pros-500); }
.aa-mini-card-2 .aa-mini-card-name { color: var(--flows-500); }
.aa-mini-card-3 .aa-mini-card-name { color: var(--camp-500); }

.aa-mini-card-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 10px;
}
.aa-mini-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-500);
}

.aa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-700);
  margin-bottom: 24px;
}
.aa-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-500);
}

.aa-hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--slate-900);
  margin-bottom: 20px;
  max-width: 640px;
}
.aa-gradient-text {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.aa-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate-500);
  max-width: 520px;
  margin-bottom: 32px;
}
.aa-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.aa-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--sky-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(2,132,199,0.2);
}
.aa-btn-primary:hover {
  background: var(--sky-700);
  box-shadow: 0 4px 12px rgba(2,132,199,0.25);
  transform: translateY(-1px);
  color: #fff;
}
.aa-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--tangerine-600);
  border: 1px solid var(--tangerine-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.aa-btn-secondary:hover {
  background: var(--tangerine-50);
  border-color: var(--tangerine-300);
  color: var(--tangerine-700);
}

/* ── Social Proof / Logo Strip ── */
.aa-logos {
  padding: 48px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: #fff;
}
.aa-logos-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  text-align: center;
  margin-bottom: 32px;
}
.aa-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.aa-logo-item {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-300);
  letter-spacing: -0.02em;
  user-select: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.aa-logo-item:hover {
  color: var(--slate-400);
}

@media (max-width: 768px) {
  .aa-logos-row { gap: 28px 36px; }
  .aa-logo-item { font-size: 15px; }
}

/* ── Products Section — Editorial rows ── */
.aa-products {
  padding: 72px 0 64px;
  border-top: 1px solid var(--slate-100);
}
.aa-section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 8px;
}
.aa-section-sub {
  font-size: 16px;
  color: var(--slate-500);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 40px;
}

.aa-prod-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--slate-100);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.aa-prod-row:first-child { border-top: 1px solid var(--slate-100); }
.aa-prod-row:hover { padding-left: 20px; }

.aa-prod-row-name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}
.aa-prod-row.flows .aa-prod-row-name { color: var(--flows-500); }
.aa-prod-row.camp .aa-prod-row-name { color: var(--camp-600); }
.aa-prod-row.pros .aa-prod-row-name { color: var(--pros-600); }
.aa-prod-row:hover .aa-prod-row-name { opacity: 0.8; }

.aa-prod-row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-top: 4px;
}

.aa-prod-row-body {
  max-width: 400px;
}
.aa-prod-row-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-500);
}

.aa-prod-row-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.aa-prod-row-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.aa-prod-row.flows .aa-prod-row-arrow { background: var(--flows-50); color: var(--flows-500); }
.aa-prod-row.camp .aa-prod-row-arrow { background: var(--camp-50); color: var(--camp-600); }
.aa-prod-row.pros .aa-prod-row-arrow { background: var(--pros-50); color: var(--pros-600); }
.aa-prod-row:hover .aa-prod-row-arrow svg { transform: translateX(4px); }
.aa-prod-row.flows:hover .aa-prod-row-arrow { background: var(--flows-500); color: #fff; }
.aa-prod-row.camp:hover .aa-prod-row-arrow { background: var(--camp-600); color: #fff; }
.aa-prod-row.pros:hover .aa-prod-row-arrow { background: var(--pros-600); color: #fff; }

/* ── Manifesto Section ── */
.aa-manifesto {
  padding: 120px 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  position: relative;
  overflow: hidden;
}
.aa-manifesto-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--sky-500);
  opacity: 0.03;
  filter: blur(100px);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.aa-manifesto-lead {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  max-width: 720px;
  margin-bottom: 56px;
  position: relative;
}
.aa-manifesto-lead .aa-highlight {
  color: var(--sky-600);
}

.aa-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.aa-manifesto-item {
  position: relative;
}
.aa-manifesto-number {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.aa-manifesto-item:nth-child(1) .aa-manifesto-number { color: var(--flows-400); }
.aa-manifesto-item:nth-child(2) .aa-manifesto-number { color: var(--camp-400); }
.aa-manifesto-item:nth-child(3) .aa-manifesto-number { color: var(--pros-400); }

.aa-manifesto-phrase {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.aa-manifesto-detail {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-500);
}

/* ── Light CTA ── */
.aa-cta {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--sky-50) 0%, #fff 50%, var(--tangerine-50) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aa-cta h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.aa-cta p {
  font-size: 16px;
  color: var(--slate-500);
  margin-bottom: 32px;
}
.aa-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.aa-footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.aa-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* Brand column */
.aa-footer-brand-col {
  padding-right: 24px;
}
.aa-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.aa-footer-logo {
  width: 32px;
  height: 32px;
  background: var(--sky-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aa-footer-logo svg { color: #fff; }
.aa-footer-brand-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}
.aa-footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate-500);
  margin-bottom: 20px;
  max-width: 280px;
}
.aa-footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
.aa-footer-email:hover { color: var(--sky-700); }
.aa-footer-email svg {
  width: 16px;
  height: 16px;
}

/* Link columns */
.aa-footer-col-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 20px;
}
.aa-footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aa-footer-col-links li {
  margin-bottom: 12px;
}
.aa-footer-col-links a {
  font-size: 14px;
  color: var(--slate-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.aa-footer-col-links a:hover { color: var(--sky-600); }

/* Product link color dots */
.aa-footer-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.aa-footer-dot.pros { background: var(--pros-500); }
.aa-footer-dot.flows { background: var(--flows-500); }
.aa-footer-dot.camp { background: var(--camp-500); }

/* Bottom bar */
.aa-footer-bottom {
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aa-footer-copy {
  font-size: 13px;
  color: var(--slate-400);
}
.aa-footer-legal {
  display: flex;
  gap: 24px;
}
.aa-footer-legal a {
  font-size: 13px;
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.15s ease;
}
.aa-footer-legal a:hover { color: var(--sky-600); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .aa-hero .container { grid-template-columns: 1fr; }
  .aa-hero-visual {
    width: 260px;
    height: 310px;
    margin: 24px auto 0;
    justify-self: center;
  }
  .aa-mini-card { width: 230px; padding: 18px 22px; }
  .aa-mini-card-1 { bottom: 0; left: 10px; animation: aa-peek-1 5s ease 0s infinite; }
  .aa-mini-card-2 { bottom: 85px; left: 20px; animation: aa-peek-2 5s ease 1.7s infinite; }
  .aa-mini-card-3 { bottom: 170px; left: 5px; animation: aa-peek-3 5s ease 3.4s infinite; }
  .aa-hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #fff 0%, var(--sky-50) 50%, #fff 100%);
  }
  .aa-hero-title { font-size: 36px; }
  .aa-hero-desc { font-size: 16px; }
  .aa-products { padding: 64px 0 48px; }
  .aa-manifesto { padding: 64px 0; }
  .aa-manifesto-lead { font-size: 28px; margin-bottom: 40px; }
  .aa-manifesto-grid { grid-template-columns: 1fr; gap: 36px; }
  .aa-manifesto-number { font-size: 48px; }
  .aa-cta { padding: 56px 0; }
  .aa-section-title { font-size: 26px; }
  .aa-hero-actions { flex-direction: column; }
  .aa-hero-actions a { text-align: center; justify-content: center; }
  .aa-cta-actions { flex-direction: column; align-items: center; }
  .aa-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .aa-footer-brand-col { grid-column: 1 / -1; }
  .aa-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .aa-footer-legal { gap: 16px; }
  .aa-prod-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .aa-prod-row:hover { padding-left: 0; }
  .aa-prod-row-name { font-size: 24px; }
  .aa-prod-row-arrow { display: none; }
}

/* ── Mobile card peek animations (B-subtle: ease, overshoot 1.04 → settle 1.03) ── */
@keyframes aa-peek-1 {
  0%, 100% { transform: rotate(-2deg) scale(1); z-index: 3; }
  4% { transform: rotate(0deg) scale(1.04); z-index: 10; }
  8%, 24% { transform: rotate(0deg) scale(1.03); z-index: 10; }
  28% { transform: rotate(-1deg) scale(1.005); z-index: 10; }
}
@keyframes aa-peek-2 {
  0%, 100% { transform: rotate(1.5deg) scale(1); z-index: 2; }
  4% { transform: rotate(0deg) scale(1.04); z-index: 10; }
  8%, 24% { transform: rotate(0deg) scale(1.03); z-index: 10; }
  28% { transform: rotate(0.5deg) scale(1.005); z-index: 10; }
}
@keyframes aa-peek-3 {
  0%, 100% { transform: rotate(-1deg) scale(1); z-index: 1; }
  4% { transform: rotate(0deg) scale(1.04); z-index: 10; }
  8%, 24% { transform: rotate(0deg) scale(1.03); z-index: 10; }
  28% { transform: rotate(-0.5deg) scale(1.005); z-index: 10; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .aa-hero-title { font-size: 44px; }
  .aa-manifesto-lead { font-size: 36px; }
  .aa-prod-row { grid-template-columns: 160px 1fr auto; }
  .aa-prod-row-name { font-size: 26px; }
}

/* ── Consistent container padding below Bulma max-width ── */
@media (max-width: 1023px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
