/* Dtalkz — premium marketing site */

:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --gold: #EDBE3C;
  --gold-2: #E9C400;
  --text: #FFFFFF;
  --muted: #B3B3B3;
  --border: #2A2A2A;
  --shell: min(1180px, calc(100% - 3rem));
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.55em;
  font-weight: 800;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.gold-text {
  background: linear-gradient(120deg, #fff3b0 0%, var(--gold) 40%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Atmosphere */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(700px 400px at 75% 10%, rgba(237, 190, 60, 0.16), transparent 60%),
    radial-gradient(600px 380px at 10% 40%, rgba(233, 196, 0, 0.08), transparent 55%),
    radial-gradient(500px 300px at 50% 90%, rgba(237, 190, 60, 0.07), transparent 50%),
    var(--bg);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  z-index: 2;
}

.brand img {
  height: 3.4rem;
  width: auto;
  object-fit: contain;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-active { color: var(--text); }

.header-cta { margin-left: 0.25rem; }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 0.7rem;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 1rem 1.55rem;
  font-size: 1rem;
}

.btn-gold {
  background: linear-gradient(135deg, #f5d76a, var(--gold) 45%, var(--gold-2));
  color: #14110a;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 32px rgba(237, 190, 60, 0.22);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(237, 190, 60, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(237, 190, 60, 0.5);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 7.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  max-width: 10ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36ch;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.75rem 0 1rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 190, 60, 0.35), transparent 68%);
  filter: blur(28px);
  z-index: 0;
  animation: glow-pulse 4.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-phone {
  position: relative;
  z-index: 1;
  width: min(340px, 78%);
  height: auto;
  border-radius: 1.5rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(237, 190, 60, 0.15);
}

.float-y {
  animation: float-y 5s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-in {
  opacity: 0;
  transform: translateY(28px);
}

/* Sections shared */
.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  max-width: 40ch;
}

/* Why */
.why {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.compare-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.compare-card li {
  color: var(--muted);
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

.compare-old h3 { color: var(--muted); }

.compare-new {
  border-color: rgba(237, 190, 60, 0.4);
  box-shadow: 0 0 0 1px rgba(237, 190, 60, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(237, 190, 60, 0.14), transparent 60%),
    var(--surface);
}

.compare-new h3 { color: var(--gold); }
.compare-new li { color: var(--text); }

.compare-arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
}

.compare-arrow span {
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--gold));
  position: relative;
}

.compare-arrow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* Features */
.features {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(237, 190, 60, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(237, 190, 60, 0.08);
}

.feature-icon {
  display: inline-block;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Showcase */
.showcase {
  padding: 5.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.showcase .section-head {
  margin-inline: auto;
  text-align: center;
}

.showcase .section-head p:not(.eyebrow) {
  margin-inline: auto;
}

.showcase-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1.5rem, calc((100vw - 1180px) / 2 + 1.5rem)) 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}

.showcase-track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.showcase-item {
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: center;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.showcase-item:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 190, 60, 0.4);
}

.showcase-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.showcase-item figcaption {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.25rem;
}

.showcase-item strong {
  font-size: 1rem;
  font-weight: 700;
}

.showcase-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* How */
.how {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.timeline {
  display: grid;
  gap: 0;
  position: relative;
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--border));
  opacity: 0.55;
}

.timeline-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  position: relative;
}

.timeline-num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #14110a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 24px rgba(237, 190, 60, 0.35);
  z-index: 1;
}

.timeline-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  color: var(--muted);
}

/* Download */
.download {
  padding: 3rem 0 5.5rem;
}

.download-panel {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 0.35rem);
  border: 1px solid rgba(237, 190, 60, 0.35);
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(237, 190, 60, 0.2), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-logo {
  width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
}

.download-panel h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.download-panel > p {
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.play-badge {
  margin-top: 1rem;
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.play-badge:hover { transform: scale(1.04); }

.play-badge img {
  width: 200px;
  height: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.75rem;
  background: #070707;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-tag {
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links a:hover { color: var(--gold); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-admin a {
  color: var(--muted);
  opacity: 0.7;
}

.footer-admin a:hover {
  color: var(--gold);
  opacity: 1;
}

/* Reveal defaults (GSAP enhances) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-y,
  .phone-glow { animation: none !important; }
  .hero-in,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .particles { display: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy h1,
  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone { width: min(280px, 70%); }

  .compare {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    width: 100%;
    height: 2rem;
    transform: rotate(90deg);
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 4.5rem;
    margin: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  body.nav-open .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta { display: none; }
}

@media (max-width: 560px) {
  :root { --shell: min(1180px, calc(100% - 1.5rem)); }

  .feature-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section-head h2,
  .hero-copy h1 { letter-spacing: -0.04em; }
}
