/* ============================================================
   DEIMOS INFINITUM — DESIGN SYSTEM
   Modeled on Left for the Vultures design language
   ============================================================ */

/* DESIGN TOKENS */
:root {
  --red:           #ea1d25;
  --red-dim:       #8c1117;
  --dark:          #050505;
  --surface:       #0e0d0d;
  --light:         #f2ecdc;
  --light-bright:  #f8f4ea;
  --light-dim:     #9a948a;
  --gold:          #a8843f;   /* image corners/brackets only */
  --gold-dim:      #6e5526;   /* image corners/brackets only */
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* PAGE FRAME */
body::after {
  content: '';
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(234,29,37,0.45);
  outline: 1px solid rgba(234,29,37,0.14);
  outline-offset: 3px;
  pointer-events: none;
  z-index: 90;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(5,5,5,0.97);
  border-bottom: 1px solid rgba(234,29,37,0.3);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 13px;
  color: var(--light);
  letter-spacing: 0.12em;
  text-decoration: none;
  line-height: 1;
}

.nav-logo span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--light-dim);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--light-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--light); }
.nav-links a.active { color: var(--red); }

/* ============ TYPOGRAPHY UTILITIES ============ */
.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--red);
  text-transform: uppercase;
}

.ornament {
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
  margin: 0.75rem 0 1.5rem;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(234,29,37,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 80%, rgba(234,29,37,0.04) 0%, transparent 60%),
    var(--dark);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 64px; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(234,29,37,0.22) 20%,
    rgba(234,29,37,0.22) 80%,
    transparent);
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 80px 64px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  color: var(--light-bright);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--light-dim);
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--light-dim);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 16px;
}

.hero-desc strong {
  color: var(--light);
  font-weight: 400;
}

.hero-hook {
  font-size: 15px;
  font-style: italic;
  color: var(--light-dim);
  opacity: 0.75;
  margin-bottom: 36px;
  padding-left: 16px;
  border-left: 2px solid var(--red);
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.stars {
  color: #FFD700;
  font-size: 16px;
  letter-spacing: 2px;
}

.stars-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--light-dim);
}

.hero-review {
  margin-bottom: 36px;
  padding: 16px 20px;
  border-left: 2px solid var(--red);
  background: rgba(234,29,37,0.05);
}

.hero-review blockquote {
  font-size: 15px;
  font-style: italic;
  color: var(--light-dim);
  line-height: 1.65;
  margin-bottom: 8px;
}

.hero-review cite {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--light-dim);
  opacity: 0.7;
  font-style: normal;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(234,29,37,0.12);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--light-bright);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--light-dim);
  letter-spacing: 0.06em;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--light-bright);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 16px 32px;
  text-decoration: none;
  border: 1px solid rgba(234,29,37,0.7);
  transition: background 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary:hover {
  background: #c8171e;
  box-shadow: 0 0 30px rgba(234,29,37,0.35);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--light-dim);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 15px 28px;
  text-decoration: none;
  border: 1px solid rgba(234,29,37,0.3);
  transition: border-color 0.2s, color 0.2s;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--light);
}

/* ============ HERO RIGHT — BOOK VISUAL ============ */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 64px 80px 40px;
}

.book-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.book-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid rgba(234,29,37,0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gold corner brackets — intentional accent */
.book-img-wrap::before,
.book-img-wrap::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
}
.book-img-wrap::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.book-img-wrap::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.book-frame::before,
.book-frame::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
}
.book-frame::before {
  top: 0; right: 0;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.book-frame::after {
  bottom: 0; left: 0;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.book-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.book-placeholder-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 18px;
  color: var(--light-dim);
  line-height: 1.3;
}

.book-placeholder-sub {
  font-size: 12px;
  color: #2a2520;
  letter-spacing: 0.1em;
  font-family: 'Cinzel', serif;
}

.book-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-caption-left {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--light-dim);
}

.book-caption-right {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* ============ SECTION DIVIDER ============ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 64px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(234,29,37,0.15);
}

.divider-mark {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(234,29,37,0.5);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============ ADVENTURES SECTION ============ */
.adventures {
  padding: 80px 64px;
  position: relative;
  border-top: 1px solid rgba(234,29,37,0.1);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--red);
  text-transform: uppercase;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--light-dim);
  text-transform: uppercase;
}

.section-price-note {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--light-dim);
}

.view-all {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.view-all:hover { color: var(--red); }

.adventures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.adventure-card {
  background: var(--surface);
  border: 1px solid rgba(234,29,37,0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.adventure-card:hover { border-color: rgba(234,29,37,0.4); }
.adventure-card:hover .card-overlay { opacity: 1; }

.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.25s;
}

.card-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: #0a0909;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-cover-placeholder {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #2a2520;
  text-align: center;
  padding: 20px;
}

.card-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--light-dim);
  text-transform: uppercase;
  background: rgba(5,5,5,0.85);
  padding: 4px 8px;
  border: 1px solid rgba(234,29,37,0.2);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--light);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.card-system {
  font-size: 12px;
  color: var(--light-dim);
  letter-spacing: 0.05em;
  margin-bottom: auto;
  padding-bottom: 12px;
}

.card-price {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(234,29,37,0.1);
  padding-top: 10px;
  margin-top: 12px;
}

.card-price .price-free { color: var(--light-dim); }

/* ============ NEWSLETTER SECTION ============ */
.newsletter {
  padding: 80px 64px;
  background: #060606;
  border-top: 1px solid rgba(234,29,37,0.2);
  border-bottom: 1px solid rgba(234,29,37,0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.newsletter-left .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-left .eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--red);
}

.newsletter-left h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--light-bright);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.newsletter-left p {
  font-size: 16px;
  color: var(--light-dim);
  line-height: 1.75;
  margin-bottom: 12px;
}

.newsletter-left .incentive {
  font-size: 14px;
  font-style: italic;
  color: var(--light-dim);
  opacity: 0.75;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input[type="email"] {
  background: var(--surface);
  border: 1px solid rgba(242,236,220,0.1);
  color: var(--light);
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--light-dim);
  font-style: italic;
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(234,29,37,0.5);
}

.newsletter-form .btn-primary {
  width: 100%;
  text-align: center;
  font-size: 11px;
}

.newsletter-fine {
  font-size: 12px;
  color: var(--light-dim);
  text-align: center;
  opacity: 0.6;
}

/* ============ FOOTER ============ */
footer {
  background: #040404;
  border-top: 1px solid rgba(234,29,37,0.12);
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  color: var(--light-dim);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--light-dim);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  text-transform: uppercase;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--light-dim);
  opacity: 0.35;
}

/* ============ ANIMATIONS ============ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: riseIn 0.7s ease-out 0.10s both; }
h1            { animation: riseIn 0.8s ease-out 0.20s both; }
.hero-subtitle{ animation: riseIn 0.7s ease-out 0.30s both; }
.hero-desc    { animation: riseIn 0.7s ease-out 0.35s both; }
.hero-hook    { animation: riseIn 0.7s ease-out 0.40s both; }
.hero-stars   { animation: riseIn 0.7s ease-out 0.45s both; }
.hero-review  { animation: riseIn 0.7s ease-out 0.48s both; }
.hero-stats   { animation: riseIn 0.7s ease-out 0.50s both; }
.hero-ctas    { animation: riseIn 0.7s ease-out 0.55s both; }
.book-frame   { animation: riseIn 0.9s ease-out 0.30s both; }

/* ============ HAMBURGER NAV (mobile only) ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--light);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 100px 32px 40px; }
  .hero-right { padding: 0 32px 60px; }
  .adventures { padding: 60px 32px; }
  .adventures-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 60px 32px; gap: 40px; }
  footer { flex-direction: column; gap: 20px; padding: 28px 32px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  body::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: rgba(5,5,5,0.97);
    border-bottom: 1px solid rgba(234,29,37,0.25);
    backdrop-filter: blur(12px);
    z-index: 99;
    padding: 8px 0 !important;
  }
  .nav-links.open { display: flex !important; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(242,236,220,0.05);
    width: 100%;
    box-sizing: border-box;
  }
  .nav-links li:last-child a { border-bottom: none; }
}

@media (max-width: 600px) {
  .adventures-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
