/* AI Bank Design System — Builders Connect 2026 */
:root {
  --ab-bg: #ffffff;
  --ab-header-bg: #f8f9fa;
  --ab-border: #dadce0;
  --ab-text: #202124;
  --ab-text-2: #5f6368;
  --ab-font: 'Google Sans', Roboto, system-ui, -apple-system, sans-serif;
  --ab-accent: #1a73e8;
  --ab-accent-hover: #1557b0;
  --ab-accent-soft: #e8f0fe;
  --ab-accent-text: #1967d2;
  --ab-gold: #fbbc04;
  --ab-gold-rim: #f29900;
  --ab-radius: 12px;
  --ab-max-width: 960px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ab-font);
  color: var(--ab-text);
  background: radial-gradient(circle at 50% 0%, #f6f9fe 0%, #ffffff 85%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--ab-accent);
  outline-offset: 2px;
}

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

/* Header & Top Bar */
.site-header {
  border-bottom: 1px solid var(--ab-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ab-text);
  font-weight: 700;
  font-size: 20px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.demo-pill {
  font-size: 13px;
  color: var(--ab-text-2);
  background: #f1f3f4;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  padding: 5px 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-art {
  margin-bottom: 24px;
  width: 220px;
  height: 180px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--ab-text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--ab-text-2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--ab-accent);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover:not(:disabled) {
  background: var(--ab-accent-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ab-accent-text);
  border: 1px solid var(--ab-border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--ab-accent);
  background: var(--ab-accent-soft);
}

.btn-large {
  min-height: 52px;
  font-size: 18px;
  padding: 14px 28px;
  font-weight: 600;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Piggy Animation */
.piggy-body {
  transform-origin: 115px 160px;
  animation: piggySquash 4.5s ease-in-out infinite;
}

.piggy-coin {
  transform-origin: 114px 24px;
  animation: coinDrop 4.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

.piggy-shine {
  transform-origin: 52px 70px;
  animation: piggyShine 4.5s ease-out infinite;
}

@keyframes coinDrop {
  0%, 20% {
    transform: translateY(0);
    opacity: 1;
  }
  35.55% {
    transform: translateY(48px);
    opacity: 1;
  }
  35.6% {
    transform: translateY(48px);
    opacity: 0;
  }
  88.9% {
    transform: translateY(0);
    opacity: 0;
  }
  95%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes piggySquash {
  0%, 35.55% {
    transform: scale(1, 1);
  }
  36.88% {
    transform: scale(1.05, 0.94);
  }
  38.22% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes piggyShine {
  0%, 35.55% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
  36.8% {
    opacity: 1;
    transform: scale(1.1) rotate(20deg);
  }
  38.5% {
    opacity: 0.9;
    transform: scale(1) rotate(40deg);
  }
  41% {
    opacity: 0;
    transform: scale(0.3) rotate(60deg);
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .piggy-body,
  .piggy-coin,
  .piggy-shine {
    animation: none !important;
  }
  .piggy-coin {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .piggy-shine {
    opacity: 0 !important;
  }
}

.panel-section {
  scroll-margin-top: 60px;
}

.panel-section[hidden] {
  display: none !important;
}

/* Simulator Section */
.simulator-section {
  margin: 36px 0 60px;
}

.clean-simulator-wrapper {
  max-width: 660px;
  margin: 0 auto;
  border-radius: var(--ab-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ab-border);
  background: #ffffff;
}

.simulator-iframe {
  width: 100%;
  height: 570px;
  border: none;
  display: block;
  background: #ffffff;
  overflow: hidden;
}

.frame-caption {
  font-size: 14px;
  color: var(--ab-text-2);
  text-align: center;
  margin-top: 14px;
}

/* AI Assistant Section */
.ai-section {
  max-width: 660px;
  margin: 36px auto 60px;
  background: #ffffff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.ai-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ai-intro {
  font-size: 17px;
  color: var(--ab-text-2);
  line-height: 1.5;
  margin-bottom: 24px;
}

.mcp-box {
  background: #f8f9fa;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mcp-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  color: var(--ab-text);
  word-break: break-all;
}

.btn-copy {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  background: #ffffff;
  color: var(--ab-text);
  border: 1px solid var(--ab-border);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-copy:hover {
  background: #f1f3f4;
  border-color: #c6c6c6;
}

.mcp-protocol-note {
  font-size: 13px;
  color: var(--ab-text-2);
  margin-bottom: 28px;
}

.claude-cta-wrap {
  margin-bottom: 24px;
}

.other-assistants {
  font-size: 15px;
  color: var(--ab-text-2);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ab-border);
}

.specs-list {
  font-size: 14px;
  color: var(--ab-text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.specs-list a {
  color: var(--ab-accent-text);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.specs-list a:hover {
  text-decoration: underline;
}

/* Hand-off Page /open Styles */
.handoff-wrap {
  padding: 56px 20px 72px;
  max-width: 620px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--ab-accent-soft);
  color: var(--ab-accent-text);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.badge:empty {
  display: none;
}

.handoff-wrap h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-card {
  background: #ffffff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 13px;
  color: var(--ab-text-2);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--ab-text);
}

.summary-value strong {
  font-size: 20px;
  color: var(--ab-accent-text);
}

.summary-line {
  padding-top: 16px;
  border-top: 1px solid #f1f3f4;
  font-size: 15px;
  color: var(--ab-text-2);
}

.summary-line strong {
  color: var(--ab-text);
}

.demo-note {
  font-size: 13px;
  color: var(--ab-text-2);
  margin-top: 12px;
  line-height: 1.45;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ab-accent-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  margin-top: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.demo-end-line {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--ab-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--ab-text-2);
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ab-border);
  padding: 36px 0 48px;
  text-align: center;
  font-size: 14px;
  color: var(--ab-text-2);
  margin-top: 64px;
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .hero {
    padding: 40px 10px 32px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .mcp-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-copy {
    width: 100%;
  }
  .claude-cta-wrap .btn {
    width: 100%;
  }
  .simulator-iframe {
    height: 500px;
  }
}
