/* ============================================================
   GabrielleDigital — main stylesheet
   Palette: ink #101014 · paper #f6f5f1 · violet #5438ff · lime #d9f954
   Type: Space Grotesk (display) · Inter (body)
   ============================================================ */

:root {
  --ink: #101014;
  --paper: #f5eee1;      /* warm cream / soft beige — human & friendly */
  --surface: #fffdf8;    /* warm white for cards & inputs, lifts off the cream */
  --violet: #5438ff;
  --violet-deep: #3a22c4;
  --lime: #d9f954;
  --muted: #5c5c66;
  --line: rgba(16, 16, 20, 0.12);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* overflow-x:hidden on BOTH html and body — body alone doesn't stop the
   root element from scrolling sideways when a decorative element (the hero
   blob) bleeds past the viewport, which showed white on the right on phones. */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(245, 238, 225, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--violet); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--violet); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 56px) clamp(60px, 9vh, 110px);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-blob {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 35% 35%, rgba(84, 56, 255, 0.35), rgba(217, 249, 84, 0.28) 55%, transparent 72%);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat 9s ease-in-out infinite alternate;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 40px) scale(1.12); }
}

.hero-kicker {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  max-width: 14ch;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--violet);
  position: relative;
  white-space: nowrap;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.18em;
  background: var(--lime);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-note { margin-top: 26px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 30px rgba(84, 56, 255, 0.32);
}
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(246, 245, 241, 0.3);
}
.btn-ghost-light:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn-wide { width: 100%; text-align: center; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--lime);
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 80s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
/* Spacing lives on the separators (not flex `gap`) so the two identical
   halves tile perfectly and translateX(-50%) is a seamless loop point. */
.marquee-track i { font-style: normal; color: var(--violet); margin: 0 17px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(70px, 11vh, 130px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}
.section-dark .section-head,
.section-dark .services-grid,
.section-dark .pricing-grid {
  max-width: 1088px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-sub { color: rgba(246, 245, 241, 0.62); }

.section-kicker {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 16px;
}
.section-dark .section-kicker { color: var(--lime); }

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 700;
  max-width: 24ch;
}
.section-sub {
  margin-top: 18px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}
.section-sub a { color: var(--violet); font-weight: 600; }
.section-head { margin-bottom: clamp(40px, 6vh, 64px); }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.work-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(16, 16, 20, 0.14);
}

.work-thumb {
  position: relative;
  aspect-ratio: 1280 / 860;
  overflow: hidden;
  background: linear-gradient(135deg, #ecebe5, #dedcd4);
}
.work-thumb iframe {
  width: 1280px;
  height: 860px;
  border: 0;
  pointer-events: none;
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}
.work-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  background: rgba(84, 56, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.work-meta h3 { font-size: 1.2rem; margin-bottom: 3px; }
.work-meta p { font-size: 0.88rem; color: var(--muted); }
.work-arrow {
  font-size: 1.35rem;
  color: var(--violet);
  transition: transform 0.25s;
}
.work-card:hover .work-arrow { transform: translate(4px, -4px); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.service {
  border: 1px solid rgba(246, 245, 241, 0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.service:hover {
  border-color: var(--lime);
  transform: translateY(-5px);
  background: rgba(246, 245, 241, 0.04);
}
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--lime);
  font-size: 0.95rem;
}
.service h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.service p { color: rgba(246, 245, 241, 0.66); font-size: 0.97rem; }

/* ---------- Process ---------- */
.process {
  list-style: none;
  display: grid;
  gap: 22px;
  max-width: 780px;
}
.process li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.process li:hover { transform: translateX(8px); box-shadow: 0 12px 34px rgba(16, 16, 20, 0.08); }
.process li > span {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.process h3 { font-size: 1.2rem; margin-bottom: 6px; }
.process p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  align-items: stretch;
}
.price-card {
  border: 1px solid rgba(246, 245, 241, 0.14);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s, border-color 0.25s;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(246, 245, 241, 0.4); }
.price-featured {
  background: linear-gradient(165deg, #6a4dff, #5438ff 55%, #4326e6);
  border-color: var(--violet);
  position: relative;
  box-shadow: 0 24px 70px rgba(84, 56, 255, 0.45);
  transform: translateY(-8px);
}
.price-featured:hover { border-color: var(--lime); transform: translateY(-12px); }
.price-tag { font-size: 0.9rem; color: rgba(246, 245, 241, 0.6); min-height: 2.6em; }
.price-featured .price-tag { color: rgba(255, 255, 255, 0.8); }
.price-fine { font-size: 0.8rem; color: rgba(246, 245, 241, 0.45); margin-top: -4px; }
.price-featured .price-fine { color: rgba(255, 255, 255, 0.62); }
.price-card > .btn { margin-top: 6px; }
.pricing-foot { text-align: center; margin-top: 34px; color: rgba(246, 245, 241, 0.62); font-size: 0.95rem; }
.pricing-foot a { color: var(--lime); text-decoration: none; font-weight: 600; }
.pricing-foot a:hover { text-decoration: underline; }
.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-card h3 { font-size: 1.3rem; }
.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price span { font-size: 1rem; font-weight: 500; color: rgba(246, 245, 241, 0.6); letter-spacing: 0; }
.price-card ul { list-style: none; display: grid; gap: 12px; flex: 1; margin-top: 6px; padding-top: 18px; border-top: 1px solid rgba(246, 245, 241, 0.12); }
.price-featured ul { border-top-color: rgba(255, 255, 255, 0.2); }
.price-card li {
  font-size: 0.95rem;
  color: rgba(246, 245, 241, 0.8);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(217, 249, 84, 0.16);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.price-featured li { color: rgba(255, 255, 255, 0.92); }
.price-featured li::before { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- About ---------- */
.about-inner {
  display: flex;
  gap: clamp(26px, 4vw, 50px);
  align-items: flex-start;
}
.about-badge {
  flex: 0 0 auto;
  width: clamp(90px, 12vw, 150px);
  height: clamp(90px, 12vw, 150px);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  box-shadow: 0 20px 50px rgba(84, 56, 255, 0.35);
  transform: rotate(-4deg);
}
.about-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 26ch; margin-bottom: 18px; }
.about-inner > div > p { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-form {
  max-width: 680px;
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label {
  display: grid;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(84, 56, 255, 0.14);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--violet); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 65px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px;
    gap: 16px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; }
  .nav-cta { text-align: center; }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .form-row { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; }

  /* Keep the decorative glow mostly on-screen and off the right edge so it
     reads as intentional ambient color rather than a cut-off blob. */
  .hero-blob { width: 340px; height: 340px; top: -80px; right: -90px; filter: blur(50px); }
  /* The tilted marquee is scaled up 2% — clip any sub-pixel spill on small screens. */
  .marquee { max-width: 100%; }
}

/* ============================================================
   Liquid-glass cursor — a glass droplet that ripples the page
   like water wherever the mouse moves
   ============================================================ */
.liquid-defs { position: absolute; pointer-events: none; }
.liquid-glass {
  position: fixed;
  top: 0; left: 0;
  width: 190px; height: 190px;
  margin: 0;
  border-radius: 47% 53% 52% 48% / 51% 47% 53% 49%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity .35s ease;
  will-change: transform;
  /* the glass itself */
  background:
    radial-gradient(60% 55% at 34% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 46%, rgba(255,255,255,0) 70%),
    radial-gradient(120% 120% at 70% 78%, rgba(84,56,255,0.10), rgba(217,249,84,0.08) 55%, rgba(255,255,255,0) 75%);
  box-shadow:
    inset 0 0 22px rgba(255,255,255,0.5),
    inset 6px 8px 18px rgba(255,255,255,0.35),
    inset -8px -10px 22px rgba(84,56,255,0.14),
    0 12px 40px rgba(16,16,20,0.18);
  border: 1px solid rgba(255,255,255,0.55);
  /* refract + ripple the page behind it like water */
  -webkit-backdrop-filter: blur(2px) saturate(1.5) brightness(1.06) url(#liquidWater);
  backdrop-filter: blur(2px) saturate(1.5) brightness(1.06) url(#liquidWater);
  animation: lgWobble 8s ease-in-out infinite;
}
@keyframes lgWobble {
  0%,100% { border-radius: 47% 53% 52% 48% / 51% 47% 53% 49%; }
  33%     { border-radius: 54% 46% 44% 56% / 46% 54% 46% 54%; }
  66%     { border-radius: 44% 56% 56% 44% / 55% 45% 55% 45%; }
}
/* only where there's a real cursor + motion is welcome */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .liquid-glass { display: none; }
}

/* ============================================================
   Pay-on-the-spot checkout modal (liquid-glass card)
   ============================================================ */
.checkout { position: fixed; inset: 0; z-index: 10000; display: none; }
.checkout.open { display: block; }
.checkout-scrim { position: absolute; inset: 0; background: rgba(16,16,20,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.checkout.open .checkout-scrim { opacity: 1; }
.checkout-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(420px, 92vw);
  padding: 34px 32px 26px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 90px -30px rgba(16,16,20,0.5), inset 0 1px 0 rgba(255,255,255,0.8);
  opacity: 0; transition: opacity .3s, transform .3s;
}
.checkout.open .checkout-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.checkout-x { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(16,16,20,0.06); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s; }
.checkout-x:hover { background: rgba(16,16,20,0.13); }
.checkout-kick { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--violet); }
.checkout-card h3 { font-size: 1.7rem; margin-top: 6px; }
.checkout-plan-sub { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.checkout-amt { font-family: var(--font-display); font-weight: 700; font-size: 2.7rem; letter-spacing: -0.03em; margin: 12px 0 22px; }
.checkout-amt small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.checkout-methods { display: grid; gap: 12px; }
.pay-btn { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; font-family: var(--font-body); }
.pay-btn:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: 0 10px 24px -12px rgba(84,56,255,0.5); }
.pay-btn .pay-ic { font-size: 1.4rem; }
.pay-btn .pay-txt { flex: 1; display: flex; flex-direction: column; }
.pay-btn .pay-txt b { font-family: var(--font-display); font-size: 1rem; }
.pay-btn .pay-txt small { color: var(--muted); font-size: 0.8rem; }
.pay-btn .pay-go { color: var(--violet); font-weight: 700; }
.pay-card { background: linear-gradient(180deg, #ffffff, #f4f1ff); }
.checkout-note { font-size: 0.86rem; color: var(--violet-deep); background: rgba(84,56,255,0.08); border: 1px solid rgba(84,56,255,0.18); border-radius: 12px; padding: 11px 14px; margin-top: 14px; display: none; }
.checkout-note.show { display: block; }
.checkout-invoice { display: block; width: 100%; margin-top: 14px; background: none; border: 0; color: var(--muted); font-family: var(--font-body); font-size: 0.88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.checkout-invoice:hover { color: var(--ink); }
.checkout-secure { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 16px; font-size: 0.76rem; color: var(--muted); }
