/* Global variables and base */
:root {
  --primary: #3e2723;
  --secondary: #d4af37;
  --accent: #8d6e63;
  --bg-sand: #f7f3e8;
  --text-color: #4a3b32;
  --white: #ffffff;
  --shadow: 0 10px 20px rgba(62, 39, 35, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-sand) url('/img/desert-bg.webp') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  line-height: 1.8;
}

h1, h2, h3, h4 { color: --var(text-color); }

h1 {
  font-size: 2.4rem;
  text-align: center;
  background: linear-gradient(#3e2723, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  padding-bottom: 10px;
}

h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }

p { margin: 0 0 1rem; }

ul { margin: 0 0 1.25rem; padding-left: 20px; }
li { margin-bottom: 10px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header and navigation */
header {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border-bottom: 3px solid var(--secondary);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px #000;
}
nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 15px; }
nav a {
  color: #eaddcf;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  font-size: 0.95rem;
  text-transform: uppercase;
}
nav a:hover, nav a.active { color: var(--secondary); border-bottom-color: var(--secondary); }

.lang-switch { display:flex; align-items:center; gap:8px; color: var(--secondary); font-weight:700; border:1px solid var(--secondary); padding:5px 12px; background:rgba(0,0,0,0.2); }
.flag-icon { width:20px; height:auto; display:block; }

.mobile-menu-btn { display:none; font-size:28px; cursor:pointer; color:var(--secondary); }

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 60px;
  border-bottom: 5px solid var(--secondary);
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  overflow: hidden;
  padding: 40px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: linear-gradient(rgba(44, 36, 27, 0.6), rgba(44, 36, 27, 0.4)), url('/img/lucky-pharaoh-wild-main.webp');
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; background: rgba(62,39,35,0.9); padding: 24px 36px; border: 2px solid var(--secondary); box-shadow: 0 0 24px rgba(0,0,0,0.6); }

/* Content blocks */
.content-wrapper { background: rgba(255,255,255,0.96); padding: 40px; box-shadow: var(--shadow); margin: 48px 0; border: 1px solid #e0d6c3; position: relative; border-radius: 16px; }
.content-wrapper::before { content:""; position:absolute; top:5px; left:5px; right:5px; bottom:5px; border:1px solid #e0d6c3; pointer-events:none; border-radius: 12px; }

img.align-right { float:right; margin:10px 0 30px 40px; max-width:45%; border:5px solid #fff; box-shadow: var(--shadow); }
img.align-left { float:left; margin:10px 40px 30px 0; max-width:45%; border:5px solid #fff; box-shadow: var(--shadow); }
img.full-width { width:100%; height:auto; border:5px solid #fff; margin:40px 0; box-shadow: var(--shadow); }

/* Tables */
.comparison-table { width:100%; border-collapse: collapse; margin: 40px 0; background:#fff; border:2px solid var(--secondary); }
.comparison-table th, .comparison-table td { padding:15px; text-align:center; border:1px solid #e0d6c3; }
.comparison-table th { background-color: var(--primary); color: var(--secondary); font-weight: 800; }
.comparison-table tr:nth-child(even) { background-color:#fbf9f3; }

/* Footer */
footer { background-color: var(--primary); color: #d7ccc8; padding: 70px 0 30px; margin-top: 80px; border-top: 5px solid var(--secondary); }
.footer-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:50px; margin-bottom:50px; }
.footer-col h4 { color: var(--secondary); margin:0 0 25px; border-bottom:1px solid #5d4037; padding-bottom:15px; font-size:1.2rem; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col a { color:#d7ccc8; text-decoration:none; transition: color .2s; display:block; margin-bottom:10px; }
.footer-col a:hover { color: var(--secondary); padding-left:5px; }
.footer-icons { display:flex; justify-content:center; gap:25px; flex-wrap:wrap; padding:40px 0; border-top:1px solid #5d4037; border-bottom:1px solid #5d4037; }
.footer-icons img { height:40px; width:auto; opacity:.7; filter: sepia(100%) hue-rotate(350deg) saturate(50%); transition: all .3s; }
.footer-icons img:hover { opacity:1; filter:none; }
.copyright { text-align:center; font-size:.9rem; margin-top:30px; color:#a1887f; }

/* Demo section */
.demo-section { margin: 48px auto; }
.demo-card { background: rgba(255,255,255,0.96); border:1px solid rgba(212,175,55,0.45); border-radius:18px; padding:28px; box-shadow: var(--shadow); }
.demo-header { text-align:center; max-width:820px; margin: 0 auto 22px; }
.demo-badge { display:inline-block; padding:6px 14px; border-radius:999px; background: rgba(212,175,55,0.16); border:1px solid rgba(212,175,55,0.55); color: var(--primary); font-weight:800; font-size:.9rem; margin-bottom:12px; }
.demo-warning { background:#fff7df; border-left:5px solid var(--secondary); padding:14px 18px; border-radius:12px; margin:20px 0; color: var(--text-color); }
.demo-frame-wrap { position:relative; width:100%; aspect-ratio: 16 / 9; min-height:420px; background:#1b120d; border-radius:18px; overflow:hidden; border:2px solid var(--secondary); box-shadow:0 18px 45px rgba(0,0,0,0.25); display:flex; align-items:center; justify-content:center; color:#e8decf; text-align:center; padding:16px; }
.demo-frame-wrap iframe { width:100%; height:100%; border:0; display:block; }
.demo-note { margin-top:16px; font-size:.95rem; color:#6b5a4e; text-align:center; }
.demo-external-link { display:inline-flex; align-items:center; justify-content:center; margin:18px auto 0; padding:12px 20px; border-radius:999px; background: var(--primary); color: var(--secondary); text-decoration:none; font-weight:800; border:1px solid var(--secondary); }
.demo-external-link:hover { background:#2b1a17; color:#f5d76e; }

/* Utilities */
.clearfix { clear: both; }

/* Responsive */
@media (max-width: 992px) {
  .hero { min-height: 480px; }
}
@media (max-width: 768px) {
  .mobile-menu-btn { display:block; }
  nav ul { display:none; flex-direction:column; position:absolute; top:100%; left:0; width:100%; background: var(--primary); padding:20px; border-top:1px solid var(--secondary); }
  nav ul.show { display:flex; }
  .hero { min-height: 400px; padding: 20px 0; }
  .content-wrapper { padding: 24px; margin: 32px 0; }
  img.align-right, img.align-left { float:none; width:100%; max-width:100%; margin:20px 0; }
  .demo-card { padding:18px; border-radius:14px; }
  .demo-frame-wrap { aspect-ratio: 4 / 3; min-height:300px; border-radius:14px; }
}
@media (max-width: 480px) {
  .demo-frame-wrap { min-height: 260px; }
}
