/* ===== letsBrand – styles ===== */
:root {
  --bg: #0b0b14;
  --bg-2: #11111d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f8;
  --muted: #a3a3b8;
  --c1: #7c5cff;
  --c2: #ff4fa3;
  --c3: #ffb347;
  --grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3));
  --radius: 20px;
  --container: 1160px;
  --header-h: 72px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 800; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c2);
  margin-block-end: 12px;
}
.eyebrow--light {
  position: relative;
  color: var(--text);
  font-size: 1.05rem;
  margin-block-end: 22px;
}
/* hand-drawn swoosh like the logo, mirrored for RTL; draws in on reveal */
.eyebrow--light::after {
  content: "";
  position: absolute;
  inset-inline: -2%;
  bottom: -10px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%237c5cff'/%3E%3Cstop offset='.55' stop-color='%23ff4fa3'/%3E%3Cstop offset='1' stop-color='%23ffb347'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M98 8C70 2 35 1 2 4' fill='none' stroke='url(%23g)' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: right center;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s;
}
.js .reveal:not(.is-visible) .eyebrow--light::after { transform: scaleX(0); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px -10px rgba(255, 79, 163, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, background-position 0.4s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(255, 79, 163, 0.75); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-hover); box-shadow: none; }
.btn--small { padding: 9px 20px; font-size: 0.95rem; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 11, 20, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  font-family: "Poppins", "Heebo", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo__mark {
  flex: none;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 14px rgba(255, 79, 163, 0.35));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo__spark {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo:hover .logo__spark { transform: rotate(90deg) scale(1.12); }
.logo__lets { font-family: "Pacifico", cursive; font-weight: 400; font-size: 0.9em; letter-spacing: 0; margin-inline-end: 5px; color: #fff; }
.logo__brand {
  position: relative;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 1px;
}
/* hand-drawn swoosh under "Brand" */
.logo__brand::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 2%;
  bottom: -8px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%237c5cff'/%3E%3Cstop offset='.55' stop-color='%23ff4fa3'/%3E%3Cstop offset='1' stop-color='%23ffb347'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 8C30 2 65 1 98 4' fill='none' stroke='url(%23g)' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .logo__brand::after { transform: scaleX(1.06); }
.logo__dot { font-weight: 800; color: var(--c3); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin-block: 5px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 60px) 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(35% 45% at 30% 40%, rgba(255, 79, 163, 0.28), transparent 70%),
    radial-gradient(30% 40% at 50% 80%, rgba(255, 179, 71, 0.15), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__title { font-size: clamp(2rem, 5.2vw, 3.8rem); letter-spacing: -0.01em; margin-block-end: 22px; }
.hero__lead { max-width: 640px; margin-inline: auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-block-end: 36px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-block-end: 44px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

/* ===== Sections ===== */
.section { padding-block: clamp(70px, 10vw, 120px); position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.9rem, 4.2vw, 3rem); }

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(255,79,163,0.2));
  margin-block-end: 20px;
}
.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.3rem; margin-block-end: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-block-end: 18px; }
.card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.card__list li { display: flex; align-items: center; gap: 10px; }
.card__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

/* ===== Steps ===== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: none;
}
.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.step__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-block-end: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.2rem; margin-block-end: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ===== Why ===== */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why__text p:not(.eyebrow) { color: var(--muted); margin-block: 20px 30px; font-size: 1.08rem; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__list li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}
.why__list strong { font-size: 1.15rem; }
.why__list span { color: var(--muted); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: radial-gradient(60% 80% at 50% 100%, rgba(124, 92, 255, 0.18), transparent 70%), var(--bg-2); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.contact__text p:not(.eyebrow) { color: var(--muted); margin-block-start: 18px; font-size: 1.08rem; }

.form {
  padding: 32px;
  border-radius: 24px;
  background: rgba(11, 11, 20, 0.6);
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.form input[dir="ltr"] { text-align: right; }
.form select option { background: var(--bg-2); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c1); background: var(--surface-hover); }
.form .is-invalid { border-color: #ff5d6c; }
.form__msg { min-height: 1.2em; font-size: 0.92rem; color: var(--c3); text-align: center; }

/* ===== Footer ===== */
.footer { padding-block: 34px; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }

/* ===== Reveal on scroll (only when JS is on) ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Floating containers on hover ===== */
:is(.card, .step, .why__list li, .hero__chips li),
.js :is(.card, .step, .why__list li, .hero__chips li) {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}
:is(.card, .step, .why__list li):hover {
  translate: 0 -10px;
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 50px -22px rgba(124, 92, 255, 0.55),
    0 12px 24px -16px rgba(255, 79, 163, 0.4);
}
.hero__chips li:hover {
  translate: 0 -4px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px -14px rgba(124, 92, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .why, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .why__text, .contact__text { text-align: center; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 24px;
    background: rgba(11, 11, 20, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { width: 100%; text-align: center; padding: 12px; font-size: 1.1rem; }
  .nav .btn { margin-block-start: 8px; }
  .header:has(.nav.is-open) { background: rgba(11, 11, 20, 0.97); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .why__list, .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { justify-content: center; text-align: center; }
}
