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

:root {
  --bg: #0e0e0e;
  --surface: #1a1a1a;
  --surface2: #222;
  --border: rgba(255, 90, 0, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #fffefd;
  --text-muted: #c9c9c9;
  --text-dim: #a0a0a0;
  --fire-yellow: #ffd85c;
  --fire-orange: #ff7a38;
  --fire-red: #e83a18;
  --accent: #ff7a3d;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 19px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'EB Garamond', serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px rgba(255, 100, 0, 0.5);
}
.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 100, 0, 0.4);
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  color: #111;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.6s 0.1s forwards;
}
.hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(64px, 14vw, 160px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 0.7s 0.2s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  text-shadow:
    0 0 40px rgba(255, 100, 0, 0.5),
    0 0 80px rgba(255, 100, 0, 0.2);
}
.hero-sub {
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.7s 0.35s forwards;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(
    170deg,
    var(--fire-yellow) 0%,
    var(--fire-orange) 45%,
    var(--fire-red) 100%
  );
  color: #111;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding: 16px 36px;
  border-radius: 5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 30px rgba(255, 100, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.18s;
  opacity: 0;
  animation: fade-up 0.7s 0.45s forwards;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 45px rgba(255, 100, 0, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.4);
}
.btn-large {
  font-size: 20px;
  padding: 20px 48px;
}
.hero-fine {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 16px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade-up 0.7s 0.55s forwards;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  opacity: 0;
  animation: fade-up 0.7s 0.65s forwards;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 100, 0, 0.4);
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* DEMO */
.demo {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}
.demo-screen {
  width: 100%;
  max-width: 800px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(255, 80, 0, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.5);
}
.demo-bar {
  background: #161616;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}
.demo-dot:nth-child(1) {
  background: #ff5f57;
}
.demo-dot:nth-child(2) {
  background: #febc2e;
}
.demo-dot:nth-child(3) {
  background: #28c840;
}
.demo-url {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 12px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-post {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
}
.demo-post-inner {
  padding: 16px;
  background: #1e1e1e;
  transition: all 1s ease-in-out;
}
.demo-post-inner strong {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.demo-post-inner p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}
.demo-likes {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
}
.demo-epitaph-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 8px;
}
.demo-epitaph {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(20, 20, 20, 0.9);
  padding: 6px 12px;
  border-radius: 4px;
  text-align: center;
  opacity: 0;
  transform: rotate(-3deg);
  transition: opacity 0.6s 1s;
}
.demo-post.burning .demo-post-inner {
  filter: grayscale(100%) blur(6px);
  opacity: 0.5;
}
.demo-post.burning .demo-epitaph {
  opacity: 1;
}
.demo-post.burning {
  box-shadow:
    0 0 30px rgba(255, 80, 0, 0.4),
    inset 0 0 20px rgba(255, 100, 0, 0.1);
  border-color: rgba(255, 80, 0, 0.4);
}

/* HOW IT WORKS */
.how {
  padding: 100px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.how h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 60px;
  color: var(--text);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 40px 32px;
  text-align: left;
  transition: background 0.2s;
}
.step:hover {
  background: var(--surface2);
}
.step-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}
.step h3 {
  font-family: 'EB Garamond', serif;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.step p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}
kbd {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid #444;
  border-radius: 3px;
  padding: 1px 6px;
  color: #ccc;
}

/* EPITAPHS */
.epitaphs-section {
  padding: 100px 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.epitaphs-section h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.epitaph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.epitaph-card {
  background: var(--surface);
  padding: 20px 22px;
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  transition:
    background 0.2s,
    color 0.2s;
}
.epitaph-card:hover {
  background: var(--surface2);
  color: var(--text);
}
.site-tag {
  display: block;
  font-family: 'DM Mono', monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.7;
}

/* INSTALL */
.install {
  padding: 100px 24px;
  display: flex;
  justify-content: center;
}
.install-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
}
.install-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 140px;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(255, 100, 0, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.install-box h2 {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 16px;
}
.install-box p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 36px;
}
.install-fine {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 0 !important;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
}

/* ANIMATIONS */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FIRE DIVIDER */
.fire-divider {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  margin: -20px 0;
  pointer-events: none;
}

.fire-video {
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: bottom;
  mix-blend-mode: screen;
  opacity: 0.75;
  display: block;
}

/* DEMO POST FIRE OVERLAY */
.demo-fire-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.demo-fire-video {
  width: 100%;
  object-fit: cover;
  object-position: bottom;
  mix-blend-mode: screen;
  display: block;
  position: absolute;
  bottom: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }
  .nav-logo {
    font-size: 16px;
  }
  .nav-cta {
    font-size: 11px;
    padding: 7px 12px;
  }
  .hero {
    padding: 100px 20px 60px;
  }
  .hero-sub {
    font-size: 18px;
  }
  .demo {
    padding: 40px 16px;
  }
  .demo-content {
    padding: 12px;
  }
  .demo-post-inner strong {
    font-size: 16px;
  }
  .demo-post-inner p {
    font-size: 14px;
  }
  .demo-epitaph {
    font-size: 17px;
  }
  .how {
    padding: 60px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    padding: 28px 24px;
  }
  .epitaphs-section {
    padding: 60px 16px;
  }
  .epitaph-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .epitaph-card {
    font-size: 19px;
    padding: 16px 18px;
  }
  .install {
    padding: 60px 16px;
  }
  .install-box {
    padding: 40px 24px;
  }
  .install-box h2 {
    font-size: 38px;
  }
  .install-box p {
    font-size: 16px;
  }
  .btn-large {
    font-size: 17px;
    padding: 16px 32px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .nav-logo {
    font-size: 14px;
    letter-spacing: 0.04em;
  }
  .nav-cta {
    font-size: 10px;
    padding: 6px 10px;
  }
  .hero {
    padding: 90px 16px 48px;
    min-height: 100svh;
  }
  .hero-title {
    font-size: clamp(56px, 18vw, 100px);
    margin-bottom: 24px;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .btn-primary {
    font-size: 16px;
    padding: 14px 28px;
    width: 100%;
    text-align: center;
  }
  .btn-large {
    font-size: 16px;
    padding: 14px 28px;
    width: 100%;
  }
  .demo {
    padding: 32px 12px;
  }
  .demo-screen {
    border-radius: 8px;
  }
  .demo-bar {
    padding: 10px 12px;
  }
  .demo-content {
    padding: 10px;
    gap: 10px;
  }
  .demo-post-inner {
    padding: 12px;
  }
  .demo-post-inner strong {
    font-size: 14px;
  }
  .demo-post-inner p {
    font-size: 13px;
  }
  .demo-epitaph {
    font-size: 14px;
    padding: 4px 8px;
  }
  .how {
    padding: 48px 16px;
  }
  .how h2 {
    margin-bottom: 32px;
  }
  .step {
    padding: 24px 20px;
  }
  .step h3 {
    font-size: 28px;
  }
  .step p {
    font-size: 15px;
  }
  .epitaphs-section {
    padding: 48px 12px;
  }
  .section-sub {
    font-size: 15px;
  }
  .epitaph-grid {
    grid-template-columns: 1fr;
  }
  .epitaph-card {
    font-size: 18px;
    padding: 14px 16px;
  }
  .install {
    padding: 48px 12px;
  }
  .install-box {
    padding: 32px 20px;
    border-radius: 12px;
  }
  .install-box h2 {
    font-size: 32px;
  }
  .install-box p {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .install-fine {
    font-size: 10px;
  }
  .footer {
    padding: 20px 16px;
  }
  .footer-links {
    gap: 16px;
  }
}
.bg-video-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  filter: blur(30px);
  overflow: hidden;
}
.bg-video-fixed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
