/* ==========================================================================
   Bits N Pixels — Page sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--bg);
}

/* Ambient brand glow behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background: var(--glow);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

.hero__title {
  font-size: var(--fs-4xl);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
}

.hero__text {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: var(--sp-7);
  line-height: 1.7;
}

.hero__rule {
  width: 100%;
  max-width: 26rem;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.hero__meta-item strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__meta-item span {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

/* Decorative hero artwork, drawn in CSS — no image dependency */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
}

.hero__orb {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 148, 64, 0.95) 0%, rgba(247, 50, 50, 0.85) 45%, rgba(120, 30, 12, 0.9) 100%);
  filter: blur(0.5px);
  box-shadow: 0 40px 90px rgba(247, 50, 50, 0.32);
  animation: orb-float 9s var(--ease) infinite;
}

.hero__orb::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 72%, rgba(0, 0, 0, 0.4) 0%, transparent 55%);
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-16px) scale(1.02); }
}

/* Orbiting rings */
.hero__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.85;
}

.hero__ring--2 { inset: 8%; border-style: dashed; opacity: 0.55; animation: spin 40s linear infinite; }
.hero__ring--3 { inset: -6%; opacity: 0.35; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Floating labels around the orb */
.hero__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  animation: tag-bob 6s var(--ease) infinite;
}

.hero__tag i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-image: var(--brand-gradient-r);
}

.hero__tag--1 { top: 8%;  left: -4%; animation-delay: 0s; }
.hero__tag--2 { top: 44%; right: -6%; animation-delay: 1.5s; }
.hero__tag--3 { bottom: 9%; left: 6%; animation-delay: 3s; }

@keyframes tag-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (max-width: 560px) {
  .hero__tag--1 { left: 0; }
  .hero__tag--2 { right: 0; }
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto auto;
  width: 45rem;
  height: 45rem;
  background: var(--glow);
  pointer-events: none;
}

.page-hero__inner { position: relative; max-width: 52rem; }

.page-hero h1 {
  font-size: var(--fs-3xl);
  margin-block: var(--sp-4) var(--sp-4);
}

.page-hero .lead { max-width: 44rem; }

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* --------------------------------------------------------------------------
   Marquee — trusted-by / capability strip
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}

.marquee__item svg { width: 1.1rem; height: 1.1rem; color: var(--brand-orange); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Split feature section (image/visual + copy)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.split--reverse > *:first-child { order: 2; }

@media (max-width: 860px) {
  .split--reverse > *:first-child { order: 0; }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.check-list svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin-top: 0.18rem;
  color: var(--brand-orange);
}

/* Decorative panel used opposite copy blocks */
.visual-panel {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(130% 110% at 15% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--surface);
  padding: var(--sp-7);
  overflow: hidden;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
}

.visual-panel::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -35%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0.16;
  filter: blur(28px);
}

/* Mini code/spec rows inside a visual panel */
.spec-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.spec-row span:first-child { color: var(--text-muted); }
.spec-row span:last-child { font-weight: 700; color: var(--text); }

/* --------------------------------------------------------------------------
   Process / timeline
   -------------------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--t-base) var(--ease);
}

.process__step:hover {
  border-color: var(--brand-orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process__num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

.process__step:hover .process__num {
  background-image: var(--brand-gradient-r);
  color: #fff;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(247, 50, 50, 0.22) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(255, 125, 22, 0.22) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: var(--sp-6);
}

@media (max-width: 820px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.cta-band p { max-width: 40rem; margin: 0; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  height: 100%;
}

.quote-card__mark {
  font-size: 3rem;
  line-height: 0.7;
  font-weight: 800;
  background: var(--brand-gradient-r);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.quote-card blockquote {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: var(--r-pill);
  background-image: var(--brand-gradient-r);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
}

.quote-card__name { font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.quote-card__role { font-size: var(--fs-xs); color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--t-base) var(--ease);
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.price-card--featured {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-accent);
}

.price-card__flag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  translate: -50% 0;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  background-image: var(--brand-gradient-r);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.price-card__name { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

.price-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  min-height: 3rem;
  margin-bottom: var(--sp-5);
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: var(--sp-2);
}

.price-card__amount strong {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card__amount span { font-size: var(--fs-sm); color: var(--text-subtle); }

.price-card__note {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  margin-bottom: var(--sp-5);
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.price-card__features svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.2rem;
  color: var(--brand-orange);
}

/* Currency switch */
.switch {
  display: inline-flex;
  padding: 0.28rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  gap: 0.2rem;
}

.switch button {
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--t-fast) var(--ease);
}

.switch button[aria-pressed="true"] {
  background-image: var(--brand-gradient-r);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Article / long-form content
   -------------------------------------------------------------------------- */

.article-body { max-width: var(--container-prose); font-size: var(--fs-md); }

.article-body > * + * { margin-top: var(--sp-5); }

.article-body h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-8);
  scroll-margin-top: 6rem;
}

.article-body h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-6);
  scroll-margin-top: 6rem;
}

.article-body p { line-height: 1.8; }

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-muted);
}

.article-body li::marker { color: var(--brand-orange); }

.article-body blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface-2);
  font-size: var(--fs-md);
  color: var(--text);
}

.article-body a { text-decoration: underline; text-underline-offset: 3px; }

.article-body img { border-radius: var(--r-lg); margin-block: var(--sp-6); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  text-align: left;
}

.article-body th { background: var(--surface-2); font-weight: 700; }

/* Legal documents get tighter numbering */
.legal-body { max-width: 80ch; }
.legal-body h2 { font-size: var(--fs-lg); margin-top: var(--sp-8); }
.legal-body h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.legal-body p,
.legal-body li { font-size: var(--fs-sm); line-height: 1.8; }

/* --------------------------------------------------------------------------
   Blog / post meta
   -------------------------------------------------------------------------- */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.post-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */

.job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: all var(--t-base) var(--ease);
}

.job-row:hover {
  border-color: var(--brand-orange);
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .job-row { grid-template-columns: 1fr; }
}

.job-row__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.job-row__title a { color: var(--text); }
.job-row:hover .job-row__title a { color: var(--accent); }

.job-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.job-row__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.job-row__meta svg { width: 0.95rem; height: 0.95rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}

.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item:first-of-type { padding-top: 0; }

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--brand-orange);
}

.contact-item__icon svg { width: 1.25rem; height: 1.25rem; }

.contact-item__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.contact-item__value { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }
.contact-item__value a { color: var(--text); }
.contact-item__value a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   404 / error
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-10);
}

.error-page__code {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--brand-gradient-r);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Breadcrumbs sit directly above the eyebrow in the interior hero; give them
   room so the two do not read as one block on narrow screens. */
.page-hero__inner .breadcrumbs { margin-bottom: var(--sp-5); }
