/* ============================================================
   Creative Spade — landing page styles
   Aesthetic: Dark Gold Luxury. Near-black canvas, warm cream
   text, gold gradient accents, elegant serif display (Fraunces),
   premium motion (gold shine, cursor glow, elegant reveals).
   ============================================================ */

:root {
  --bg:        #0b0b0d;   /* page */
  --bg-2:      #111014;   /* raised */
  --bg-3:      #17151b;   /* cards */
  --ink:       #f4efe3;   /* warm cream headings/text */
  --ink-soft:  #cfc8ba;   /* body */
  --muted:     #9a9384;   /* secondary */
  --gold:      #d4af37;
  --gold-lt:   #f0d77a;
  --gold-dp:   #a9802b;
  --gold-soft: rgba(212,175,55,0.10);
  --line:      rgba(212,175,55,0.16);
  --line-2:    rgba(255,255,255,0.08);
  --grad-gold: linear-gradient(105deg, #f0d77a, #d4af37 45%, #a9802b);
  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1140px;
  --shadow:    0 24px 60px -24px rgba(0,0,0,0.8);
  --glow-gold: 0 0 0 1px rgba(212,175,55,0.35), 0 18px 50px -18px rgba(212,175,55,0.35);
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain + vignette for depth */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, transparent 60%, rgba(0,0,0,0.5));
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em;
}
/* gold gradient text with a slow shine sweep */
em {
  font-style: normal;
  background: linear-gradient(105deg, #f0d77a, #d4af37 40%, #f0d77a 60%, #a9802b);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-gold); color: #1a1406; font-weight: 700; box-shadow: 0 10px 30px -12px rgba(212,175,55,0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(212,175,55,0.75); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-2px); }

/* ---------- Eyebrows / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad-gold); }
.eyebrow--center { justify-content: center; }
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section__title { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 18px; }
.section__title--center { text-align: center; }
.section__lead { color: var(--muted); max-width: 620px; margin: 0 auto 58px; text-align: center; font-size: 18px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11,11,13,0.72); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__mark img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(212,175,55,0.35)); transition: filter .3s, transform .3s; }
.brand:hover .brand__mark img { filter: drop-shadow(0 0 16px rgba(212,175,55,0.6)); transform: rotate(-4deg); }
.brand__name { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { position: relative; color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--gold-lt); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .25s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -2; pointer-events: none;
  background: radial-gradient(45% 55% at 30% 12%, rgba(212,175,55,0.16), transparent 70%),
              radial-gradient(40% 50% at 82% 4%, rgba(240,215,122,0.10), transparent 70%);
  filter: blur(6px);
}
/* cursor-follow gold glow (set via JS --mx/--my) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background: radial-gradient(360px 360px at var(--mx, 70%) var(--my, 20%), rgba(212,175,55,0.10), transparent 70%);
  transition: background .2s;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(42px, 5.8vw, 72px); margin-bottom: 24px; font-weight: 500; }
.hero__sub { font-size: 20px; color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero__trust { list-style: none; display: flex; flex-direction: column; gap: 13px; color: var(--ink-soft); font-size: 15px; }
.hero__trust li { position: relative; padding-left: 28px; }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 1px; background: var(--grad-gold); box-shadow: 0 0 8px rgba(212,175,55,0.6); }
.hero__trust strong { color: var(--ink); font-weight: 600; }

/* hero visual — gold-framed browser mockup */
.hero__visual { position: relative; }
.mockup { border-radius: 14px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 1px rgba(212,175,55,0.12); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .7s var(--ease), box-shadow .6s, opacity .7s var(--ease); transform-origin: left center; }
/* "deal in" like a playing card on load */
.mockup.pre-deal { opacity: 0; transform: perspective(1400px) rotateY(-82deg) translateX(60px); }
.hero__visual:hover .mockup { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); box-shadow: var(--shadow), 0 0 40px -8px rgba(212,175,55,0.3); }
.mockup__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0e0d11; border-bottom: 1px solid var(--line-2); }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2730; }
.mockup__bar span:nth-child(1){background:#d4af37}.mockup__bar span:nth-child(2){background:#7a6a3a}.mockup__bar span:nth-child(3){background:#4a4534}
.mockup__bar em { font-style: normal; margin-left: 10px; font-size: 12px; color: var(--muted); background: #08080a; border: 1px solid var(--line-2); padding: 3px 14px; border-radius: 6px; animation: none; -webkit-text-fill-color: var(--muted); }
.mockup__shot { position: relative; aspect-ratio: 4/3; background: var(--bg-3); }
.mockup__shot .ms-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .9s var(--ease); }
.mockup__shot .ms-img.is-top { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mockup__shot .ms-img { transition: none; } em { animation: none; } }
.hero__badge { position: absolute; bottom: -18px; left: -18px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.hero__badge b { font-family: 'Fraunces', serif; font-size: 20px; color: var(--gold-lt); }
.hero__badge small { display: block; color: var(--muted); font-size: 12.5px; }
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.18); }

/* industries strip */
.logos { padding: 38px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.logos p { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }
.logos__row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logos__row span { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; color: var(--muted); transition: color .3s; }
.logos__row span:hover { color: var(--gold-lt); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem .section__title { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem__card { padding: 32px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line-2); transition: border-color .3s, transform .3s, box-shadow .3s; }
.problem__card:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: var(--glow-gold); }
.problem__card h3 { font-size: 21px; margin-bottom: 10px; color: var(--gold-lt); }
.problem__card p { color: var(--muted); font-size: 15.5px; }

/* ============================================================
   SERVICES / cards shared
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.services__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .services__grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid--4 { grid-template-columns: 1fr; } }
.service { padding: 32px 28px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line-2); transition: transform .3s, border-color .3s, box-shadow .3s; }
.service:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: var(--glow-gold); }
.service__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-lt); border: 1px solid var(--line); margin-bottom: 18px; }
.service__icon svg { width: 22px; height: 22px; display: block; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; }
.service em { display: block; font-style: normal; color: var(--gold-lt); font-weight: 600; margin-bottom: 6px; font-size: 14.5px; -webkit-text-fill-color: initial; animation: none; background: none; }

.btn svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   WORK
   ============================================================ */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work__card { border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line-2); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.work__card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow), 0 0 30px -10px rgba(212,175,55,0.25); }
.work__frame { padding: 12px 12px 0; }
.work__bar { display: flex; align-items: center; gap: 6px; background: #0e0d11; border: 1px solid var(--line-2); border-bottom: none; border-radius: 10px 10px 0 0; padding: 9px 12px; }
.work__bar span { width: 9px; height: 9px; border-radius: 50%; background: #2a2730; flex: none; }
.work__bar span:nth-child(1){background:#d4af37}.work__bar span:nth-child(2){background:#7a6a3a}.work__bar span:nth-child(3){background:#4a4534}
.work__bar em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 8px; background: #08080a; padding: 3px 12px; border-radius: 6px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line-2); animation: none; -webkit-text-fill-color: var(--muted); }
.work__shot { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0 0 4px 4px; }
.work__shot img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.work__shot.is-loaded img { opacity: 1; }
.work__card:hover .work__shot img { transform: scale(1.03); }
.work__fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(120% 90% at 30% 0%, rgba(212,175,55,0.16), transparent 60%), var(--bg-3); }
.work__fallback span { font-family: 'Fraunces', serif; font-size: 23px; color: var(--ink); }
.work__fallback small { font-size: 12.5px; color: var(--muted); }
.work__meta { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; }
.work__name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; color: var(--ink); }
.work__domain { font-size: 13px; color: var(--gold); font-weight: 600; }

/* ============================================================
   PROCESS
   ============================================================ */
.process__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-3); transition: border-color .3s, transform .3s; }
.step:hover { border-color: var(--line); transform: translateY(-4px); }
.step__num { font-family: 'Fraunces', serif; font-size: 30px; color: var(--gold); display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner__inner { text-align: center; padding: 70px 40px; border-radius: 22px; position: relative; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line); }
.cta-banner__inner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 50% -20%, rgba(212,175,55,0.22), transparent 60%); }
.cta-banner h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; position: relative; }
.cta-banner p { color: var(--muted); font-size: 18px; margin-bottom: 30px; position: relative; }
.cta-banner .btn--primary { position: relative; }

/* ============================================================
   BOOKING (Calendly inline)
   ============================================================ */
.calendly-wrap { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); }
#calendlyInline { min-width: 320px; height: 700px; }
.calendly-fallback { text-align: center; color: var(--muted); font-size: 15px; padding: 26px 16px; }
.calendly-fallback a { color: var(--gold-lt); text-decoration: underline; }
.cf-turnstile { margin-bottom: 16px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.contact__list a { color: var(--gold-lt); }
.contact__list a:hover { color: var(--gold); }
.contact__list svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--gold); margin-right: 8px; }
.contact__formwrap { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.form input, .form textarea { background: #0d0c10; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 13px 15px; color: var(--ink); font-family: inherit; font-size: 15.5px; transition: border-color .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: #6a6558; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.form textarea { resize: vertical; }
.form__status { margin-top: 14px; font-size: 14.5px; min-height: 20px; }
.form__status.is-ok { color: #8fd0a0; }
.form__status.is-err { color: #e88; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-2); padding: 60px 0 30px; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--line-2); }
.footer__brand { max-width: 340px; }
.footer__brand .brand__mark img { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(212,175,55,0.35)); }
.footer__brand .brand { margin-bottom: 4px; }
.footer__tag { color: var(--muted); font-size: 15px; margin-top: 12px; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer__nav a:hover { color: var(--gold-lt); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: #6a6558; font-size: 13.5px; }
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--gold-lt); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* work cards "deal in" with a slight rotation */
.reveal.deal { transform: translateY(36px) rotate(-4deg) scale(0.95); transform-origin: bottom center; }
.reveal.deal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .mockup.pre-deal { opacity: 1; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; }
  .problem__grid, .services__grid, .work__grid { grid-template-columns: 1fr 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: rgba(11,11,13,0.97); backdrop-filter: blur(14px); padding: 24px; gap: 20px; border-bottom: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 72px; }
  .problem__grid, .services__grid, .work__grid, .process__steps { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  em { animation: none; }
}
