/* =============================================
   Ápicelab — Homepage Redesign
   Marketing Digital · Preto & Branco
   ============================================= */

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

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --gray-900: #111111;
  --gray-700: #333333;
  --gray-500: #666666;
  --gray-400: #999999;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --wrap: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

body.is-loading { overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 24px);
  overflow-x: hidden;
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
}

.loader__logo {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0;
  display: block;
  margin-bottom: 24px;
}

.loader__bar {
  width: 120px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 auto;
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: var(--black);
  animation: loadProgress 1.2s ease forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* ---- Brand Header (estilo editorial) ---- */
.brand-header {
  position: relative;
  background: var(--black);
  padding: 48px 24px 36px;
  text-align: center;
  overflow: hidden;
}

.brand-header__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: 'Syne', sans-serif;
  font-size: clamp(8rem, 32vw, 18rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  overflow: hidden;
}

.brand-header__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.brand-header__word {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
  line-height: 1;
}

.brand-header__word--light {
  font-family: 'Inter', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--gray-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--black);
  background: var(--gray-100);
}

.btn--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--full { width: 100%; }

/* ---- Hero Cover ---- */
.hero-cover {
  background: var(--black);
  padding: 0 0 56px;
  color: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-cover .wrap {
  padding: 0 clamp(12px, 4vw, 16px);
}

/* Ticker */
.hero-ticker {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}

.hero-ticker__ribbon {
  flex-shrink: 0;
  background: var(--white);
  color: var(--black);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-ticker__ribbon::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 8px solid var(--white);
}

.hero-ticker__track {
  flex: 1;
  background: var(--gray-900);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
}

.hero-ticker__content {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: tickerScroll 22s linear infinite;
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  width: max-content;
  will-change: transform;
}

.hero-ticker__dot {
  opacity: 0.4;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Featured card */
.hero-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-900);
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
}

.hero-card__visual {
  position: relative;
  min-height: 280px;
  padding: 20px 16px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-card__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-card__overlay-title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.hero-card__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: var(--black);
  border-top: 1px solid var(--gray-700);
  flex-wrap: wrap;
}

.hero-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.hero-card__meta-item svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* Hero intro text */
.hero-intro {
  padding: 0 4px;
}

.hero-intro__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-intro__title em {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.hero-intro__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-intro__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-intro__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--gray-700);
}

.hero-intro__stats .stat strong {
  color: var(--white);
}

.hero-intro__stats .stat span {
  color: rgba(255, 255, 255, 0.45);
}

.stat strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Dashboard visual */
.dashboard {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  color: var(--white);
}

.dashboard--card {
  max-width: 100%;
}

.dashboard__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  min-width: 0;
  overflow: hidden;
}

.dashboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-700);
}

.dashboard__dot:first-child { background: #ff5f57; }
.dashboard__dot:nth-child(2) { background: #febc2e; }
.dashboard__dot:nth-child(3) { background: #28c840; }

.dashboard__label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  font-weight: 500;
  color: var(--gray-400);
  margin-left: 10px;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.metric-card__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.metric-card__value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.metric-card__change {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4ade80;
  line-height: 1.3;
}

.metric-card__change--down {
  color: #f87171;
}

.dashboard__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.chart-bar {
  flex: 1;
  height: var(--h, 45%);
  background: var(--white);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dashboard.is-animated .chart-bar {
  transform: scaleY(1);
}

.chart-bar:nth-child(1) { transition-delay: 0.05s; }
.chart-bar:nth-child(2) { transition-delay: 0.12s; }
.chart-bar:nth-child(3) { transition-delay: 0.19s; }
.chart-bar:nth-child(4) { transition-delay: 0.26s; }
.chart-bar:nth-child(5) { transition-delay: 0.33s; }
.chart-bar:nth-child(6) { transition-delay: 0.40s; }
.chart-bar:nth-child(7) { transition-delay: 0.47s; }

.dashboard__platforms {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(4px, 1.5vw, 10px);
  width: 100%;
}

.platform-tag {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.5625rem, 2.4vw, 0.8125rem);
  font-weight: 500;
  padding: clamp(5px, 1.5vw, 8px) clamp(4px, 1.2vw, 12px);
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  color: var(--gray-400);
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 0.4s ease, color 0.4s ease;
  text-align: center;
  line-height: 1.2;
}

.platform-tag__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-tag em {
  font-style: normal;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 3px;
  flex-shrink: 0;
  transition: opacity 0.4s ease;
}

.platform-tag.is-leading {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}

.dashboard__live {
  position: relative;
}

.dashboard__live::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.metric-card__value.is-updating {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--gray {
  background: var(--gray-100);
}

.section__head {
  max-width: 600px;
  margin-bottom: 56px;
}

.section__head--light .section__tag,
.section__head--light .section__desc {
  color: var(--gray-400);
}

.section__head--light .section__title {
  color: var(--white);
}

.section__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- Services ---- */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--black);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.service-card--featured {
  grid-row: span 2;
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.service-card--featured:hover {
  border-color: var(--gray-700);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.service-card--featured .service-card__num {
  color: var(--gray-400);
}

.service-card--featured .service-card__text {
  color: var(--gray-400);
}

.service-card--featured .service-card__list li {
  color: var(--gray-200);
}

.service-card--featured .service-card__list li::before {
  background: var(--white);
}

.service-card__num {
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.service-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0;
  line-height: 1.3;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.875rem;
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}

/* ---- Results ---- */
.results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 100%;
}

.result-item {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
}

.result-item__value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.result-item__label {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ---- Process ---- */
.process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.process__step {
  text-align: center;
  padding: 0 12px;
}

.process__icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.process__step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process__step p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.process__line {
  width: 40px;
  height: 1px;
  background: var(--gray-200);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ---- Testimonials ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
  flex: 1;
}

.testimonial p::before {
  content: '\201C';
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  color: var(--gray-200);
  line-height: 0;
  display: block;
  margin-bottom: 12px;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.testimonial footer strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

.testimonial footer span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ---- Contact ---- */
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.contact__desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
}

.contact__channel:hover {
  border-color: var(--black);
  background: var(--gray-100);
  color: var(--black);
}

.contact__form {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--black);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-400);
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 32px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer__logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--gray-400);
  max-width: 320px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
}

.footer__copy p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ---- Scroll & entrance animations ---- */
.anim {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.anim--up    { transform: translateY(40px); }
.anim--left  { transform: translateX(-32px); }
.anim--right { transform: translateX(32px); }
.anim--scale { transform: scale(0.96) translateY(24px); }

.anim.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Hero entrance (page load) */
.brand-header {
  opacity: 0;
  animation: heroFadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-ticker {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-card {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  animation: heroCardIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-intro {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-card .metric-card {
  opacity: 0;
  transform: translateY(20px);
  animation: heroMetricIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-card .metric-card:nth-child(1) { animation-delay: 0.9s; }
.hero-card .metric-card:nth-child(2) { animation-delay: 1.05s; }
.hero-card .metric-card:nth-child(3) { animation-delay: 1.2s; }

.hero-card .platform-tag {
  opacity: 0;
  transform: translateY(12px);
  animation: heroMetricIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-card .platform-tag:nth-child(1) { animation-delay: 1.5s; }
.hero-card .platform-tag:nth-child(2) { animation-delay: 1.62s; }
.hero-card .platform-tag:nth-child(3) { animation-delay: 1.74s; }

@keyframes heroFadeDown {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroEnterLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroEnterRight {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroMetricIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Process line draws in */
.process__line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.process__line.is-visible {
  transform: scaleX(1);
}

/* Result counter glow */
.result-item__value {
  transition: transform 0.4s ease;
}

.result-item.is-visible .result-item__value {
  animation: countPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes countPop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Bottom Nav ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gray-200);
  padding: 4px clamp(2px, 1vw, 8px) calc(4px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.bottom-nav__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 10px;
  transition:
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  transform: scale(1);
}

.bottom-nav__item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.bottom-nav__item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.bottom-nav__item:hover {
  color: var(--black);
}

.bottom-nav__item.is-active {
  color: var(--black);
  transform: scale(1.15);
}

.bottom-nav__item.is-active span {
  font-weight: 700;
  font-size: 0.6875rem;
}

.bottom-nav__item.is-active svg {
  transform: scale(1.18);
  stroke-width: 2.2;
}

.bottom-nav__item--cta {
  color: var(--black);
  font-weight: 600;
}

.bottom-nav__item--cta.is-active {
  background: var(--gray-100);
}

@media (prefers-reduced-motion: reduce) {
  .anim,
  .brand-header,
  .hero-ticker,
  .hero-card,
  .hero-intro,
  .hero-card .metric-card,
  .hero-card .platform-tag,
  .hero-ticker__content {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .chart-bar { transform: scaleY(1); }
}

/* ---- Responsive ---- */
@media (min-width: 360px) {
  .bottom-nav__item {
    font-size: 0.625rem;
    padding: 8px 4px;
    gap: 3px;
  }

  .bottom-nav__item svg {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 769px) {
  .hero-cover .wrap {
    max-width: 680px;
    padding: 0 24px;
  }

  .hero-card__visual {
    min-height: 340px;
    padding: 28px 24px 20px;
  }

  .dashboard {
    padding: 24px 28px;
  }

  .bottom-nav {
    max-width: 520px;
    border-radius: 20px 20px 0 0;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav__item {
    font-size: 0.6875rem;
  }

  .bottom-nav__item.is-active {
    transform: scale(1.12);
  }

  .bottom-nav__item.is-active span {
    font-size: 0.75rem;
  }
}

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

  .service-card--featured {
    grid-row: auto;
  }

  .results {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process__line {
    display: none;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-intro__actions {
    flex-direction: column;
  }

  .hero-intro__actions .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 72px 0;
  }

  .results {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .result-item {
    padding: 24px 12px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

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

  .dashboard {
    padding: 16px 14px;
  }

  .dashboard__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card {
    padding: 12px 8px;
  }

  .metric-card__label {
    font-size: 0.5625rem;
    letter-spacing: 0.04em;
  }

  .metric-card__value {
    font-size: 1.125rem;
  }

  .brand-header {
    padding: 40px 16px 28px;
  }

  .hero-card__meta {
    gap: 12px;
    padding: 12px 14px;
  }

  .hero-card__meta-item {
    font-size: 0.625rem;
  }

  .hero-ticker__ribbon {
    font-size: 0.625rem;
    padding: 8px 10px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 360px) {
  .platform-tag {
    font-size: 0.5rem;
    padding: 5px 3px;
    gap: 2px;
  }

  .platform-tag em {
    margin-left: 2px;
  }
}

@media (max-width: 320px) {
  .bottom-nav__item span {
    font-size: 0.5rem;
  }

  .bottom-nav__item svg {
    width: 18px;
    height: 18px;
  }
}
