:root {
  --background: 220 33% 98%;
  --foreground: 222 44% 13%;
  --primary: 266 82% 54%;
  --primary-foreground: 0 0% 100%;
  --secondary: 222 45% 14%;
  --secondary-foreground: 0 0% 100%;
  --accent: 187 71% 91%;
  --accent-foreground: 222 45% 14%;
  --muted: 220 22% 94%;
  --muted-foreground: 220 12% 42%;
  --card: 0 0% 100%;
  --card-foreground: 222 44% 13%;
  --border: 220 22% 88%;
  --input: 220 22% 88%;
  --ring: 266 82% 54%;
  --radius: 1rem;
}

html { background: #f8fafc; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, .08), transparent 26rem),
    radial-gradient(circle at 90% 35%, rgba(20, 184, 166, .08), transparent 28rem),
    #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.025em;
}

header {
  background: rgba(255, 255, 255, .88) !important;
  border-bottom: 1px solid rgba(148, 163, 184, .24) !important;
  box-shadow: 0 10px 36px rgba(15, 23, 42, .07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

header img { filter: saturate(1.08) contrast(1.03); }

main section:first-child {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 84vh, 880px);
  background-image:
    linear-gradient(90deg, rgba(10, 18, 35, .92) 0%, rgba(10, 18, 35, .70) 44%, rgba(10, 18, 35, .16) 76%),
    url("/assets/stitch-01.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}

main section:first-child::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  z-index: -1;
  background: linear-gradient(transparent, rgba(10, 18, 35, .38));
  pointer-events: none;
}

main section:first-child h1 {
  max-width: 13ch;
  color: white !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .34);
}

main section:first-child p { color: rgba(255, 255, 255, .86) !important; }

main section:nth-of-type(2) {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(100, 116, 139, .14) 1px, transparent 0);
  background-size: 22px 22px;
}

main section:nth-of-type(3) {
  position: relative;
  background:
    linear-gradient(rgba(15, 23, 42, .70), rgba(15, 23, 42, .70)),
    url("/assets/stitch-02.jpg") center/cover fixed;
  color: white;
}

[class*="rounded-2xl"], [class*="rounded-xl"] {
  border-color: rgba(148, 163, 184, .22);
}

[class*="shadow-lg"], [class*="shadow-xl"] {
  box-shadow: 0 22px 55px rgba(15, 23, 42, .12) !important;
}

a, button { transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease; }
button:hover, a[class*="bg-primary"]:hover { transform: translateY(-2px); }

footer {
  background: #111a2f !important;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

footer img { filter: brightness(0) invert(1); }

html[dir="rtl"] main section:first-child {
  background-image:
    linear-gradient(270deg, rgba(10, 18, 35, .92) 0%, rgba(10, 18, 35, .70) 44%, rgba(10, 18, 35, .16) 76%),
    url("/assets/stitch-01.jpg") !important;
}

@media (max-width: 767px) {
  main section:first-child {
    min-height: 680px;
    background-image:
      linear-gradient(180deg, rgba(10, 18, 35, .48), rgba(10, 18, 35, .92)),
      url("/assets/stitch-01.jpg") !important;
    background-position: 58% center !important;
  }
  main section:nth-of-type(3) { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
