/* ── Custom styles (ported from Next.js globals.css) ── */

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #09090b;
}

/* Prevent horizontal overflow on mobile only - keeps sticky working on desktop */
@media (max-width: 1023px) {
  body {
    overflow-x: hidden;
  }
}

/* ── Animated gradient text ── */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(
    270deg,
    #0078d4,
    #00b4d8,
    #0078d4,
    #0053a6
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

/* ── Subtle dot grid background ── */
.bg-dot-grid {
  background-image: radial-gradient(circle, #e4e4e7 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Premium card ── */
.card-premium {
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.04);
  border-color: #0078d4;
}

/* ── Glow card (dark backgrounds) ── */
.card-glow {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 120, 212, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 120, 212, 0.4);
}

/* ── Flowing line animation ── */
@keyframes flow-dash {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}

.flow-line {
  stroke-dasharray: 8 4;
  animation: flow-dash 0.8s linear infinite;
}

.flow-line-reverse {
  stroke-dasharray: 8 4;
  animation: flow-dash 0.8s linear infinite reverse;
}

/* ── Section divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e4e4e7, transparent);
}

/* ── Animated time bars (Finance Transform) ── */
.time-bar {
  transition: width 0.8s ease-out;
}

/* ── Prose styles for subpages ── */
.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #09090b;
}

.prose p {
  color: #52525b;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose ul {
  color: #52525b;
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.prose a {
  color: #0078d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #005a9e;
}
