/* damgsolutions.com — cinematic dark homepage v2
 * Aurora gradients · film grain · marquee · 3D tilt · massive type.
 * Influenced by A24 web, Linear product pages, Vercel.com, Apple AI launch. */

:root {
  --bg: #030305;
  --bg-2: #08080b;
  --bg-3: #0d0d11;
  --bg-card: #0a0a0f;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.14);
  --ink: #f5f5f7;
  --ink-soft: #b8b8c0;
  --ink-mute: #6f6f7a;
  --ink-faint: #3d3d46;
  --warm: #e0b56a;
  --warm-soft: #b08a47;
  --hot: #ff5e7a;
  /* Platform brand accents (pumped saturation) */
  --wavekit: #ffc94d;
  --ghosthive: #36ee87;
  --quantze: #38bdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Tracked uppercase labels */
.eyebrow {
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* Serif for hero display */
.display {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

a { color: var(--ink-soft); text-decoration: none; }
a:hover { color: var(--ink); }

/* === Nav === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav .wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .wordmark .mark {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wavekit), var(--ghosthive), var(--quantze));
  box-shadow: 0 0 12px rgba(240,192,96,0.4);
}
.nav .links { display: flex; gap: 30px; }
.nav .links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.nav .links a:hover { color: var(--warm); }

/* === Global texture overlays === */
/* Film grain — SVG noise, super subtle, fixed to viewport */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* Vignette — darken edges */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%);
}

/* === Marquee ticker (just under nav) === */
.ticker {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(3,3,5,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  overflow: hidden;
  height: 38px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 0;
  animation: tick 64s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker .seg {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ticker .seg::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 8px var(--warm);
}
.ticker .seg.wavekit::before { background: var(--wavekit); box-shadow: 0 0 8px var(--wavekit); }
.ticker .seg.ghosthive::before { background: var(--ghosthive); box-shadow: 0 0 8px var(--ghosthive); }
.ticker .seg.quantze::before { background: var(--quantze); box-shadow: 0 0 8px var(--quantze); }
.ticker .seg.live { color: var(--ink-soft); }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Hero === */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 220px 48px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
/* Aurora blobs — slow moving */
.hero .aurora {
  position: absolute; inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px) saturate(140%);
  opacity: 0.55;
}
.hero .aurora .blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.hero .aurora .b1 {
  width: 50%; height: 50%; top: -10%; left: -5%;
  background: var(--wavekit);
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero .aurora .b2 {
  width: 55%; height: 55%; bottom: -15%; right: -10%;
  background: var(--ghosthive);
  animation: drift2 26s ease-in-out infinite alternate;
}
.hero .aurora .b3 {
  width: 45%; height: 60%; top: 20%; right: 20%;
  background: var(--quantze);
  animation: drift3 28s ease-in-out infinite alternate;
}
.hero .aurora .b4 {
  width: 35%; height: 40%; bottom: 5%; left: 25%;
  background: var(--hot);
  opacity: 0.45;
  animation: drift4 32s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(20%, 15%) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-15%, -20%) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-25%, 10%) scale(1.2); } }
@keyframes drift4 { from { transform: translate(0,0) scale(1); } to { transform: translate(15%, -15%) scale(1.15); } }

/* Grid overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 70%);
}
.hero > *:not(.aurora) { position: relative; z-index: 2; }
.hero .eyebrow {
  margin-bottom: 36px;
  color: var(--warm);
  display: inline-flex; align-items: center; gap: 14px;
}
.hero .eyebrow::after {
  content: "";
  display: inline-block; width: 60px; height: 1px;
  background: var(--warm); opacity: 0.5;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(72px, 11vw, 200px);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 36px;
  max-width: 1600px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 200;
  color: var(--warm);
  background: linear-gradient(180deg, var(--warm), var(--warm-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent-mint {
  color: var(--ghosthive); font-style: italic; font-weight: 200;
}
.hero h1 .accent-sky {
  color: var(--quantze); font-style: italic; font-weight: 200;
}
.hero .lede {
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--ink-soft);
  max-width: 780px;
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 60px;
  letter-spacing: -0.005em;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 64px;
  border-top: 0.5px solid var(--line);
  padding-top: 32px;
  margin-top: auto;
}
.hero-stats .stat .stat-val {
  font-family: "Fraunces", Georgia, serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stats .stat .stat-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* === Section header === */
.section-header {
  padding: 120px 48px 40px;
  max-width: 1400px;
}
.section-header .eyebrow { margin-bottom: 22px; color: var(--warm); }
.section-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.section-header h2 em { font-style: italic; color: var(--warm); }
.section-header .section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 680px;
  font-weight: 300;
  line-height: 1.6;
}

/* === Platform showcase === */
.platforms { padding: 60px 0 120px; }
.platform {
  margin-bottom: 140px;
  padding: 0 48px;
}
.platform:last-child { margin-bottom: 80px; }

.platform-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)) padding-box,
    linear-gradient(135deg, var(--accent), transparent 60%) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 55%);
  pointer-events: none;
  opacity: 0.7;
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px -20px color-mix(in oklch, var(--accent) 30%, transparent);
}

.platform-info { position: relative; z-index: 2; }
.platform-info .platform-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.platform-info .platform-num::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.platform-info h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.platform-info .platform-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.platform-info .platform-desc {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 460px;
  font-weight: 300;
}

.platform-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  border-top: 0.5px solid var(--line);
  padding-top: 22px;
}
.platform-features .feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  align-items: baseline;
}
.platform-features .feature::before {
  content: "→";
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.platform-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  color: #050507;
  font-weight: 700;
}
.btn.primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.25);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--line-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.status-pill .status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 18px var(--accent); }
}

/* Platform visual / image stack */
.platform-visual {
  position: relative;
  z-index: 1;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.platform-visual .stack {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
  will-change: transform;
}
.platform-visual img {
  position: absolute;
  border-radius: 12px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.06);
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), z-index 0s 0.4s, box-shadow 0.4s, opacity 0.3s;
  transform-style: preserve-3d;
}
.platform-visual img.main {
  top: 0; left: 0;
  width: 100%;
  z-index: 3;
  transform: translateZ(40px);
  box-shadow:
    0 50px 100px -25px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 80px -15px color-mix(in oklch, var(--accent) 28%, transparent);
}
.platform-visual img.side-1 {
  top: 12%; right: -12%;
  width: 56%;
  z-index: 2;
  transform: translateZ(20px) rotate(3deg);
  opacity: 0.88;
}
.platform-visual img.side-2 {
  bottom: -10%; left: -10%;
  width: 52%;
  z-index: 1;
  transform: translateZ(0px) rotate(-4deg);
  opacity: 0.78;
}
.platform-visual img:hover {
  transform: scale(1.05) translateY(-6px) translateZ(60px);
  z-index: 10;
  box-shadow:
    0 60px 110px -20px rgba(0,0,0,0.95),
    0 0 0 1px color-mix(in oklch, var(--accent) 50%, transparent),
    0 0 80px -8px color-mix(in oklch, var(--accent) 40%, transparent);
  opacity: 1;
}
/* When parent is tilting (JS-driven), let CSS handle the base rotate */
.platform-visual .stack.tilting img { transition: transform 0.1s linear, box-shadow 0.3s, opacity 0.3s; }

/* Per-platform accent colors */
.platform.platform-wavekit { --accent: var(--wavekit); }
.platform.platform-ghosthive { --accent: var(--ghosthive); }
.platform.platform-quantze { --accent: var(--quantze); }

/* Reverse layout for variety */
.platform.reverse .platform-card {
  grid-template-columns: 1.4fr 1fr;
}
.platform.reverse .platform-info {
  order: 2;
}
.platform.reverse .platform-visual {
  order: 1;
}
.platform.reverse .platform-card::before {
  background: radial-gradient(ellipse at 100% 0%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 55%);
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(3,3,5,0.96);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.8);
  cursor: default;
}

/* === Roadmap === */
.roadmap {
  padding: 80px 48px 140px;
  border-top: 0.5px solid var(--line);
  margin-top: 60px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.roadmap-card {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  transition: border-color 0.3s ease;
}
.roadmap-card:hover { border-color: var(--line-strong); }
.roadmap-card .phase {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 14px;
}
.roadmap-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 8px;
  color: var(--ink);
}
.roadmap-card p {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* === Massive footer wordmark === */
.mega-foot {
  position: relative;
  padding: 100px 48px 0;
  border-top: 0.5px solid var(--line);
  overflow: hidden;
}
.mega-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, color-mix(in oklch, var(--wavekit) 18%, transparent), transparent 50%),
    radial-gradient(ellipse at 20% 50%, color-mix(in oklch, var(--ghosthive) 12%, transparent), transparent 60%),
    radial-gradient(ellipse at 80% 50%, color-mix(in oklch, var(--quantze) 12%, transparent), transparent 60%);
  pointer-events: none;
  opacity: 0.8;
}
.mega-foot .mega-mark {
  position: relative;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(120px, 24vw, 380px);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.85;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
  padding-bottom: 0;
  transform: translateY(15%);
}
.mega-foot .mega-sub {
  position: relative;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: -20px 0 0;
}
.foot {
  position: relative;
  padding: 80px 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.foot .wm {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  color: var(--ink-soft);
}
.foot .copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* === Mobile === */
@media (max-width: 1024px) {
  .platform-card { grid-template-columns: 1fr; gap: 40px; padding: 40px 28px; }
  .platform.reverse .platform-card { grid-template-columns: 1fr; }
  .platform.reverse .platform-info { order: 1; }
  .platform.reverse .platform-visual { order: 2; }
  .platform-visual { min-height: 360px; }
  .platform-visual .stack { max-width: 100%; }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 140px 28px 80px; }
  .platform { padding: 0 28px; }
  .section-header { padding: 80px 28px 28px; }
  .nav { padding: 18px 28px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 48px; }
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .platform-visual img.side-1, .platform-visual img.side-2 { display: none; }
  .platform-visual img.main { position: relative; width: 100%; }
  .platform-visual .stack { aspect-ratio: auto; }
}

/* === Subtle entrance animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }
.reveal.delay-4 { animation-delay: 0.4s; }

/* Scroll-triggered reveal (handled by JS) */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.2,0.8,0.2,1), transform 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.scroll-reveal.in { opacity: 1; transform: translateY(0); }
