* { box-sizing: border-box; }

:root {
  --bg-900: #070b16;
  --bg-800: #0c1428;
  --bg-700: #111c36;
  --surface: #121f3d;
  --surface-2: #17274a;
  --text-100: #f5f8ff;
  --text-200: #dbe5ff;
  --text-300: #b4c2e6;
  --line: #24365f;
  --brand-red: #ff3b5c;
  --brand-red-hover: #ff2449;
  --brand-blue: #2f6bff;
  --brand-blue-hover: #2358d9;

  --h1: clamp(2rem, 6.6vw, 3.5rem);
  --h2: clamp(1.625rem, 5.2vw, 2.375rem);
  --h3: clamp(1.125rem, 3.8vw, 1.5rem);
  --body: 1rem;
  --small: 0.875rem;

  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;

  --r-btn: 12px;
  --r-card: 14px;
  --shadow-1: 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .32);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--body);
  background: radial-gradient(circle at 10% 0%, #1a2a51, var(--bg-900) 38%);
  color: var(--text-100);
  line-height: 1.55;
}

.container { padding-inline: 20px; margin-inline: auto; max-width: 1200px; }
.section { margin-top: 0; padding-block: var(--s-6); }

.topbar {
  background: linear-gradient(90deg, var(--brand-red), #bb1a34);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  min-height: 28px;
  padding: 7px var(--s-3);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) 0;
  min-height: 64px;
}

.brand img {
  width: 128px;
  border-radius: 10px;
  box-shadow: var(--shadow-1);
}

.nav-actions { display: flex; align-items: center; gap: var(--s-1); }

.lang {
  border: 1px solid #3f4b67;
  background: #111a2f;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.lang.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.hero {
  min-height: 86vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(8,11,17,.92) 8%, rgba(9,15,28,.8) 45%, rgba(8,11,17,.6) 100%),
    radial-gradient(circle at 70% 20%, rgba(47,107,255,.4), transparent 36%),
    radial-gradient(circle at 10% 80%, rgba(255,59,92,.3), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-200);
  margin-bottom: var(--s-2);
}

h1 {
  margin: 0 0 var(--s-2);
  font-size: var(--h1);
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  margin: 0 0 var(--s-2);
  font-size: var(--h2);
}

h3 {
  margin: 0 0 var(--s-1);
  font-size: var(--h3);
}

p { margin: 0; color: var(--text-300); max-width: 62ch; }

.proof {
  margin-top: var(--s-3);
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-200);
  background: rgba(47, 107, 255, .2);
}

.actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--r-btn);
  padding: 13px 18px;
  transition: .2s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-red), #cf2f4b);
  box-shadow: 0 14px 28px rgba(255,59,92,.35);
}

.btn.primary:hover { background: linear-gradient(90deg, var(--brand-red-hover), #ca173a); }

.btn.ghost {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-blue), #2b5ce0);
  border-color: rgba(163,191,255,.32);
}

.btn.ghost:hover { background: linear-gradient(90deg, var(--brand-blue-hover), #1d4fcf); }

.cta-micro {
  margin-top: var(--s-2);
  color: var(--text-200);
  font-size: var(--small);
  font-weight: 600;
}

.trust-section {
  padding-top: var(--s-5);
}

.trust {
  margin-top: var(--s-3);
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--s-2);
}

.trust article {
  background: linear-gradient(150deg, var(--surface-2), var(--bg-800));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--shadow-2);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--s-3);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--s-3);
}

.process-grid article {
  background: linear-gradient(160deg, var(--surface-2), var(--bg-800));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-3);
  height: 100%;
}

.process-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand-red), #cb1f3d);
  margin-bottom: var(--s-2);
}

.service-grid,
.process-grid,
.testimonial-grid {
  align-items: stretch;
}

.service-grid article,
.before-after,
.testimonial-grid article,
.areas,
.footer {
  background: linear-gradient(160deg, var(--surface), var(--bg-800));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}

.service-grid article {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-grid article > div { padding: var(--s-3); }

.before-after { padding: var(--s-4); }

.ba-slider {
  position: relative;
  margin-top: var(--s-3);
  height: 360px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
}

.ba-slider > img,
.ba-slider .after-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-wrap {
  position: absolute;
  inset: 0;
  width: 58%;
  overflow: hidden;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.25);
  cursor: ew-resize;
}

.ba-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #0d1220;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ba-label {
  position: absolute;
  top: 12px;
  background: rgba(0,0,0,.72);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 700;
}

.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; }

.section-sub { margin-bottom: var(--s-3); }

.portfolio-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: var(--s-2);
}

.portfolio-bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.portfolio-bento .tall { grid-row: span 2; }
.portfolio-bento .wide { grid-column: span 2; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--s-2);
}

.testimonial-grid article {
  padding: 18px;
  height: 100%;
}
.testimonial-grid small {
  display: inline-block;
  margin-top: var(--s-2);
  color: #9adbb6;
  font-weight: 700;
}

.stars {
  color: #ffd166;
  letter-spacing: .12em;
  margin-bottom: var(--s-1);
}

.areas { padding: var(--s-4); }

.areas ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: var(--s-3) 0 0;
}

.areas li {
  background: rgba(47,107,255,.18);
  border: 1px solid rgba(98,141,235,.4);
  color: #deebff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .92rem;
}

.cta-final {
  margin-top: var(--s-6);
  background: linear-gradient(100deg, #0f2b66, #123f9e 48%, #0b2f78);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.cta-wrap {
  padding-block: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

.footer {
  margin-top: var(--s-5);
  margin-bottom: var(--s-6);
  padding: 18px 20px;
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-content {
  text-align: left;
  display: grid;
  gap: 6px;
}

.footer-content p { margin: 0; }

.logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.footer a { color: #dce9ff; }

.dev-credit {
  display: block;
  margin-top: var(--s-1);
  color: #9fb2d8;
  font-size: .82rem;
  letter-spacing: .02em;
}

.sticky-mobile-cta { display: none; }

.lead-form,
.faq {
  background: linear-gradient(160deg, var(--surface), var(--bg-800));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: var(--s-4);
}

.estimate-form {
  margin-top: var(--s-3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.estimate-form label {
  display: grid;
  gap: 8px;
  color: var(--text-200);
  font-weight: 600;
}

.estimate-form input,
.estimate-form select {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #324875;
  background: #0c1730;
  color: var(--text-100);
  padding: 10px 12px;
}

.estimate-form .btn { text-align: center; }

.form-feedback {
  grid-column: 1 / -1;
  min-height: 20px;
  font-size: var(--small);
  color: #9adbb6;
}

.form-feedback.error { color: #ff9db0; }

.faq-list {
  margin-top: var(--s-3);
  display: grid;
  gap: var(--s-2);
}

.faq details {
  border: 1px solid #324875;
  border-radius: 12px;
  padding: 10px 12px;
  background: #0d1a35;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-100);
}

.faq details p {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .container { padding-inline: 28px; }
}

@media (min-width: 1024px){
  .container { padding-inline: 40px; }
}

@media (max-width: 980px) {
  .trust,
  .service-grid,
  .process-grid,
  .testimonial-grid,
  .portfolio-bento { grid-template-columns: 1fr 1fr; }

  .portfolio-bento { grid-auto-rows: 160px; }
  .portfolio-bento .wide { grid-column: span 2; }
  .cta-wrap { flex-direction: column; align-items: flex-start; }
  .ba-slider { height: 300px; }
}

@media (max-width: 680px) {
  .container { padding-inline: 20px; }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 112px; }

  .trust,
  .service-grid,
  .process-grid,
  .testimonial-grid,
  .portfolio-bento { grid-template-columns: 1fr; }

  .portfolio-bento .tall,
  .portfolio-bento .wide { grid-row: auto; grid-column: auto; }

  .hero { min-height: 86vh; }
  .hero-content { padding-top: 54px; padding-bottom: 120px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .btn { text-align: center; min-height: 50px; }
  .estimate-form { grid-template-columns: 1fr; }

  .trust { margin-top: var(--s-3); }
  .ba-slider { height: 240px; }

  .footer { padding: 16px 14px; margin-bottom: 96px; }
  .footer-top { flex-direction: column; gap: 10px; }
  .footer-content { text-align: center; }

  .logo { width: 92px; height: 92px; }

  .sticky-mobile-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(10, 14, 24, .94);
    border: 1px solid #2a395a;
    box-shadow: 0 14px 30px rgba(0,0,0,.38);
  }

  .sticky-mobile-cta a {
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    border-radius: 10px;
    padding: 11px 10px;
    min-height: 50px;
  }

  .sticky-mobile-cta a:first-child {
    background: linear-gradient(100deg, var(--brand-red), #bb1623);
  }

  .sticky-mobile-cta a:last-child {
    background: linear-gradient(100deg, var(--brand-blue), #11429f);
  }
}
