/* ===== forge.it — Style ===== */
:root {
  --bg: #F0EEE6;
  --bg-warm: #EAE7DC;
  --bg-card: #FFFDF7;
  --ink: #141413;
  --ink-soft: #3D3D3A;
  --ink-mute: #6F6F68;
  --line: #D9D5C7;
  --coral: #D97757;
  --coral-dark: #B85A3D;
  --coral-soft: #F2C7B3;
  --plum: #6B4F8B;
  --sage: #8FA68E;
  --gold: #D4A84B;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(20,20,19,.04), 0 2px 8px rgba(20,20,19,.04);
  --shadow-md: 0 4px 12px rgba(20,20,19,.06), 0 16px 48px rgba(20,20,19,.08);
  --shadow-lg: 0 20px 60px rgba(20,20,19,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(240,238,230,.78);
  border-bottom: 1px solid rgba(217,213,199,.5);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  position: relative;
  box-shadow: 0 2px 8px rgba(217,119,87,.35);
}
.logo-mark::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 3px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 60%);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 2px;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--coral); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--coral); border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: var(--coral-soft); top: -120px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #E8D5F0; top: 40px; right: -140px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #D9E3D6; bottom: -120px; left: 35%; animation-delay: -12s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.06); }
  66% { transform: translate(-30px,40px) scale(.96); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,20,19,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,19,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px;
  background: rgba(217,119,87,.1); color: var(--coral-dark);
  border: 1px solid rgba(217,119,87,.2);
  border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Copernicus', Georgia, serif;
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--coral) 10%, var(--plum) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 40px;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 6px 20px rgba(20,20,19,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,20,19,.24); background: #000; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(20,20,19,.04); border-color: var(--ink-mute); }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-stats {
  display: inline-flex; gap: 32px; align-items: center;
  padding: 18px 28px;
  background: rgba(255,253,247,.6);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong {
  font-family: 'Copernicus', Georgia, serif;
  font-size: 28px; font-weight: 500; color: var(--ink);
}
.stat span { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.stat-divider { width: 1px; height: 32px; background: var(--line); }

/* ===== Steps section ===== */
.steps-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 80px;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-family: 'Copernicus', Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  min-height: 480px;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--plum));
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.step-card.is-visible::before { transform: scaleX(1); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card.reverse .step-body { order: 2; }
.step-card.reverse .step-visual { order: 1; }
.step-num {
  position: absolute;
  top: 28px; right: 36px;
  font-family: 'Copernicus', Georgia, serif;
  font-size: 84px; font-weight: 500;
  color: rgba(217,119,87,.12);
  line-height: 1;
  letter-spacing: -.04em;
}
.step-body h3 {
  font-family: 'Copernicus', Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.step-lede {
  font-size: 19px; color: var(--ink-soft); font-weight: 500;
  margin-bottom: 18px;
}
.step-desc {
  color: var(--ink-mute); font-size: 16px; line-height: 1.65;
  margin-bottom: 28px;
}
.step-features { list-style: none; }
.step-features li {
  position: relative; padding-left: 28px; padding-block: 6px;
  font-size: 15px; color: var(--ink-soft);
}
.step-features li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px;
  background: var(--coral);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

/* Step visuals */
.step-visual { display: flex; align-items: center; justify-content: center; }
.mock-window {
  width: 100%; max-width: 440px;
  background: #1A1A18;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20,20,19,.3);
  font-family: 'SF Mono', Monaco, monospace;
}
.mock-bar {
  background: #2A2A26;
  padding: 12px 16px;
  display: flex; gap: 7px;
}
.mock-bar span {
  width: 12px; height: 12px; border-radius: 50%;
  background: #4A4A45;
}
.mock-bar span:nth-child(1) { background: #FF5F57; }
.mock-bar span:nth-child(2) { background: #FEBC2E; }
.mock-bar span:nth-child(3) { background: #28C840; }
.mock-body { padding: 24px; color: #E8E6DC; font-size: 13.5px; line-height: 1.9; }
.mock-line.ok { color: var(--coral-soft); }
.mock-body .mock-line:first-child { color: #B8B8B0; }

.mock-chat {
  width: 100%; max-width: 440px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.msg {
  padding: 14px 18px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.5;
  animation: slideIn .6s var(--ease) both;
}
.msg.user {
  align-self: flex-end; max-width: 80%;
  background: var(--ink); color: var(--bg);
  border-bottom-right-radius: 4px;
}
.msg.ai {
  align-self: flex-start; max-width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  animation-delay: .15s;
}
.ai-head { font-size: 11px; font-weight: 600; color: var(--coral); margin-bottom: 6px; letter-spacing: .05em; text-transform: uppercase; }
.msg.ai em { color: var(--coral-dark); font-style: normal; font-weight: 500; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; animation: slideIn .6s var(--ease) .3s both; }
.pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(217,119,87,.12); color: var(--coral-dark);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-graph {
  width: 100%; max-width: 360px; aspect-ratio: 1;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.mock-graph svg { width: 100%; height: 100%; }
.mock-graph .links line {
  stroke: var(--coral); stroke-width: 1.2;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: drawLine 2s var(--ease) forwards;
  opacity: .5;
}
.mock-graph .links line:nth-child(2) { animation-delay: .2s; }
.mock-graph .links line:nth-child(3) { animation-delay: .3s; }
.mock-graph .links line:nth-child(4) { animation-delay: .4s; }
.mock-graph .links line:nth-child(5) { animation-delay: .5s; }
.mock-graph .links line:nth-child(6) { animation-delay: .6s; }
.mock-graph .links line:nth-child(7) { animation-delay: .7s; }
.mock-graph .links line:nth-child(8) { animation-delay: .8s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.mock-graph .node { fill: var(--coral); animation: pulse 2.4s ease-in-out infinite; }
.mock-graph .node.hub { fill: var(--plum); animation-delay: .3s; }
@keyframes pulse {
  0%,100% { transform: scale(1); transform-origin: center; }
  50% { opacity: .6; }
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-warm);
}
.cta-wrap {
  text-align: center;
  background: linear-gradient(135deg, var(--ink) 0%, #2A2826 100%);
  color: var(--bg);
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.cta-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(217,119,87,.25), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(107,79,139,.25), transparent 50%);
}
.cta-wrap > * { position: relative; z-index: 1; }
.cta-wrap h2 {
  font-family: 'Copernicus', Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.cta-wrap p { font-size: 18px; opacity: .8; margin-bottom: 32px; }
.cta-wrap .btn-primary {
  background: var(--coral); color: white;
  box-shadow: 0 8px 24px rgba(217,119,87,.4);
}
.cta-wrap .btn-primary:hover { background: var(--coral-dark); }

/* ===== Brains page ===== */
.brains-hero {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}
.brains-hero h1 {
  font-family: 'Copernicus', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.brains-hero .sub {
  font-size: 19px; color: var(--ink-soft);
  max-width: 620px; margin: 0 auto;
}
.brains-grid-section { padding: 60px 0 140px; }
.brains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}
.brain-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: var(--shadow-sm);
}
.brain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.brain-cover {
  aspect-ratio: 16/10;
  background: var(--bg-warm) center/cover no-repeat;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.brain-card:hover .brain-cover { transform: none; }
.brain-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,253,247,.92);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.brain-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.brain-body h3 {
  font-family: 'Copernicus', Georgia, serif;
  font-weight: 500; font-size: 22px;
  letter-spacing: -.01em;
}
.brain-body p { color: var(--ink-mute); font-size: 14.5px; line-height: 1.6; flex: 1; }
.brain-dl { align-self: flex-start; margin-top: 8px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 40px 0;
}
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--ink-mute);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.footer-meta { display: flex; align-items: center; gap: 16px; }
.footer-meta a:hover { color: var(--coral); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .step-card {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }
  .step-card.reverse .step-body { order: 0; }
  .step-card.reverse .step-visual { order: 1; }
  .step-num { font-size: 56px; top: 20px; right: 24px; }
  .hero { padding: 80px 0 100px; }
  .hero-stats { gap: 20px; padding: 14px 20px; }
  .stat strong { font-size: 22px; }
  .nav-links { gap: 20px; }
  .cta-wrap { padding: 56px 24px; }
}
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .nav-links a { font-size: 14px; }
  .logo-text { display: none; }
}
