/* ============ Anajudraws — liquid glass theme ============ */
:root {
  --blush: #d8cfcb;
  --sand: #ece5e1;
  --taupe: #b0a79d;
  --ink: #2e2e2e;
  --paper: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

/* ---------- custom cursor ---------- */
.has-cursor,
.has-cursor * { cursor: none !important; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--ink);
}
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(46, 46, 46, 0.55);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(3px) saturate(160%);
  -webkit-backdrop-filter: blur(3px) saturate(160%);
  transition: opacity 0.3s ease, width 0.35s var(--ease), height 0.35s var(--ease),
              margin 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.cursor-on .cursor-dot,
.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.9);
}
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------- animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(160deg, #efe8e4 0%, #e2d9d4 55%, #d9cfc8 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 46vmax; height: 46vmax; background: #c9b8ad; top: -12vmax; left: -10vmax; }
.blob.b2 { width: 38vmax; height: 38vmax; background: #f4ece7; top: 30vh; right: -12vmax; animation-duration: 28s; }
.blob.b3 { width: 32vmax; height: 32vmax; background: #b7a99d; bottom: -14vmax; left: 25vw; animation-duration: 25s; animation-delay: -8s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
  100% { transform: translate3d(-5vw, 9vh, 0) scale(0.94); }
}

/* floral pattern overlay */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.75'%3E%3Cg transform='translate(24 26) rotate(15)'%3E%3Ccircle cx='0' cy='-4' r='3'/%3E%3Ccircle cx='4' cy='0' r='3'/%3E%3Ccircle cx='0' cy='4' r='3'/%3E%3Ccircle cx='-4' cy='0' r='3'/%3E%3C/g%3E%3Cg transform='translate(84 40) rotate(-20) scale(.8)'%3E%3Ccircle cx='0' cy='-4' r='3'/%3E%3Ccircle cx='4' cy='0' r='3'/%3E%3Ccircle cx='0' cy='4' r='3'/%3E%3Ccircle cx='-4' cy='0' r='3'/%3E%3C/g%3E%3Cg transform='translate(50 88) rotate(35) scale(.9)'%3E%3Ccircle cx='0' cy='-4' r='3'/%3E%3Ccircle cx='4' cy='0' r='3'/%3E%3Ccircle cx='0' cy='4' r='3'/%3E%3Ccircle cx='-4' cy='0' r='3'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='2'/%3E%3Ccircle cx='10' cy='70' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  animation: pattern 60s linear infinite;
}
@keyframes pattern { to { background-position: 120px 120px; } }

/* ---------- liquid glass base ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.14));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.25),
    inset 1px 0 0 rgba(255,255,255,0.35),
    0 24px 60px rgba(70, 55, 45, 0.18);
}
/* light that follows the pointer */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.6), transparent 60%);
  transition: opacity 0.4s ease;
}
.glass:hover::after { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  text-align: center;
  padding: 34px 20px 10px;
}
.logo {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.1;
  color: #262626;
  text-decoration: none;
  transition: transform 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}
.logo:hover { transform: rotate(-2deg) scale(1.05); letter-spacing: 0.02em; }
.logo img { display: block; max-width: min(300px, 70vw); height: auto; }

.nav {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  padding: 6px;
  border-radius: 999px;
}
.nav a {
  position: relative;
  padding: 9px 22px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.35s ease, transform 0.35s var(--ease);
}
.nav a:hover { background: rgba(255,255,255,0.55); transform: translateY(-1px); }
.nav a.active {
  background: rgba(46, 46, 46, 0.88);
  color: #fff;
  box-shadow: 0 6px 18px rgba(46,46,46,0.25);
}

/* ---------- main ---------- */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 34px 20px 50px;
}
.stage { perspective: 1000px; width: 100%; max-width: 620px; animation: rise 0.9s var(--ease) both; }

.card {
  border-radius: 28px;
  padding: 36px 28px;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease);
}

.links { list-style: none; margin: 0 auto; padding: 0; max-width: 330px; display: grid; gap: 14px; }
.links li { animation: rise 0.8s var(--ease) both; animation-delay: calc(0.15s + var(--i) * 0.09s); }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 66px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(60,60,60,0.88), rgba(34,34,34,0.9));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -8px 16px rgba(0,0,0,0.25),
    0 10px 24px rgba(40,30,25,0.28);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.3s var(--ease), box-shadow 0.4s ease, background 0.4s ease;
  will-change: transform;
}
/* pointer highlight */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
/* shine sweep */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
}
.btn span { position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.btn .arrow {
  position: relative; z-index: 1;
  width: 0; opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s var(--ease);
}
.btn:hover {
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 3px)) scale(1.035);
  background: linear-gradient(135deg, rgba(78,78,78,0.9), rgba(40,40,40,0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -8px 16px rgba(0,0,0,0.2),
    0 18px 34px rgba(40,30,25,0.34);
}
.btn:hover::before { opacity: 1; }
.btn:hover::after { left: 130%; transition: left 0.8s var(--ease); }
.btn:hover .arrow { width: 1em; opacity: 1; transform: translateX(0); }
.btn:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.98); }
.btn:focus-visible, .nav a:focus-visible, .logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(46,46,46,0.6);
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 26px 20px;
  color: #fff;
  background: rgba(36, 36, 36, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 2px;
}
.site-footer a:hover { background-size: 100% 1px; }

/* ---------- commissions page ---------- */
.page-title { text-align: center; margin: 0 0 6px; font-weight: 500; font-size: 1.7rem; }
.status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 26px; width: fit-content;
  padding: 8px 18px; border-radius: 999px; font-size: 0.92rem;
}
.status i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #6fbf8b; box-shadow: 0 0 0 0 rgba(111,191,139,0.7);
  animation: pulse 2s infinite;
}
.status.closed i { background: #d27a7a; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(111,191,139,0); } 100% { box-shadow: 0 0 0 0 rgba(111,191,139,0); } }

.tiers { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tier {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: 20px;
  transition: transform 0.4s var(--ease);
}
.tier:hover { transform: translateY(-4px) scale(1.015); }
.tier h3 { margin: 0 0 4px; font-weight: 500; font-size: 1.08rem; }
.tier p { margin: 0; font-size: 0.88rem; opacity: 0.75; }
.price { font-size: 1.15rem; white-space: nowrap; }
.note { margin: 26px 0 0; text-align: center; font-size: 0.93rem; line-height: 1.6; }
.note a { color: var(--ink); }

/* ---------- commission info page ---------- */
.doc-main { place-items: start center; }
.stage.wide { max-width: 1040px; display: grid; gap: 22px; }

.intro {
  border-radius: 26px;
  padding: 30px 34px;
  color: #fff;
  background: linear-gradient(135deg, rgba(62,62,62,0.9), rgba(34,34,34,0.92));
  border-color: rgba(255,255,255,0.16);
}
.intro h1 { margin: 0 0 14px; font-weight: 500; font-size: clamp(1.5rem, 4vw, 1.9rem); }
.intro p { margin: 0; line-height: 1.7; font-size: 1.02rem; }
.intro a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 1px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  background: linear-gradient(#fff, #fff) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s ease;
}
.intro a:hover { background-size: 100% 100%; color: var(--ink); }

.terms { border-radius: 28px; padding: 34px clamp(20px, 4vw, 44px) 40px; }
.terms-title { margin: 0 0 30px; font-weight: 400; font-size: 1.5rem; }
.terms-title span {
  display: inline-block;
  padding: 6px 22px;
  border-radius: 12px;
  background: rgba(216, 207, 203, 0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 6px 16px rgba(70,55,45,0.12);
}

.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px clamp(28px, 5vw, 64px); }
.col { display: grid; gap: 8px; align-content: start; }

.rule {
  padding: 14px 16px;
  margin: 0 -16px;
  border-radius: 18px;
  transition: background 0.4s ease, transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.rule:hover {
  background: rgba(255,255,255,0.4);
  transform: translateX(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 26px rgba(70,55,45,0.1);
}
.rule h3 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 700; }
.rule h3.sub { font-size: 1rem; }
.rule p, .rule li { font-size: 0.97rem; line-height: 1.65; }
.rule p { margin: 0 0 10px; }
.rule ul, .rule ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.rule li::marker { color: rgba(46,46,46,0.6); }
.rule strong { font-weight: 700; }

.mark { display: inline-block; width: 1.3em; font-weight: 700; }
.yes .mark { color: #3f7d58; }
.no .mark { color: #b05555; }

.clause { display: grid; grid-template-columns: 2.2em 1fr; gap: 4px; margin-bottom: 14px !important; }
.clause span { opacity: 0.6; }

@media (max-width: 800px) {
  .terms-grid { grid-template-columns: 1fr; }
  .intro { padding: 24px 22px; }
}

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.site-header { animation: rise 0.8s var(--ease) both; }

@media (max-width: 520px) {
  .card { padding: 26px 16px; border-radius: 24px; }
  .btn { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
