/* ============================================================
   Incossify — Premium Visual Enhancement Layer
   Pure styling. No content, markup, or behaviour is changed.
   Loaded AFTER the original stylesheet so it only refines it.
   ============================================================ */

:root,
.dark {
  /* Existing dark/purple base kept, cooled slightly toward deep emerald */
  --background: oklch(13% 0.045 250);
  --surface: oklch(17.5% 0.05 220);
  --surface-2: oklch(22% 0.07 200);
  --card: oklch(18% 0.05 215);

  /* Green accent system */
  --inc-emerald: oklch(62% 0.16 162);
  --inc-green: oklch(72% 0.19 155);
  --inc-lime: oklch(84% 0.19 145);
  --inc-deep-green: oklch(24% 0.09 165);

  --primary: oklch(64% 0.17 160);
  --ring: oklch(70% 0.18 158);
  --accent: oklch(72% 0.19 155);
  --neon: oklch(80% 0.19 152);
  --neon-2: oklch(70% 0.2 190);

  --border: oklch(60% 0.09 165 / 0.22);
  --input: oklch(60% 0.08 170 / 0.24);
  --muted-foreground: oklch(80% 0.02 180);

  --gradient-primary: linear-gradient(
    135deg,
    oklch(60% 0.17 165),
    oklch(72% 0.19 150)
  );
  --gradient-neon: linear-gradient(135deg, var(--neon), var(--neon-2));

  --gradient-hero:
    radial-gradient(ellipse at 18% 12%, oklch(58% 0.19 160 / 0.3), transparent 60%),
    radial-gradient(ellipse at 82% 30%, oklch(52% 0.2 285 / 0.28), transparent 62%),
    radial-gradient(ellipse at 50% 100%, oklch(45% 0.16 170 / 0.22), transparent 65%),
    linear-gradient(180deg, oklch(13% 0.045 250), oklch(11% 0.04 230));

  --shadow-glow:
    0 0 32px oklch(65% 0.18 158 / 0.32), 0 0 72px oklch(60% 0.16 165 / 0.16);
  --shadow-card: 0 22px 60px -24px oklch(8% 0.05 200 / 0.85);
}

/* ---------- Typography polish (same fonts, same copy) ---------- */
html,
body {
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 {
  line-height: 0.98;
}
p {
  line-height: 1.7;
  text-wrap: pretty;
}

.text-gradient {
  background: linear-gradient(
    120deg,
    oklch(97% 0.03 160),
    oklch(82% 0.19 152) 55%,
    oklch(74% 0.17 178)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ambient background depth + logo watermark ---------- */
.min-h-screen.bg-hero {
  position: relative;
  isolation: isolate;
}

/* Soft ambient green light pooling at the page edges */
.min-h-screen.bg-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40rem 40rem at -10% 20%, oklch(62% 0.17 162 / 0.16), transparent 70%),
    radial-gradient(36rem 36rem at 110% 64%, oklch(60% 0.16 168 / 0.14), transparent 70%),
    radial-gradient(30rem 30rem at 50% 108%, oklch(55% 0.14 175 / 0.1), transparent 70%);
}

/* Faint brand watermarks along the left/right margins only */
.min-h-screen.bg-hero::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  filter: blur(2px) saturate(0.45);
  mix-blend-mode: screen;
  background-image:
    url("/images/qZy4qrKxVz3t.jpg"),
    url("/images/qZy4qrKxVz3t.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: 24rem 24rem, 18rem 18rem;
  background-position: -7rem 20%, calc(100% + 5rem) 74%;
}

.min-h-screen.bg-hero > * {
  position: relative;
}

@media (max-width: 1280px) {
  /* Never let decoration approach content on smaller screens */
  .min-h-screen.bg-hero::after {
    display: none;
  }
}

/* ---------- Header / navigation ---------- */
header.glass {
  background: color-mix(in oklab, oklch(12% 0.04 235) 72%, transparent);
  border-bottom: 1px solid oklch(70% 0.12 160 / 0.14);
  box-shadow: 0 10px 30px -24px oklch(60% 0.17 160 / 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
header nav a {
  position: relative;
  padding-block: 0.35rem;
}
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--inc-green), transparent);
  transition: right 0.25s ease;
}
header nav a:hover {
  color: oklch(88% 0.14 155);
}
header nav a:hover::after {
  right: 0;
}

/* ---------- Cards, panels, glass surfaces ---------- */
.glass {
  border: 1px solid oklch(70% 0.1 165 / 0.14);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.glass.rounded-2xl,
.glass.rounded-3xl,
.glass.rounded-xl {
  position: relative;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.glass.rounded-2xl::before,
.glass.rounded-3xl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    oklch(80% 0.17 152 / 0.35),
    transparent 45%,
    oklch(70% 0.14 190 / 0.18)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

@media (hover: hover) {
  .glass.rounded-2xl:hover,
  .glass.rounded-3xl:hover {
    transform: translateY(-4px);
    border-color: oklch(75% 0.14 158 / 0.3);
    box-shadow:
      var(--shadow-card),
      0 0 30px -6px oklch(65% 0.17 158 / 0.28);
  }
  .glass.rounded-2xl:hover::before,
  .glass.rounded-3xl:hover::before {
    opacity: 1;
  }
}

/* ---------- Buttons / calls to action ---------- */
.bg-gradient-primary {
  background: var(--gradient-primary);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
a.bg-gradient-primary,
button.bg-gradient-primary {
  box-shadow:
    0 10px 24px -12px oklch(62% 0.18 158 / 0.75),
    inset 0 1px 0 oklch(96% 0.05 150 / 0.25);
}
@media (hover: hover) {
  a.bg-gradient-primary:hover,
  button.bg-gradient-primary:hover {
    transform: translateY(-1.5px);
    filter: brightness(1.06);
    box-shadow:
      0 14px 34px -12px oklch(66% 0.19 156 / 0.8),
      inset 0 1px 0 oklch(96% 0.05 150 / 0.3);
  }
  a.glass:hover {
    border-color: oklch(78% 0.14 155 / 0.35);
  }
}
a.bg-gradient-primary:active,
button.bg-gradient-primary:active {
  transform: translateY(0);
}

/* ---------- Icons, links, small accents ---------- */
.text-neon {
  filter: drop-shadow(0 0 6px oklch(75% 0.18 155 / 0.35));
}
main a:not([class*="bg-gradient"]):not(.glass):hover {
  color: oklch(85% 0.15 155);
}

/* ---------- Forms ---------- */
input,
select,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: oklch(72% 0.16 156 / 0.6) !important;
  box-shadow: 0 0 0 3px oklch(70% 0.18 156 / 0.16);
}

/* ---------- Section separation ---------- */
.border-y,
.border-t,
.border-b {
  border-color: oklch(70% 0.1 165 / 0.16);
}

/* ---------- Images ---------- */
main img {
  border-radius: inherit;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .glass.rounded-2xl:hover,
  .glass.rounded-3xl:hover {
    transform: none;
  }
}

/* ---------- Mobile menu overlay (styling only) ---------- */
#mobile-menu-overlay {
  background-color: oklch(12% 0.04 235) !important;
  background-image:
    radial-gradient(28rem 28rem at 110% 8%, oklch(60% 0.17 160 / 0.18), transparent 70%),
    radial-gradient(24rem 24rem at -10% 92%, oklch(55% 0.15 175 / 0.16), transparent 70%) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#mobile-menu-overlay nav a {
  border-radius: 0.75rem;
  margin-inline: 0.75rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
#mobile-menu-overlay nav a:active,
#mobile-menu-overlay nav a:focus-visible {
  background: oklch(70% 0.16 158 / 0.12);
  color: oklch(88% 0.14 155);
}
#mobile-menu-overlay a[href="/register"] {
  background: var(--gradient-primary) !important;
  box-shadow: 0 12px 28px -14px oklch(64% 0.18 158 / 0.85);
}
