/* =========================================================
   3dwebsites — landing page styles
   Dark navy palette · electric blue accents · Inter + Space Grotesk
   ========================================================= */

:root {
  /* Core navy palette */
  --bg:          #050a1c;
  --bg-elev:     #0a1330;
  --navy-800:    #0c1738;
  --navy-700:    #122250;

  /* Electric blue accents */
  --accent:        #2f7bff;
  --accent-bright: #4d9dff;
  --accent-cyan:   #38d0ff;

  /* Text */
  --fg:     #eaf1ff;
  --muted:  #9fb0d6;
  --faint:  #6f80a8;

  /* Lines & surfaces */
  --line:      rgba(140, 170, 235, 0.14);
  --line-soft: rgba(140, 170, 235, 0.08);
  --glass:     rgba(12, 22, 55, 0.55);

  /* Shape */
  --radius:    18px;
  --radius-lg: 24px;
  --maxw:      1180px;

  --shadow-glow: 0 18px 50px rgba(47, 123, 255, 0.35);

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #04101f;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------
   Animated background: gradient + particles + grid
   --------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg__gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(47, 123, 255, 0.38), transparent 60%),
    radial-gradient(34% 40% at 82% 18%, rgba(56, 208, 255, 0.24), transparent 62%),
    radial-gradient(46% 46% at 70% 88%, rgba(63, 90, 255, 0.28), transparent 60%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  opacity: .5;
}

/* ---------------------------------------------------------
   Brand lockup
   --------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
}
.brand__icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 14px rgba(47, 123, 255, 0.5));
}
.brand__name {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand__name span { color: var(--accent-bright); }

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 10, 28, 0.82), rgba(5, 10, 28, 0.35));
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 500;
}
.nav__link {
  position: relative;
  color: var(--muted);
  padding: 4px 2px;
  transition: color .2s ease;
}
/* Animated underline on hover / active */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--fg); }

/* Hamburger toggle — hidden on desktop */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(140, 170, 235, 0.06);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.nav__toggle:hover { border-color: var(--accent-bright); background: rgba(47, 123, 255, 0.12); }
.nav__toggle-box { position: relative; width: 20px; height: 14px; }
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav__toggle-bars { top: 6px; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
/* Open state → X */
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--sm { --h: 42px; padding: 0 18px; font-size: .94rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #04101f;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(47, 123, 255, 0.5);
}
.btn--primary svg { transition: transform .2s ease; }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: rgba(140, 170, 235, 0.06);
  color: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  background: rgba(47, 123, 255, 0.12);
}
/* Tactile press feedback on all buttons */
.btn:active { transform: translateY(0) scale(.985); }

/* Sticky-nav scroll offset so headings clear the bar */
#about, #skills, #work, #pricing, #order, #contact { scroll-margin-top: 92px; }

/* ---------------------------------------------------------
   Shared bits
   --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 140px) 22px clamp(60px, 9vw, 110px);
}
.hero__inner { max-width: 860px; }

.hero__title {
  margin: 0 0 26px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}
.hero__brand {
  display: block;
  font-size: clamp(3rem, 11vw, 6.6rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--fg);
  text-shadow: 0 6px 40px rgba(47, 123, 255, 0.25);
}
.hero__brand span {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  display: block;
  margin-top: 0.28em;
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--fg);
}

.hero__tagline {
  max-width: 52ch;
  margin: 0 0 38px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------------------------------------------------
   Work / templates grid
   --------------------------------------------------------- */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 22px clamp(70px, 10vw, 120px);
}
.work__head { margin-bottom: clamp(32px, 5vw, 54px); }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 680px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 157, 255, 0.55);
  box-shadow: 0 26px 60px rgba(4, 10, 30, 0.6), 0 0 0 1px rgba(77, 157, 255, 0.15);
}

.card__link { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.045); }

.card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.card__arrow {
  color: var(--accent-bright);
  font-size: 1.1rem;
  transition: transform .25s ease;
}
.card:hover .card__arrow { transform: translate(3px, -3px); }

.tag {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  background: rgba(47, 123, 255, 0.12);
  border: 1px solid rgba(77, 157, 255, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 96px) 22px clamp(30px, 5vw, 56px);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
}
@media (min-width: 860px) {
  .about__inner { grid-template-columns: 1.05fr 1fr; align-items: start; }
}
.about__body p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 62ch;
}
.about__body p:last-child { margin-bottom: 0; }

/* Circular profile photo */
.about__avatar {
  position: relative;
  width: clamp(128px, 18vw, 180px);
  aspect-ratio: 1;
  margin-bottom: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border: 2px solid rgba(77, 157, 255, 0.5);
  box-shadow: 0 18px 44px rgba(47, 123, 255, 0.35);
}
.about__avatar-fallback {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #04101f;
}
.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------------------------------------------------------
   Skills
   --------------------------------------------------------- */
.skills {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 22px clamp(50px, 8vw, 90px);
}
.skills__head { margin-bottom: clamp(28px, 4vw, 44px); }

.skills-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
.skill {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.skill:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 157, 255, 0.5);
  box-shadow: 0 20px 44px rgba(4, 10, 30, 0.5);
}
.skill__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--accent-bright);
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.22), rgba(56, 208, 255, 0.12));
  border: 1px solid rgba(77, 157, 255, 0.28);
}
.skill__name {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.skill__desc {
  display: block;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   Work marquee
   --------------------------------------------------------- */
.marquee {
  position: relative;
  --marquee-duration: 60s; /* slower (−50% speed) */
  display: flex;
  flex-direction: column;
}
.marquee__toggle {
  align-self: flex-end;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(140, 170, 235, 0.06);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.marquee__toggle:hover {
  border-color: var(--accent-bright);
  background: rgba(47, 123, 255, 0.12);
}
.marquee__toggle-icon {
  position: relative;
  width: 12px;
  height: 14px;
  display: inline-block;
}
.marquee__toggle-icon::before,
.marquee__toggle-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  background: currentColor;
  border-radius: 1px;
}
.marquee__toggle-icon::before { left: 1px; }
.marquee__toggle-icon::after { right: 1px; }
/* paused → show play triangle */
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon::after { display: none; }
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon::before {
  left: 2px;
  width: 0;
  height: 0;
  background: transparent;
  border-radius: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* Space between the two rows */
.marquee__viewport + .marquee__viewport { margin-top: 20px; }

.marquee__track {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
  will-change: transform;
}
/* Second row travels the opposite direction (left → right) */
.marquee__track--reverse { animation-direction: reverse; }

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.mcard {
  flex: 0 0 auto;
  width: 300px;
}
.mcard__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mcard__link:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 157, 255, 0.55);
  box-shadow: 0 22px 48px rgba(4, 10, 30, 0.6);
}
.mcard__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.mcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mcard__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.mcard__arrow { color: var(--accent-bright); font-size: 1rem; }

/* ---------------------------------------------------------
   Order a website (Google Form embed)
   --------------------------------------------------------- */
.order {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) 22px clamp(30px, 5vw, 50px);
}
.order__head { margin-bottom: clamp(28px, 4vw, 44px); }

/* Numbered steps — three across on desktop */
.order__steps {
  list-style: none;
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .order__steps { grid-template-columns: repeat(3, 1fr); }
}
.ostep {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease;
}
.ostep:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 157, 255, 0.45);
}
.ostep__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #04101f;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .92rem;
}
.ostep__body { min-width: 0; }
.ostep__title {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 4px;
}
.ostep__desc {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* Call-to-action panel that opens the brief in a new tab */
.order__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(47, 123, 255, 0.16), rgba(56, 208, 255, 0.07)),
    var(--glass);
  border: 1px solid rgba(77, 157, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.order__cta-text { min-width: 0; }
.order__cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 6px;
}
.order__cta-desc {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.order__cta-btn { flex: 0 0 auto; }

@media (max-width: 560px) {
  .order__cta { flex-direction: column; align-items: stretch; text-align: left; }
  .order__cta-btn { width: 100%; }
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 22px clamp(50px, 8vw, 96px);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (min-width: 860px) {
  .contact__inner { grid-template-columns: 1fr 1fr; }
}
.contact__intro .section-sub { margin-top: 16px; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
}
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(5, 10, 28, 0.6);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder { color: var(--faint); }
.field__input:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.18);
}
.field__input--area {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
/* Invalid state after a submit attempt */
.contact__form.was-validated .field__input:invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.16);
}

.contact__submit {
  align-self: flex-start;
  margin-top: 4px;
}

.contact__status {
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
  min-height: 1.2em;
}
.contact__status.is-success { color: var(--accent-cyan); }
.contact__status.is-error { color: #ff8585; }

/* ---------------------------------------------------------
   WhatsApp — floating button + inline contact link
   --------------------------------------------------------- */
:root { --wa: #25d366; --wa-dark: #1da851; }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 56px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .38), 0 2px 8px rgba(0,0,0,.25);
  transition: transform .22s ease, box-shadow .25s ease, background .2s ease;
  overflow: hidden;
  white-space: nowrap;
}
.wa-float[hidden] { display: none; }
.wa-float__icon { flex: 0 0 auto; display: block; }
.wa-float__label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .3s ease, opacity .2s ease, margin-left .3s ease;
}
/* Expand to reveal the label on hover / keyboard focus */
.wa-float:hover,
.wa-float:focus-visible {
  background: var(--wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, .5);
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  max-width: 190px;
  opacity: 1;
  margin-left: 10px;
}
.wa-float:active { transform: translateY(-1px) scale(.97); }

/* Inline WhatsApp card inside the contact section */
.wa-inline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(37, 211, 102, .09);
  border: 1px solid rgba(37, 211, 102, .32);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.wa-inline[hidden] { display: none; }
.wa-inline:hover {
  transform: translateY(-2px);
  background: rgba(37, 211, 102, .15);
  border-color: rgba(37, 211, 102, .55);
}
.wa-inline__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--wa);
  color: #fff;
}
.wa-inline__text { display: flex; flex-direction: column; min-width: 0; }
.wa-inline__text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 2px;
}
.wa-inline__text span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

@media (max-width: 560px) {
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-inline, .wa-float__label { transition: none; }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 10, 28, 0.6);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) 22px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-weight: 500;
}
.footer__links a {
  color: var(--muted);
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--accent-bright); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
}
.footer__copy,
.footer__note { color: var(--faint); font-size: .9rem; margin: 0; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

/* Tablet — tighten nav gaps */
@media (max-width: 900px) {
  .nav__links { gap: 20px; }
}

/* Mobile — collapse nav into a toggled dropdown menu */
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 22px 20px;
    background: rgba(5, 10, 28, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__link {
    padding: 12px 6px;
    border-radius: 10px;
    color: var(--fg);
  }
  .nav__link::after { display: none; }
  .nav__link:hover,
  .nav__link.is-active { background: rgba(47, 123, 255, 0.12); color: var(--accent-bright); }
  .nav__cta { margin-top: 8px; width: 100%; }
}

/* Small phones */
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Marquee — smaller cards so ~2.5 templates are visible at once */
  .marquee__track { gap: 12px; }
  .mcard { width: 125px; }
  .mcard__label { padding: 9px 11px; font-size: .8rem; gap: 6px; }
  .mcard__arrow { font-size: .85rem; }

  /* Skills — compact icon + label chips (~3× less space) */
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .skill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 0;
  }
  .skill__icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    border-radius: 8px;
    flex: 0 0 auto;
  }
  .skill__icon svg { width: 16px; height: 16px; }
  .skill__name {
    font-size: .8rem;
    margin-bottom: 0;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .skill__desc { display: none; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .bg__gradient { animation: none; }

  /* Marquee becomes a static, manually scrollable row */
  .marquee__track { animation: none !important; transform: none !important; }
  .marquee__viewport { overflow-x: auto; }
  .marquee__toggle { display: none; }
}

/* ---------------------------------------------------------
   Client Website Preview
   Hidden by default; script.js reveals it only when
   "Client Website Preview/clients.json" lists a client.
   --------------------------------------------------------- */
.clients {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) 22px clamp(70px, 10vw, 120px);
}
.clients[hidden] { display: none; }

.cgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { .cgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cgrid { grid-template-columns: repeat(3, 1fr); } }

.ccard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ccard__link:hover,
.ccard__link:focus-visible {
  border-color: var(--accent-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.ccard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
  border-bottom: 1px solid var(--line-soft);
}
.ccard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Fallback tile when a client has no screenshot yet */
.ccard__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(56, 208, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-800));
}
.ccard__initials {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-bright);
  opacity: .9;
}

.ccard__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 20px;
}
.ccard__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.ccard__industry {
  margin: 5px 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.ccard__arrow {
  flex: none;
  font-size: 1.05rem;
  color: var(--faint);
  transition: color .25s ease, transform .25s ease;
}
.ccard__link:hover .ccard__arrow,
.ccard__link:focus-visible .ccard__arrow {
  color: var(--accent-bright);
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .ccard__link,
  .ccard__arrow { transition: none; }
  .ccard__link:hover,
  .ccard__link:focus-visible { transform: none; }
}

/* ---------------------------------------------------------
   WhatsApp in the nav
   Desktop: sits inside .nav__links, left of "About", so it
   inherits the same 26px gap as the other nav items.
   Mobile:  sits left of the hamburger toggle.
   --------------------------------------------------------- */
.nav__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  background: var(--wa);
  border-radius: 10px;
  transition: background .2s ease, transform .18s ease, box-shadow .22s ease;
}
.nav__wa[hidden] { display: none; }
.nav__wa:hover {
  background: var(--wa-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, .34);
}
.nav__wa:active { transform: translateY(0); }
.nav__wa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Desktop instance */
.nav__wa--d { width: 34px; height: 34px; }

/* Mobile instance — hidden until the nav collapses */
.nav__wa--m { display: none; width: 44px; height: 44px; border-radius: 12px; }

@media (max-width: 720px) {
  /* Desktop icon would otherwise appear inside the dropdown menu */
  .nav__wa--d { display: none; }

  /* Show the mobile icon and push it (and the toggle) to the right edge.
     margin-left:auto absorbs the free space before justify-content does. */
  .nav__wa--m {
    display: inline-flex;
    margin-left: auto;
    margin-right: 10px;
  }
  .nav__wa--m[hidden] { display: none; }
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) 22px clamp(20px, 4vw, 40px);
}
.pricing__head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---- How paying works ---- */
.payflow {
  list-style: none;
  margin: 0 0 clamp(30px, 4.5vw, 46px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .payflow { grid-template-columns: repeat(3, 1fr); }
}
.payflow__step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.payflow__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #04101f;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .92rem;
}
.payflow__body { min-width: 0; }
.payflow__title {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 5px;
}
.payflow__desc {
  display: block;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}

/* ---- Individual / Bundles switch ---- */
.ptabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 19, 48, .6);
}
.ptabs[hidden] { display: none; }
.ptabs__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .94rem;
  transition: background .2s ease, color .2s ease;
}
.ptabs__btn:hover { color: var(--fg); }
.ptabs__btn.is-on {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #04101f;
  font-weight: 700;
}
.ptabs__btn:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

/* ---- Plan groups ---- */
.pgroup[hidden] { display: none; }
.pgroup__label {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
/* When both groups show (no JavaScript), space them apart. */
.pgroup + .pgroup { margin-top: clamp(40px, 6vw, 64px); }

.pgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 760px)  { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---- A plan card ---- */
.pcard {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s ease, transform .25s ease, box-shadow .3s ease;
}
.pcard:hover {
  border-color: rgba(77, 157, 255, .42);
  transform: translateY(-3px);
}
.pcard--feature {
  border-color: rgba(77, 157, 255, .5);
  box-shadow: 0 18px 50px rgba(47, 123, 255, .18);
  background: linear-gradient(180deg, rgba(47, 123, 255, .10), rgba(12, 22, 55, .6));
}
.pcard--soon { opacity: .93; }

.pcard__top { position: relative; margin-bottom: 18px; padding-right: 8px; }
.pcard__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}
.pcard__tag {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.pcard__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #04101f;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pcard__badge--soon {
  background: rgba(140, 170, 235, .12);
  border: 1px solid var(--line);
  color: var(--accent-cyan);
}

.pcard__price { display: flex; align-items: baseline; gap: 8px; }
.pcard__amount {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.pcard__unit { color: var(--faint); font-size: .95rem; font-weight: 500; }
.pcard__then {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .96rem;
}
.pcard__then strong { color: var(--fg); font-weight: 700; }
.pcard__save {
  margin: 9px 0 0;
  font-size: .87rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.pcard__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pcard__list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}
.pcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---- Explainer toggle ---- */
.pcard__more {
  appearance: none;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  margin-top: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(140, 170, 235, .06);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .93rem;
  text-align: left;
  transition: background .2s ease, border-color .2s ease;
}
.pcard__more:hover {
  background: rgba(47, 123, 255, .14);
  border-color: rgba(77, 157, 255, .45);
}
.pcard__more:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.pcard__chev { flex: none; transition: transform .25s ease; color: var(--accent-cyan); }
.pcard__more[aria-expanded="true"] .pcard__chev { transform: rotate(180deg); }

/* ---- The explainer itself ---- */
.pexp {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.22, .61, .36, 1);
}
.pexp[hidden] { display: none; }
.pexp__in {
  padding: 20px 2px 2px;
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
}
.pexp h5 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 20px 0 8px;
}
.pexp__in > h5:first-child { margin-top: 0; }
.pexp p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.68;
}
.pexp p strong { color: var(--fg); font-weight: 600; }
.pexp ul {
  margin: 0 0 10px;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}
.pexp li {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}
.pexp li::marker { color: var(--accent); }
.pexp__note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(140, 170, 235, .05);
  font-size: .89rem !important;
}
.pexp__soon {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 208, 255, .28);
  background: rgba(56, 208, 255, .07);
  margin-bottom: 18px !important;
}

/* ---- Extras row ---- */
.pextra {
  list-style: none;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .pextra { grid-template-columns: repeat(3, 1fr); }
}
.pextra__item {
  padding: 16px 18px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(10, 19, 48, .4);
}
.pextra__name {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 3px;
}
.pextra__price {
  display: block;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 7px;
}
.pextra__desc {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.pricing__foot {
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: .89rem;
  line-height: 1.7;
  max-width: 72ch;
}

@media (prefers-reduced-motion: reduce) {
  .pcard,
  .pcard__chev,
  .pexp { transition: none; }
  .pcard:hover { transform: none; }
}

/* An open explainer takes the full row, so the text reads across the
   page instead of stacking into a very tall, very narrow column. */
@media (min-width: 760px) {
  .pcard.is-open { grid-column: 1 / -1; }
  .pcard.is-open .pexp__in { max-width: 74ch; }
}
