@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #0a0604;
  --bg-dark: #14100a;
  --bg-card: #1c1610;
  --sand: #c8a96e;
  --sand-light: #e8d5a8;
  --spice: #d4722c;
  --spice-bright: #f4903a;
  --text: #e8dcc8;
  --text-muted: #a89880;
  --border: #3a2f1e;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 6, 4, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--sand);
  text-decoration: none;
}

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--sand);
}
.main-nav a.active {
  border-bottom: 2px solid var(--spice);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--sand);
  display: block;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 8rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(212, 114, 44, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 120% 40% at 50% -10%, rgba(200, 169, 110, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.hero-inner { text-align: center; position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.hero-title .line {
  display: block;
}
.hero-title .glow {
  color: var(--sand);
  text-shadow:
    0 0 40px rgba(212, 114, 44, 0.4),
    0 0 80px rgba(212, 114, 44, 0.2);
}

.hero-quote {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  animation: float 3s ease-in-out infinite;
}

/* Sand particles */
.sand-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.sand-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--sand);
  border-radius: 50%;
  opacity: 0;
  animation: sandDrift linear infinite;
}
@keyframes sandDrift {
  0% { opacity: 0; transform: translateY(100vh) translateX(0); }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-10vh) translateX(40px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.btn-spice {
  background: linear-gradient(135deg, var(--spice) 0%, var(--spice-bright) 100%);
  color: var(--bg-deep);
}
.btn-spice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 114, 44, 0.4);
}
.btn-outline {
  border-color: var(--sand);
  color: var(--sand);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--sand-light);
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; position: relative; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--spice);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.section-title .accent {
  color: var(--sand);
}

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ============ SPICE SECTION ============ */
.spice-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.spice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}
.spice-card:hover {
  transform: translateY(-4px);
  border-color: var(--spice);
}
.spice-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.spice-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--sand-light);
}
.spice-card p { font-size: 0.95rem; color: var(--text-muted); }

.spice-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(212, 114, 44, 0.08);
  border: 1px solid rgba(212, 114, 44, 0.3);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
}
.warn-icon { font-size: 1.5rem; color: var(--spice); }
.spice-warning p { font-size: 0.9rem; color: var(--text-muted); }
.spice-warning strong { color: var(--spice); }

/* ============ HOUSES SECTION ============ */
.house-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.house-tab {
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: var(--radius);
}
.house-tab:hover { border-color: var(--sand); color: var(--sand); }
.house-tab.active {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--sand);
  color: var(--sand);
}

.house-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  animation: fadeIn 0.4s ease;
}
.house-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.house-emblem { font-size: 3.5rem; margin-bottom: 1rem; }
.house-panel h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--sand);
  margin-bottom: 0.3rem;
}
.house-motto {
  font-style: italic;
  color: var(--spice) !important;
  margin-bottom: 1.5rem !important;
  font-size: 1rem !important;
}
.house-panel > p:not(.house-motto) {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.house-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.house-facts li {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.house-facts strong { color: var(--sand); }

/* ============ FREMEN SECTION ============ */
.fremen-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fremen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.fremen-stat {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.stat-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--spice);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ PROPHECY SECTION ============ */
.prophecy-timeline {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.4rem;
  width: 12px; height: 12px;
  background: var(--bg-deep);
  border: 2px solid var(--spice);
  border-radius: 50%;
}
.timeline-content h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--sand);
  margin-bottom: 0.3rem;
}
.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.prophecy-quote {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  border-left: 3px solid var(--spice);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prophecy-quote p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sand-light);
  margin-bottom: 0.8rem;
  line-height: 1.8;
}
.prophecy-quote cite {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ FOOTER CTA ============ */
.footer-cta {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}
.footer-cta h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.footer-cta > .container > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.cta-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-form input {
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
  min-width: 280px;
}
.cta-form input:focus {
  outline: 2px solid var(--spice);
  border-color: transparent;
}
.cta-form .btn { border-radius: var(--radius); }
.cta-status { margin-top: 1rem; color: var(--sand); font-size: 0.9rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--sand);
  margin-bottom: 1rem;
}
.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============ ANIMATIONS ============ */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============ GALLERY & ARTWORK STYLES ============ */
.gallery-hero {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(212, 114, 44, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.gallery-lead {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.artwork-frame-container {
  max-width: 1040px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}

.artwork-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 110, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(212, 114, 44, 0.2);
  background: #000;
  transition: all 0.5s ease;
}

.artwork-wrapper.hyper-glow {
  box-shadow:
    0 12px 60px rgba(0, 0, 0, 0.9),
    0 0 90px rgba(244, 144, 58, 0.55),
    0 0 25px rgba(255, 230, 140, 0.3);
  border-color: var(--spice-bright);
}

.artwork-wrapper img,
.artwork-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
}

.artwork-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.artwork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.art-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  color: var(--sand-light);
}

.artwork-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ============ LORE CARDS ============ */
.lore-section {
  padding: 4rem 0 6rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.lore-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.lore-card:hover {
  transform: translateY(-5px);
  border-color: var(--sand);
}

.lore-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.lore-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--sand-light);
  margin-bottom: 0.8rem;
}

.lore-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.gallery-quote {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(20, 16, 10, 0.4);
}

.gallery-quote p {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--sand-light);
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.gallery-quote cite {
  font-size: 0.85rem;
  color: var(--spice);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ GALLERY TEASER (HOMEPAGE) ============ */
.gallery-teaser-section {
  background: var(--bg-deep);
}

.gallery-teaser-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-teaser-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200, 169, 110, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.gallery-teaser-card:hover .gallery-teaser-image {
  transform: scale(1.02);
  border-color: var(--spice);
}

.gallery-teaser-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-teaser-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem 4%;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { margin: 0.5rem 0; }
  .hero { padding: 6rem 0 3rem; }
  .gallery-hero { padding: 6rem 0 2rem; }
  .gallery-teaser-card { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
  .artwork-toolbar { flex-direction: column; align-items: flex-start; }
  .house-panel { padding: 1.5rem; }
  .prophecy-timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -2.1rem; }
}
