/* ============================================================
   DIGITAL DADI — Global Stylesheet
   One file per section is imported via <link> in index.php.
   This file: reset, brand tokens, typography, layout utilities,
   shared components (buttons, glass panels, badges).
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Brand Tokens ─────────────────────────────────────────── */
:root {
  --dadi-blue:      #4A4B71;
  --dadi-blue-dark: #3A3B5A;
  --dadi-yellow:    #FDBB11;
  --dadi-orange:    #F27D26;
  --dadi-dark:      #0f172a;
  --dadi-light:     #f8fafc;
  --dadi-muted:     #64748b;

  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 120rem;      /* 1920px — full-width feel */
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.14);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll — CSS smooth conflicts with it */
body {
  background-color: var(--dadi-light);
  color: var(--dadi-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 6vw, 9rem);
}
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-4  { gap: 1rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.z-10  { z-index: 10; }
.z-50  { z-index: 50; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.inset-0 { inset: 0; }

/* ── Typography ───────────────────────────────────────────── */
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide  { letter-spacing: 0.05em; }
.uppercase      { text-transform: uppercase; }
.leading-none   { line-height: 1; }

.text-gradient {
  background: linear-gradient(to right, var(--dadi-blue), var(--dadi-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
  line-height: 1.1;
  display: inline-block;
}

/* ── Glass Panels ─────────────────────────────────────────── */
.glass-panel {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.05);
}
.dark-glass-panel {
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--dadi-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(74,75,113,0.35);
}
.btn-primary:hover {
  background: var(--dadi-blue-dark);
  box-shadow: 0 6px 20px rgba(74,75,113,0.45);
}

.btn-outline {
  background: #fff;
  color: var(--dadi-dark);
  border: 1.5px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--dadi-blue);
  color: var(--dadi-blue);
}

.btn-lg {
  height: 3rem;
  padding-inline: 2rem;
  font-size: 1rem;
}

/* Arrow icon inside button */
.btn-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Scrollbar Hide ───────────────────────────────────────── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Marquee Animations (CardShowcase — session 3) ────────── */
@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.animate-marquee-left  { animation: marquee-left  linear infinite; will-change: transform; }
.animate-marquee-right { animation: marquee-right linear infinite; will-change: transform; }

/* ── Fade-in-up (shared entry animation) ─────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

/* ── Rotate spin (settings icon in hero bg) ──────────────── */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 20s linear infinite; }

/* ── Floating card rise animation ────────────────────────── */
@keyframes float-rise {
  0%   { opacity: 0; transform: translateY(80px); }
  15%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(-120px); }
  100% { opacity: 0; transform: translateY(-180px); }
}
.float-rise {
  animation: float-rise 10s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ── SVG path draw ────────────────────────────────────────── */
@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}
