/* Shared "marketing component library" reused across index/about/careers/legal/services/blog-post
 * pages (previously duplicated near-verbatim per page). Loaded after base.css, before each page's
 * own remaining (page-specific) content CSS. */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    black 40%,
    transparent 100%
  );
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
.hero-h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}
#situation {
  background: #192230;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.situation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.situation-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.situation-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.situation-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
#who {
}
.who-header {
  text-align: center;
  margin-bottom: 64px;
}
.who-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.who-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.who-card {
  position: relative;
  padding: 36px 34px 76px;
  background: #192230;
  border-radius: 24px;
  overflow: visible;
  transition: background var(--transition);
}
.who-card:hover {
  background: #35599c;
}
.who-card-notch {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 0 40px 0 0;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
#how-we-work {
}
.how-header {
  text-align: center;
  margin-bottom: 64px;
}
.how-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.how-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-step-notch {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 0 0 0 40px;
}
.how-step-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.how-step-badge svg {
  width: 18px;
  height: 18px;
}
@keyframes howStepCardSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes howStepArrowNext {
  to {
    transform: rotate(630deg);
  }
}
@keyframes howStepArrowLoop {
  to {
    transform: rotate(450deg);
  }
}
.how-step.spin-in {
  animation: howStepCardSpin 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.how-step.spin-in .how-step-badge {
  animation: howStepArrowNext 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: inherit;
}
.how-step.spin-in:last-child .how-step-badge {
  animation-name: howStepArrowLoop;
}
.how-steps .how-step:nth-child(1).spin-in {
  animation-delay: 0s;
}
.how-steps .how-step:nth-child(2).spin-in {
  animation-delay: 0.35s;
}
.how-steps .how-step:nth-child(3).spin-in {
  animation-delay: 0.7s;
}
.how-steps .how-step:nth-child(4).spin-in {
  animation-delay: 1.05s;
}
#why-us {
  background: var(--bg);
}
.why-header {
  text-align: center;
  margin-bottom: 80px;
}
.why-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.why-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}
#stack {
  background: #192230;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stack-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.stack-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stack-category {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stack-category-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-tag {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  color: var(--text);
  transition:
    border-color var(--transition),
    background var(--transition);
}
.stack-tag:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}
#industries {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.industries-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
#approach {
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.approach-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.approach-right {
  display: flex;
  flex-direction: column;
}
.approach-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.approach-item:first-child {
  border-top: 1px solid var(--border);
}
.approach-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.approach-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 44px;
}
.pixel-wrap {
  position: relative;
  flex: 1;
  min-height: 1em;
}
.pixel-wrap canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  color: var(--text-secondary);
}
.scroll-cue svg {
  animation: scrollCueBounce 1.8s ease-in-out infinite;
}
@keyframes scrollCueBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}
#values {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-header {
  text-align: center;
  margin-bottom: 64px;
}
.values-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.values-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value-icon {
  font-size: 26px;
  margin-bottom: 20px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
#careers {
}
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.careers-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.careers-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.careers-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.careers-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.careers-perk::before {
  content: "✓";
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.careers-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.careers-form h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-light);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--bg);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition:
    border-color var(--transition),
    color var(--transition);
}
.file-upload-label:hover {
  border-color: #555;
  color: var(--text);
}
input[type="file"] {
  display: none;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}
.form-submit:hover {
  background: #e8e8e8;
}
.cta-box {
  position: relative;
  text-align: center;
  padding: 100px 80px;
  background: linear-gradient(120deg, #8baac2, #def0fa, #8baac2);
  background-size: 200% 200%;
  animation: ctaGradientShift 6s ease-in-out infinite;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
@keyframes ctaGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.cta-glow {
  display: none;
}
.cta-box h2 .dim {
  color: rgba(6, 6, 6, 0.6);
}
.cta-box p {
  font-size: 18px;
  color: #060606;
  opacity: 0.75;
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.cta-buttons .btn-ghost {
  border-color: rgba(6, 6, 6, 0.4);
  color: #060606;
}
@media (hover: hover) {
  .cta-buttons .btn-ghost:hover {
    border-color: #060606;
    background: rgba(6, 6, 6, 0.08);
  }
}
.reveal-left {
  transform: translateX(-60px);
}
.reveal-left.visible {
  transform: translateX(0);
}
.reveal-right {
  transform: translateX(60px);
}
.reveal-right.visible {
  transform: translateX(0);
}
.page-hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.page-hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: 64px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--text);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 20px;
}
.page-hero .dek {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.7;
}
.prose-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 760px;
}
.prose-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 760px;
}
.section-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}
.card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.closing-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2px;
}
.closing-links a:hover {
  border-color: var(--text);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
}
.hero-h1 .dim {
  color: var(--text-secondary);
}
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.situation-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.situation-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.situation-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.situation-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.who-card-icon {
  font-size: 22px;
  margin-bottom: 20px;
}
.who-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
#services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-header {
  margin-bottom: 64px;
}
.services-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 600px;
}
.services-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  padding: 48px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.service-card:nth-child(even) {
  border-right: none;
}
.service-card:nth-child(3),
.service-card:nth-child(4) {
  border-bottom: none;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.02);
}
.service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-tag {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}
.service-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color var(--transition),
    gap var(--transition);
}
.service-card:hover .service-link {
  color: var(--text);
  gap: 10px;
}
.how-step {
  position: relative;
  padding: 76px 28px 28px;
  border-radius: 24px;
  background: #192230;
  overflow: visible;
}
.how-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.why-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 0;
}
.why-label-col {
  padding: 16px 4px 0;
}
.why-label-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.why-label-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.why-label-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.stack-header {
  margin-bottom: 64px;
}
.stack-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
}
.industries-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.industries-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.industry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding-left var(--transition);
}
.industry-item:first-child {
  border-top: 1px solid var(--border);
}
.industry-item:hover {
  padding-left: 8px;
}
.industry-name {
  font-size: 16px;
  font-weight: 500;
}
.industry-num {
  font-size: 12px;
  color: var(--text-muted);
}
.approach-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
#cta {
}
.cta-box h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: #060606;
}
.hero-accent {
  color: #8fc7e8;
}
