/* ============================================================
   DALS FZE — 2026 redesign · v2
   Design system: 7 tokens
============================================================ */
:root {
  /* 1 — Palette */
  --bg:       #07090f;
  --bg-2:     #0b0e17;
  --surface:  #0e1220;
  --surface-2:#141a2b;
  --border:   rgba(255,255,255,.07);
  --border-2: rgba(255,255,255,.14);
  --text:     #f0f3f8;
  --muted:    #8590a7;
  --muted-2:  #5a6478;
  --cy:       #4dd4ff;  /* accent 1 */
  --vi:       #a084ff;  /* accent 2 */
  --glow-cy:  rgba(77,212,255,.22);
  --glow-vi:  rgba(160,132,255,.22);

  /* 2 — Type */
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Instrument Serif', 'Inter', serif;

  /* 3 — Fluid scale */
  --fs-body:  clamp(15px, 0.28vw + 14px, 17px);
  --fs-lead:  clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  --fs-h2:    clamp(1.9rem, 2.4vw + 1rem, 2.75rem);
  --fs-h3:    clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  --fs-hero:  clamp(2.2rem, 4.8vw + 1rem, 4.5rem);

  /* 4 — Spacing */
  --gutter:   clamp(20px, 4vw, 40px);
  --sec-y:    clamp(80px, 10vw, 140px);
  --wrap:     1200px;

  /* 5 — Radii */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  /* 6 — Elevation */
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -40px rgba(0,0,0,.6);

  /* 7 — Motion */
  --dur: .6s;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   Reset & base
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cy); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
em { font-style: italic; }
.nowrap { white-space: nowrap; }
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.skip { position: absolute; left: -1000px; top: 0; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cy); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec-y) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-title { font-size: var(--fs-h2); margin-top: 12px; letter-spacing: -.025em; }
.section-lead { color: var(--muted); margin-top: 16px; font-size: var(--fs-lead); }

/* ============================================================
   Background
============================================================ */
.bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(77,212,255,.10), transparent 60%),
    radial-gradient(1000px 600px at 90% 90%, rgba(160,132,255,.08), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .28;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 92%);
}

/* ============================================================
   Header
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.stuck {
  background: rgba(7,9,15,.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-sub {
  font-size: 10px; font-weight: 500; letter-spacing: .22em;
  color: var(--muted); text-transform: uppercase;
  transform: translateY(-2px);
}
.wordmark { display: block; }

.nav-desktop {
  display: none;
  justify-self: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-desktop a { position: relative; padding: 12px 2px; display: inline-flex; align-items: center; min-height: 44px; }
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; color: var(--cy);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-actions { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.burger:hover { border-color: var(--border-2); background: rgba(255,255,255,.03); }

@media (min-width: 900px) {
  .nav-desktop { display: inline-flex; }
  .burger { display: none; }
}

/* ============================================================
   Mobile overlay nav (hidden by default via [hidden])
============================================================ */
.mnav[hidden] { display: none; }
.mnav {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(7,9,15,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.mnav.open { opacity: 1; }
.mnav-inner {
  display: flex; flex-direction: column;
  height: 100dvh; padding: 20px var(--gutter) 32px;
}
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.mnav-close {
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.mnav-close:hover { border-color: var(--border-2); background: rgba(255,255,255,.03); }

.mnav-links {
  display: flex; flex-direction: column;
  margin-top: 24px;
  gap: 4px;
}
.mnav-links a {
  display: flex; align-items: center;
  min-height: 56px;
  padding: 4px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  letter-spacing: -.02em;
}
.mnav-links a:hover { color: var(--cy); }
.mnav-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--muted);
  font-size: .95rem;
}
.mnav-foot a { color: var(--muted); }
.mnav-foot a:hover { color: var(--text); }

@media (min-width: 900px) {
  .mnav { display: none !important; }
}

/* Lock body scroll when menu open */
body.mnav-open { overflow: hidden; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: 13px; }
.btn-lg { padding: 14px 22px; min-height: 48px; font-size: 15px; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 26px -12px var(--glow-cy), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.btn-primary:hover {
  background: var(--cy);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px var(--glow-cy);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover {
  border-color: var(--cy);
  color: var(--cy);
  background: rgba(77,212,255,.06);
}

/* ============================================================
   Hero
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 96px; /* room for fixed header */
  padding-bottom: 48px;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 80% 30%, rgba(77,212,255,.14), transparent 60%),
    radial-gradient(60% 50% at 20% 80%, rgba(160,132,255,.12), transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 920px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-top: 20px;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cy), #b6f0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  color: rgba(240,243,248,.78);
  margin-top: 22px;
  font-size: var(--fs-lead);
  max-width: 56ch;
}
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Reveal
============================================================ */
/* Hero elements animate in on load (always in initial viewport). */
.reveal { opacity: 0; transform: translateY(12px); animation: reveal var(--dur) var(--ease) forwards; animation-delay: var(--d,0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* Sections/cards: always visible. If JS + IO fire, a subtle scale-in adds polish. */
[data-reveal] { transition: transform .5s var(--ease); }
[data-reveal].in { transform: none; }

/* ============================================================
   Bento grid
============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) , var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 340px;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(260px 180px at var(--mx,50%) var(--my,0%), var(--glow, rgba(77,212,255,.10)), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.card-body h3 { font-size: var(--fs-h3); }
.card-body p { color: var(--muted); max-width: 56ch; }
.card-body .btn { margin-top: auto; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 999px;
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c, var(--cy)); box-shadow: 0 0 8px var(--c, var(--cy)); }

.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chips li {
  font-size: 12px;
  color: rgba(240,243,248,.78);
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(77,212,255,.04);
}

.stats {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding-top: 8px;
  width: 100%;
}
.stats li { display: flex; flex-direction: column; }
.stats b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--text); letter-spacing: -.01em; }
.stats span { color: var(--muted); font-size: .82rem; }

.card-art {
  position: relative;
  min-height: 140px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-art svg { width: 100%; height: 100%; max-height: 220px; }
.card-art-video { padding: 0; min-height: 200px; }
.card-art-video .reel { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }

/* Card variants */
.card-regtech  { --glow: var(--glow-cy); }
.card-gaming   { --glow: rgba(255,209,102,.18); }
.card-creative { --glow: rgba(255,122,198,.18); }
.card-ai       { --glow: var(--glow-vi); }

/* Bento layout — tablet (720..1023): big cards full row, Gaming+AI paired.
   Uses `order` to move AI next to Gaming without changing DOM. */
@media (min-width: 720px) and (max-width: 1023.98px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .card-regtech  { order: 1; grid-column: 1 / -1; }
  .card-gaming   { order: 2; }
  .card-ai       { order: 3; }
  .card-creative { order: 4; grid-column: 1 / -1; }

  /* Big cards go side-by-side internally */
  .card-regtech,
  .card-creative {
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: auto;
    min-height: 320px;
  }
  .card-regtech .card-art,
  .card-creative .card-art {
    border-top: 0;
    border-left: 1px solid var(--border);
    min-height: 100%;
  }
}

/* Bento layout — desktop */
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .card-regtech   { grid-column: span 8; order: 0; }
  .card-gaming    { grid-column: span 4; order: 0; }
  .card-creative  { grid-column: span 8; order: 0; }
  .card-ai        { grid-column: span 4; order: 0; }
  .card { min-height: 360px; }
  .card-regtech, .card-creative {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto;
  }
  .card-regtech .card-art,
  .card-creative .card-art {
    border-top: 0;
    border-left: 1px solid var(--border);
    min-height: 100%;
  }
  .card-body { padding: 34px; gap: 16px; }
}

/* ============================================================
   About
============================================================ */
.about {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
.about-r { color: var(--muted); display: grid; gap: 16px; max-width: 60ch; font-size: var(--fs-lead); }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.2fr; gap: 80px; } }

/* ============================================================
   Contact
============================================================ */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.015));
}
.contact {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
.contact-lead { color: var(--muted); margin: 16px 0 28px; max-width: 46ch; }
.contact-list {
  display: grid; gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.contact-list li {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 480px) {
  .contact-list li { grid-template-columns: 88px 1fr; gap: 14px; }
}
.contact-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-list .k {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}
.contact-list .v { color: var(--text); font-size: .95rem; line-height: 1.55; }
.contact-list a.v { border-bottom: 1px dashed transparent; }
.contact-list a.v:hover { border-bottom-color: currentColor; }

@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ============================================================
   Footer
============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
.foot-tag { color: var(--muted); margin-top: 12px; }
.foot-meta a { color: var(--text); border-bottom: 1px dashed var(--border-2); }
.foot-meta a:hover { color: var(--cy); }
.foot-copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-2);
  font-size: .82rem;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ============================================================
   Reduced motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reel { display: none !important; }
  .card-art-video { background: url('/assets/img/reel-poster.webp') center/cover no-repeat; }
  .reveal, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mnav { transition: none; }
}
