/* ============ DENEY · Premium Cyber-Research Dossier Style ============ */

/* Global display fix for hidden elements (modals, etc.) */
[hidden] {
  display: none !important;
}

:root {
  --bg: #090a0f;
  --bg-gradient: radial-gradient(circle at 50% 0%, #141622 0%, #090a0f 75%);
  --bg-card: #11131e;
  --bg-card-hover: #161927;
  
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-dim: rgba(99, 102, 241, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Chakra Petch', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: #252838;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.accent {
  color: var(--accent);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 10, 15, 0.8);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 6px;
  background: var(--accent-dim);
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: #ffffff !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

.countdown {
  display: inline-block;
  margin-bottom: 40px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
}

.countdown b {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 15px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats b {
  font-size: 34px;
  color: #ffffff;
  line-height: 1;
  font-weight: 800;
  font-family: var(--font-display);
}

.hero-stats span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn.big {
  font-size: 15px;
  padding: 16px 38px;
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 3;
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  padding: 10px 0;
  animation: mq 46s linear infinite;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.015);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.alt > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.sec-no {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.sec-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sec-lede {
  color: var(--muted);
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.deney-body p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 0 20px;
}

.big-quote {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  max-width: 840px;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
}

/* Mechanics Grid (İşbirliği/İhanetler vb.) */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.mech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.25s ease;
}

.mech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.mech-icon {
  margin-bottom: 18px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.mech-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mech-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Featured Grid & Dossier Cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.fcard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.fcard:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.fcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #151722;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.fcard-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: transform 0.3s ease;
}

.fcard:hover .fcard-img img {
  transform: scale(1.02);
}

.fcard-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  gap: 8px;
  z-index: 1;
}

.fcard-ph .num {
  font-family: var(--font-mono);
  font-size: 48px;
  color: var(--muted);
  opacity: 0.5;
}

.fcard-ph small {
  font-family: var(--font-mono);
  font-size: 11px;
}

.fcard-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fcard-kod {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.fcard-lakap {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.fcard-ark {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.fcard-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0;
  flex: 1;
}

.card-action-hint {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  transition: transform 0.2s ease;
}

.fcard:hover .card-action-hint {
  transform: translateX(4px);
}

/* Stats (Minimalist style) */
.stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.15);
  padding: 12px;
  border-radius: 6px;
}

.stat {
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.stat b {
  color: var(--ink);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Roster Tools & Grid */
.roster-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

#search {
  flex: 1;
  min-width: 260px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s ease;
}

#search:focus {
  outline: none;
  border-color: var(--border-hover);
}

.legend {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.legend .dot.feat {
  background: var(--accent);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.rcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.rcard:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.rcard.feat {
  border-color: rgba(99, 102, 241, 0.3);
}

.rcard.feat::after {
  content: "★";
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--accent);
  font-size: 10px;
}

.rcard .kod {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.rcard .ark {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.2;
}

.rcard .mini {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}

.rcard .mini i {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.rcard .mini i b {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* Fairness */
.fair-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.fair-wrap p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.hash-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.hash-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.hash-box code {
  display: block;
  font-family: var(--font-mono);
  color: #ffffff;
  word-break: break-all;
  font-size: 12.5px;
  background: #090a0f;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hash-note {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

/* Steps / Nasıl Katılırsın */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.prize {
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--ink);
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #06070a;
}

.footer .logo {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer .fine {
  font-size: 11.5px;
  opacity: 0.6;
  margin-top: 12px;
}

/* Minimalist Premium Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 301;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--muted);
  transform: scale(1.05);
}

.modal-card .fcard-lakap {
  font-size: 24px;
  margin: 6px 0;
}



/* Responsiveness */
@media(max-width: 820px) {
  .nav-links {
    display: none;
  }
  
  .nav {
    padding: 16px 20px;
  }
  
  .section {
    padding: 48px 20px;
  }
  
  .two-col, .fair-wrap, .mechanics-grid, .steps-grid, .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero {
    padding: 80px 20px 40px;
    min-height: auto;
  }
  
  .hero-stats {
    gap: 24px;
    margin-top: 40px;
  }
}
