/* ===== FONTS ===== */
@font-face {
  font-family: "Helvetica Regular";
  src: url("https://db.onlinewebfonts.com/t/a64ff11d2c248b1114d59a72d7dfb24c.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/a64ff11d2c248b1114d59a72d7dfb24c.woff") format("woff"),
       url("https://db.onlinewebfonts.com/t/a64ff11d2c248b1114d59a72d7dfb24c.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Helvetica Regular", ui-sans-serif, system-ui, sans-serif;
  --bg: #f0f0f0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font);
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== PAGE ENTRANCE ===== */
/* Animate main, NOT body — body transform breaks position:fixed (mobile menu) */
main {
  animation: pageEnter 0.75s var(--ease) both;
}

@keyframes pageEnter {
  from { opacity: 1; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.is-exiting main {
  animation: pageExit 0.3s ease forwards !important;
  pointer-events: none;
}

@keyframes pageExit {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ===== HERO LOAD (above fold) ===== */
[data-load] {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  animation: heroEnter 1s var(--ease) both;
}

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

[data-load][data-delay="1"] { animation-delay: 120ms; }
[data-load][data-delay="2"] { animation-delay: 260ms; }
[data-load][data-delay="3"] { animation-delay: 400ms; }
[data-load][data-delay="4"] { animation-delay: 540ms; }
[data-load][data-delay="5"] { animation-delay: 680ms; }

/* ===== SCROLL REVEAL (below fold) ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }
[data-reveal][data-delay="5"] { transition-delay: 400ms; }
[data-reveal][data-delay="6"] { transition-delay: 480ms; }

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

/* ===== BUTTON SHINE ===== */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-15deg);
  transition: left 0.5s var(--ease);
}
.btn-shine:hover::after { left: 150%; }

/* ===== MOBILE MENU OVERLAY ===== */
#mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: #0b0f1c;
  display: flex; flex-direction: column;
  padding: 1.5rem 1.75rem 2.25rem;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
  pointer-events: none; overflow: hidden;
}
#mobile-menu::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 110% -10%, rgba(90,110,220,.18) 0%, transparent 55%);
  pointer-events: none;
}
#mobile-menu.is-open { transform: translateX(0); opacity: 1; pointer-events: all; }

#mmenu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
#mmenu-logo { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; opacity: 0; transition: opacity .4s ease .05s; }
#mobile-menu.is-open #mmenu-logo { opacity: 1; }
#mobile-menu-close { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; flex-shrink: 0; }
#mobile-menu-close:hover { background: rgba(255,255,255,.15); }

#mmenu-nav { display: flex; flex-direction: column; flex: 1; }
.mmenu-link { display: flex; align-items: center; gap: .875rem; padding: 1.05rem 0; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; opacity: 0; transform: translateX(-20px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.mmenu-link:first-child { border-top: 1px solid rgba(255,255,255,.07); }
#mobile-menu.is-open .mmenu-link:nth-child(1) { opacity:1; transform:none; transition-delay:90ms; }
#mobile-menu.is-open .mmenu-link:nth-child(2) { opacity:1; transform:none; transition-delay:150ms; }
#mobile-menu.is-open .mmenu-link:nth-child(3) { opacity:1; transform:none; transition-delay:210ms; }
#mobile-menu.is-open .mmenu-link:nth-child(4) { opacity:1; transform:none; transition-delay:270ms; }
#mobile-menu.is-open .mmenu-link:nth-child(5) { opacity:1; transform:none; transition-delay:330ms; }
.mmenu-num { font-size: .65rem; color: rgba(255,255,255,.28); font-weight: 500; letter-spacing: .06em; width: 1.4rem; flex-shrink: 0; }
.mmenu-text { flex: 1; font-size: 1.65rem; font-weight: 600; color: #fff; letter-spacing: -.025em; line-height: 1; }
.mmenu-arr { color: rgba(255,255,255,.2); flex-shrink: 0; transition: transform .2s, color .2s; }
.mmenu-link:active .mmenu-arr { transform: translate(3px,-3px); color: rgba(255,255,255,.6); }

#mmenu-footer { padding-top: 1.5rem; opacity: 0; transform: translateY(8px); transition: opacity .4s ease .38s, transform .4s ease .38s; }
#mobile-menu.is-open #mmenu-footer { opacity: 1; transform: none; }
.mmenu-cta { display: flex; align-items: center; justify-content: center; gap: .5rem; background: #fff; color: #0b0f1c; padding: .85rem 1.25rem; border-radius: 100px; font-size: .875rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.mmenu-sub { margin-top: .65rem; text-align: center; font-size: .72rem; color: rgba(255,255,255,.3); }

/* ===== FAQ ACCORDION ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding-bottom 0.3s;
}
.faq-answer.is-open { max-height: 400px; }
.faq-icon {
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

/* ===== FORM INPUTS ===== */
.form-field {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.form-field:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15,23,42,0.07);
  transform: translateY(-1px);
}

/* ===== STEP CONNECTOR LINE ===== */
.step-line {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease);
}
.step-line.is-visible { transform: scaleY(1); }

/* ===== PRICING HIGHLIGHT ===== */
.pricing-featured {
  background: #0f172a;
  color: white;
  transform: scale(1.03);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.pricing-featured p, .pricing-featured span { color: rgba(255,255,255,0.6) !important; }
.pricing-featured h3 { color: white !important; }
.pricing-featured ul li { color: rgba(255,255,255,0.75) !important; }
.pricing-featured .pricing-btn {
  background: white !important;
  color: #0f172a !important;
  border-color: white !important;
}
.pricing-featured .pricing-btn:hover { background: #f1f5f9 !important; }

/* ===== SAFARI ROUNDED OVERFLOW FIX ===== */
/* Prevents content/background bleeding through rounded corners on iOS Safari.
   The -webkit-mask-image forces correct GPU-layer clipping at border-radius. */
.overflow-hidden {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.3); }

/* ===== STICKY NAV ===== */
#main-nav {
  transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
#main-nav.nav-scrolled {
  background: rgba(11, 15, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ===== ACTIVE NAV STATE ===== */
.nav-active { color: white !important; font-weight: 600; }

/* ===== REVIEW FORM SUCCESS ===== */
#form-success {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
#form-success.show { opacity: 1; transform: translateY(0); }

/* ===== PORTFOLIO CAROUSEL ===== */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@-webkit-keyframes marquee-scroll {
  from { -webkit-transform: translateX(0); }
  to   { -webkit-transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  -webkit-animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}

.marquee-outer {
  overflow: hidden;
}

.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

.site-card {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
  cursor: pointer;
}

@media (max-width: 767px) {
  .site-card {
    width: 280px !important;
  }
  .site-card [style*="height:420px"] {
    height: 210px !important;
  }
}

/* ===== WORK PAGE BROWSER CHROME ===== */
@media (max-width: 767px) {
  .work-browser-chrome {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  /* Shrink the traffic light dots */
  .work-browser-dots > div {
    width: 8px !important;
    height: 8px !important;
  }
  .work-browser-dots {
    gap: 4px !important;
  }
  /* Tighter address bar — cap width so it doesn't expand full-bleed */
  .work-browser-addr {
    padding: 3px 8px !important;
    gap: 4px !important;
    max-width: 160px !important;
    flex: 1 1 0 !important;
  }
  /* Hide lock icon on mobile to save space */
  .work-browser-addr svg {
    display: none !important;
  }
}

/* ===== WORK PAGE META STRIP ===== */
.work-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.work-meta-cell {
  padding: 0 2rem;
  border-right: 1px solid #e2e8f0;
}
.work-meta-cell:first-child { padding-left: 0; }
.work-meta-cell:last-child  { border-right: none; padding-right: 0; }

@media (max-width: 767px) {
  .work-meta-strip {
    grid-template-columns: 1fr 1fr;
  }
  .work-meta-cell {
    padding: 1rem 0 1rem 0;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .work-meta-cell:nth-child(odd)       { padding-right: 1rem; border-right: 1px solid #e2e8f0; }
  .work-meta-cell:nth-child(even)      { padding-left: 1rem; }
  .work-meta-cell:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

/* ===== WORK PAGE SCREENSHOT ===== */
/* Desktop: tall enough to show good portion of the site */
.work-screenshot {
  position: relative;
  overflow: hidden;
  height: clamp(500px, 65vw, 780px);
}
/* Mobile: scale height proportionally to viewport so image never crops horizontally.
   Container width ≈ 76.5% of vw (after section + card padding).
   Image is 16:10, so height = container_width × 0.625 ≈ 0.478vw → use 47vw with a safe min. */
@media (max-width: 767px) {
  .work-screenshot {
    height: 47vw !important;
    min-height: 160px !important;
  }
  /* Hide the label text, keep just the button */
  .work-screenshot-label {
    display: none !important;
  }
  /* Tighter padding on the bar */
  .work-screenshot-bar {
    padding: 8px 12px !important;
    justify-content: center !important;
  }
}

.site-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 28px 52px rgba(0,0,0,0.13);
}

/* ===== FLOATING BADGE PULSE ===== */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ===== SEQUENTIAL GREEN DOTS ===== */
@keyframes dot-activate {
  0%   { background-color: rgba(255,255,255,0.3); }
  100% { background-color: #22c55e; }
}
@keyframes dot-pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.seq-dot {
  background-color: rgba(255,255,255,0.3);
}
.seq-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0;
}

.seq-dot-1 {
  animation: dot-activate 0.4s ease forwards;
  animation-delay: 1.2s;
}
.seq-dot-1::before {
  animation: dot-pulse-ring 1.6s ease-out infinite;
  animation-delay: 1.6s;
}

.seq-dot-2 {
  animation: dot-activate 0.4s ease forwards;
  animation-delay: 2.2s;
}
.seq-dot-2::before {
  animation: dot-pulse-ring 1.6s ease-out infinite;
  animation-delay: 2.6s;
}

.seq-dot-3 {
  animation: dot-activate 0.4s ease forwards;
  animation-delay: 3.2s;
}
.seq-dot-3::before {
  animation: dot-pulse-ring 1.6s ease-out infinite;
  animation-delay: 3.6s;
}
