:root {
  --ink: #062b2a;
  --pine: #073f38;
  --forest: #075c4d;
  --emerald: #07866b;
  --leaf: #19b88b;
  --gold: #c8f23d;
  --gold-2: #e3ff78;
  --gold-deep: #52751a;
  --paper: #f3f8f5;
  --line: rgba(6, 43, 42, 0.11);
  --muted: #526d68;
  --clickwave-blue: #075ed1;
  --clickwave-sky: #08a9d5;
  --ff-d: 'Cairo', sans-serif;
  --ff-b: 'Cairo', sans-serif;
}

body {
  background:
    radial-gradient(60rem 36rem at 92% -8%, rgba(200, 242, 61, 0.2), transparent 62%),
    radial-gradient(55rem 34rem at -8% 32%, rgba(8, 169, 213, 0.13), transparent 64%),
    var(--paper);
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(6, 43, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 43, 42, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.agency-bar {
  color: #fff;
  background: linear-gradient(90deg, #062b2a, var(--clickwave-blue), var(--clickwave-sky));
}

.agency-bar a {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker {
  background: #052421;
}

header.scrolled {
  background: rgba(246, 251, 248, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 52px -38px rgba(6, 43, 42, 0.7);
}

.brand .mark {
  width: 52px;
  height: 52px;
  padding: 2px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand .mark::after {
  display: none;
}

.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand b {
  font-weight: 900;
  letter-spacing: -0.025em;
}

.brand small b2 {
  color: var(--clickwave-blue);
}

.hero {
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(243, 248, 245, 0.66)),
    radial-gradient(circle at 75% 30%, rgba(25, 184, 139, 0.17), transparent 28rem);
}

.badge {
  border-color: rgba(7, 94, 209, 0.15);
  background: rgba(255, 255, 255, 0.76);
}

.badge .cw {
  color: var(--clickwave-blue);
}

.btn-gold {
  color: #123314;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 15px 36px rgba(102, 139, 26, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 20px 44px rgba(102, 139, 26, 0.36);
}

.bcard,
.step,
.price,
.qa,
.form-card,
.sector-panel,
.material {
  border-radius: 22px;
  border-color: var(--line);
  box-shadow: 0 25px 70px -48px rgba(6, 43, 42, 0.52);
}

.dark {
  background:
    radial-gradient(circle at 10% 20%, rgba(8, 169, 213, 0.14), transparent 26rem),
    linear-gradient(145deg, #052b29, #031b1b);
}

.cwline {
  color: var(--clickwave-sky) !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 169, 213, 0.42) !important;
  outline-offset: 3px;
}

/* Mobile Polish & Professional Responsiveness Overrides */
@media (max-width: 820px) {
  html, body {
    overflow-x: hidden !important;
  }

  .wrap {
    padding-inline: 16px !important;
  }

  .hero .htext {
    order: 1;
    text-align: right;
  }

  .hero .mock {
    order: 2;
    min-height: 420px !important;
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* Prevent chip horizontal overflow */
  .chip.c1 { left: 4px !important; top: 10px !important; }
  .chip.c2 { right: 4px !important; bottom: 80px !important; }
  .chip.c3 { left: 4px !important; top: 140px !important; }
  .phone {
    transform: scale(0.84);
    transform-origin: center top;
  }
  .intercept {
    left: 4px !important;
    right: 4px !important;
  }

  /* Video player responsiveness */
  .video-container {
    border-radius: 16px !important;
    margin-bottom: 24px !important;
  }

  /* Bento grid mobile card spacing & padding */
  .bcard {
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }
  .b6 .inner {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .b6 .thumbs {
    flex-wrap: wrap !important;
  }
  .b6 .thumbs img {
    width: 48% !important;
    height: 110px !important;
  }

  /* Steps section mobile alignment */
  .steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .step .num {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
  }

  /* Pricing Card Mobile Polish */
  .pcard {
    padding: 28px 18px !important;
    border-radius: 20px !important;
  }
  .pbadge {
    right: 50% !important;
    transform: translateX(50%) !important;
    top: -14px !important;
    font-size: 0.76rem !important;
    padding: 5px 14px !important;
    white-space: nowrap !important;
  }
  .price .price-num {
    font-size: 2.8rem !important;
  }
  .plist li {
    font-size: 0.88rem !important;
    gap: 8px !important;
  }

  /* Floating Action Buttons spacing on mobile */
  .wa-float {
    left: 16px !important;
    bottom: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }
  .wa-float svg {
    width: 26px !important;
    height: 26px !important;
  }
  #btt {
    right: 16px !important;
    bottom: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* Orbit circle in agency card */
  .orbit {
    width: 280px !important;
    height: 280px !important;
  }
  .orbit .core {
    width: 130px !important;
    height: 130px !important;
  }
  .orbit .core b {
    font-size: 1.25rem !important;
  }
  .ochip {
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
  }

  .brand .mark {
    width: 44px;
    height: 44px;
  }

  .agency-bar .wrap {
    min-height: 44px;
  }

  .ticker {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.8rem);
    line-height: 1.17;
  }

  .hl {
    white-space: normal;
  }

  .badge {
    max-width: 100%;
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
