.home-rebuild{
  color-scheme:light;
  --home-bg:#f5f7fb;
  --home-bg-soft:#edf2f8;
  --home-panel:#ffffff;
  --home-panel-strong:#f8fafc;
  --home-text:#0f172a;
  --home-muted:#526079;
  --home-border:rgba(15,23,42,.10);
  color:var(--home-text);
  background:
    radial-gradient(900px 560px at 8% -8%, rgba(139,92,246,.14), transparent 65%),
    radial-gradient(760px 500px at 98% 18%, rgba(139,92,246,.10), transparent 64%),
    linear-gradient(180deg, #f2f6fb 0%, #fbfcfe 48%, #f5f7fb 100%);
}
.home-rebuild:before{
  background:
    linear-gradient(rgba(255,255,255,.62), transparent 32%),
    radial-gradient(circle at top, rgba(139,92,246,.07), transparent 42%);
}
.home-rebuild .container{max-width:1240px}
.home-rebuild h1,
.home-rebuild h2,
.home-rebuild h3,
.home-rebuild strong{color:var(--home-text)}
.home-rebuild p{color:var(--home-muted)}
.home-rebuild a{color:var(--accent)}
.home-rebuild a:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px;
}

.home-nav{top:10px}
.home-nav .nav-inner{
  border-color:rgba(15,23,42,.09);
  background:#fff;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:0 6px 20px rgba(15,23,42,.05);
}
.home-rebuild .brand,
.home-rebuild .brand:hover{color:var(--home-text)}
.home-rebuild .brand .mark{
  border:0;
  background:none;
  box-shadow:0 12px 28px rgba(139,92,246,.24);
}
.home-rebuild .brand .mark img{display:block;width:100%;height:100%;object-fit:cover}
.home-rebuild .brand .txt span{color:#64748b}
.home-nav .menu{align-items:center;flex-wrap:nowrap}
.home-nav .menu a{
  color:#26344c;
  font-size:14px;
}
.home-nav .menu a:hover{
  color:#0f172a;
  border-color:rgba(139,92,246,.22);
  background:rgba(139,92,246,.10);
}
.home-nav .menu .home-nav-cta{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, #8b5cf6, #7c3aed 70%, #6d28d9);
  box-shadow:0 10px 24px rgba(139,92,246,.24);
}
.home-nav .menu .home-nav-cta:hover{
  color:#fff;
  background:linear-gradient(135deg, #8b5cf6, #7c3aed 70%, #6d28d9);
}

.home-main{padding-top:34px;padding-bottom:76px}
.home-main > section{margin-top:clamp(64px, 7vw, 76px)}
.home-main > section:first-child{margin-top:0}
.home-new-hero{
  min-height:600px;
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(380px, .92fr);
  gap:clamp(36px, 6vw, 78px);
  align-items:center;
  padding:clamp(32px, 4vw, 48px) clamp(4px, 2vw, 24px) 46px;
}
.home-new-hero-copy{max-width:720px}
.home-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.home-new-hero h1{
  max-width:12ch;
  margin:18px 0 22px;
  color:#0f172a;
  font-size:clamp(58px, 7.2vw, 102px);
  line-height:.96;
  letter-spacing:-.065em;
}
.home-new-hero-copy > p{
  max-width:64ch;
  margin:0;
  color:#526079;
  font-size:clamp(17px, 1.7vw, 20px);
  line-height:1.72;
}
.home-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.home-rebuild .btn{
  min-height:48px;
  color:#fff;
  background:linear-gradient(135deg, #8b5cf6, #7c3aed 70%, #6d28d9);
  box-shadow:0 14px 34px rgba(139,92,246,.24);
}
.home-rebuild .btn:hover{color:#fff}
.home-rebuild .btn.secondary,
.home-rebuild .btn.ghost{
  color:#24324a;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.home-rebuild .btn.secondary:hover,
.home-rebuild .btn.ghost:hover{
  color:#0f172a;
  background:#fff;
}
.home-hero-photo{
  position:relative;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  border-radius:30px;
  background:#e8edf4;
  box-shadow:0 12px 32px rgba(15,23,42,.09);
}
.home-hero-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 62%, rgba(5,9,18,.84));
  pointer-events:none;
}
.home-hero-photo img,
.home-hero-photo video{
  display:block;
  width:100%;
  min-height:440px;
  object-fit:cover;
}
.home-hero-photo figcaption{
  position:absolute;
  z-index:1;
  left:22px;
  bottom:18px;
  color:#dbe4f3;
  font-size:13px;
  font-weight:700;
}

.home-stat-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.home-stat-card{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:14px;
  align-items:center;
  padding:22px;
  border:1px solid var(--home-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.home-stat-icon{display:inline-flex;color:var(--accent)}
.home-stat-icon svg{
  display:block;
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-stat-card strong{display:block;font-size:18px;line-height:1.25}
.home-stat-card div span{display:block;margin-top:5px;color:var(--home-muted);font-size:13px;line-height:1.45}
.home-queue-status{
  display:flex;
  align-items:center;
  gap:13px;
  width:max-content;
  max-width:100%;
  margin:16px auto 0;
  padding:13px 18px;
  border:1px solid rgba(34,160,107,.22);
  border-radius:16px;
  background:rgba(236,253,245,.92);
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.home-queue-dot{
  flex:0 0 auto;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#22a06b;
  box-shadow:0 0 0 5px rgba(34,160,107,.14);
}
.home-queue-status strong{display:block;color:#146c4a;font-size:14px}
.home-queue-status div span{display:block;margin-top:3px;color:#526079;font-size:12px;line-height:1.45}

@media(min-width:1041px){
  .home-stat-card div span{font-size:12px;white-space:nowrap}
}

.home-dark-section{
  padding:clamp(28px, 5vw, 54px);
  border:1px solid var(--home-border);
  border-radius:30px;
  background:#f8fafc;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.home-about{
  display:grid;
  grid-template-columns:minmax(280px, .72fr) minmax(0, 1.28fr);
  gap:clamp(30px, 6vw, 72px);
  align-items:center;
}
.home-about-photo{
  max-width:430px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  border-radius:26px;
  box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.home-about-photo img{display:block;width:100%;height:auto}
.home-about-copy h2,
.home-section-heading h2,
.home-final-cta h2{
  margin:14px 0 18px;
  color:#0f172a;
  font-size:clamp(38px, 5vw, 64px);
  line-height:1;
  letter-spacing:-.045em;
}
.home-about-copy p{font-size:16px;line-height:1.8}
.home-about-copy strong{color:#0f172a}

.home-section-heading{max-width:800px;margin-bottom:28px}
.home-section-heading > p{max-width:60ch;font-size:16px}
.home-workflow-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.home-step-card{
  min-height:210px;
  padding:22px;
  border:1px solid rgba(15,23,42,.09);
  border-radius:20px;
  background:#f8fafc;
}
.home-step-card > span{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  color:#fff;
  background:linear-gradient(135deg, #8b5cf6, #7c3aed 70%, #6d28d9);
  font-weight:900;
}
.home-step-card h3{margin:20px 0 10px;font-size:20px}
.home-step-card p{margin:0;font-size:14px;line-height:1.65}

.home-price-section .btn{margin-top:26px}
.home-factor-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:1px;
  padding:1px;
  overflow:hidden;
  border-radius:20px;
  background:rgba(15,23,42,.10);
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.home-factor-grid div{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-height:92px;
  padding:18px;
  color:#22314a;
  background:rgba(255,255,255,.96);
  line-height:1.3;
}
.home-factor-grid span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:11px;
  color:var(--accent);
  background:rgba(139,92,246,.07);
  font-size:11px;
  font-weight:850;
  letter-spacing:.06em;
}
.home-factor-grid strong{font-size:14px;font-weight:800}

.home-project-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 560px));
  justify-content:center;
  gap:20px;
}
.home-project-card{
  margin:0;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  background:#fff;
}
.home-project-card img,
.home-project-card video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 10;
  object-fit:contain;
  background:#eef2f7;
}
.home-project-card figcaption{display:flex;flex-direction:column;gap:4px;padding:13px 14px}
.home-project-card figcaption strong{font-size:14px}
.home-project-card figcaption span{color:var(--home-muted);font-size:11px;line-height:1.4}

.home-testimonial-section{
  display:grid;
  gap:20px;
  padding:clamp(28px, 5vw, 54px);
  border:1px solid var(--home-border);
  border-radius:30px;
  background:#f8fafc;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.home-rebuild .home-testimonial-card{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(280px, 400px);
  gap:32px;
  align-items:center;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.home-rebuild .home-testimonial-card:before{display:none}
.home-rebuild .home-testimonial-card:hover{transform:none;box-shadow:none}
.home-rebuild .testimonial-stars{color:#fbbf24}
.home-rebuild .home-testimonial-card blockquote{
  margin:20px 0 18px;
  color:#1f2d44;
  font-size:clamp(18px, 2vw, 23px);
  font-weight:600;
  line-height:1.62;
}
.home-rebuild .testimonial-attribution{color:#64748b}
.home-rebuild .testimonial-google-link{color:var(--accent)}
.home-rebuild .testimonial-gallery{max-width:400px}
.home-rebuild .testimonial-gallery img{
  border-color:rgba(15,23,42,.10);
  box-shadow:0 6px 18px rgba(15,23,42,.07);
}
.home-rebuild .testimonial-photo-caption{color:#64748b}

.home-final-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:clamp(34px, 6vw, 66px);
  border:1px solid rgba(139,92,246,.26);
  border-radius:30px;
  background:#f5f3ff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.home-final-cta h2{margin-bottom:12px}
.home-final-cta p{margin:0;font-size:17px}
.home-final-cta .home-actions{flex-shrink:0;margin-top:0}

.home-footer{
  border-top:1px solid rgba(15,23,42,.09);
  background:#eef2f7;
}
.home-footer-grid{
  display:grid;
  grid-template-columns:minmax(280px,1.1fr) minmax(170px,.7fr) minmax(300px,1fr);
  gap:clamp(34px,6vw,76px);
  align-items:start;
  padding-top:46px;
  padding-bottom:46px;
  text-align:left;
}
.home-footer .footer-tagline{margin:16px 0 0;color:#526079;font-size:14px}
.home-footer .footer-copyright{margin:10px 0 0;color:#7b8798;font-size:13px}
.home-footer nav,
.home-footer-contact{display:flex;flex-direction:column;align-items:flex-start;gap:11px;text-align:left}
.home-footer-contact{justify-self:stretch}

@media(max-width:920px){
  .home-footer-grid{grid-template-columns:1fr;gap:32px;padding-top:38px;padding-bottom:38px}
  .home-footer-contact{justify-self:start;text-align:left}
}

@media(max-width:1040px){
  .home-nav .nav-inner{align-items:flex-start}
  .home-nav .menu{justify-content:flex-end;flex-wrap:wrap}
  .home-new-hero{grid-template-columns:minmax(0, 1fr) minmax(340px, .8fr)}
  .home-workflow-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .home-factor-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .home-project-grid{grid-template-columns:repeat(2, minmax(0, 520px))}
}

@media(max-width:800px){
  .home-rebuild .nav{top:6px}
  .home-nav .nav-inner{flex-direction:column;align-items:stretch;gap:14px;padding:14px}
  .home-nav .menu{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:100%;
    gap:8px;
    overflow:visible;
    padding-bottom:0;
  }
  .home-nav .menu a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:42px;
    padding:9px 8px;
    text-align:center;
    white-space:normal;
    font-size:13px;
  }
  .home-nav .menu .home-nav-cta{grid-column:1 / -1}
  .home-nav.mobile-nav-collapsed .menu{display:grid}
  .home-main{padding-top:20px;padding-left:18px;padding-right:18px}
  .home-new-hero{min-height:0;grid-template-columns:1fr;padding-top:38px}
  .home-new-hero h1{font-size:clamp(52px, 14vw, 76px)}
  .home-hero-photo img,
  .home-hero-photo video{min-height:0;aspect-ratio:16 / 10}
  .home-stat-grid{grid-template-columns:1fr}
  .home-about{grid-template-columns:1fr}
  .home-about-photo{max-width:360px}
  .home-factor-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .home-rebuild .home-testimonial-card{grid-template-columns:1fr}
  .home-rebuild .testimonial-gallery{justify-self:start}
  .home-final-cta{align-items:flex-start;flex-direction:column}
  .home-final-cta .home-actions{margin-top:6px}
  .home-footer-grid{grid-template-columns:1fr;gap:32px}
  .home-footer-contact{justify-self:start;text-align:left}
}

@media(max-width:560px){
  .home-rebuild .brand .txt b{font-size:16px}
  .home-rebuild .brand .txt span{font-size:11px}
  .home-new-hero-copy > p{font-size:16px}
  .home-actions{width:100%;flex-direction:column}
  .home-actions .btn{width:100%}
  .home-queue-status{width:100%;align-items:flex-start}
  .home-dark-section,
  .home-testimonial-section,
  .home-final-cta{padding:24px 20px;border-radius:24px}
  .home-about-copy h2,
  .home-section-heading h2,
  .home-final-cta h2{font-size:38px}
  .home-workflow-grid,
  .home-factor-grid{grid-template-columns:1fr}
  .home-project-grid{grid-template-columns:minmax(0, 560px);gap:16px}
  .home-step-card{min-height:0}
  .home-rebuild .testimonial-gallery{grid-template-columns:1fr 1fr}
  .home-footer-grid{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .home-rebuild *,
  .home-rebuild *:before,
  .home-rebuild *:after{scroll-behavior:auto!important;transition:none!important}
}
