:root {
  --bg: #07090e;
  --bg-soft: #0d111a;
  --panel: rgba(15, 20, 31, .86);
  --panel-2: rgba(24, 30, 43, .8);
  --line: rgba(170, 203, 255, .16);
  --text: #f2f5fb;
  --muted: #a9b2c2;
  --blue: #57a7ff;
  --blue-2: #1f68d9;
  --ice: #a9d8ff;
  --gold: #d6b56d;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 111, 219, .16), transparent 32rem),
    radial-gradient(circle at 86% 40%, rgba(95, 164, 255, .09), transparent 35rem),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection { background: rgba(87,167,255,.35); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; z-index: 90; top: 0; left: 0; right: 0;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 70px);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(5,8,13,.96), rgba(5,8,13,.72));
  border-bottom: 1px solid rgba(161,193,238,.12);
  backdrop-filter: blur(14px);
}

.brand img { width: 164px; height: 56px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a { color: #c7cfdd; font-size: .88rem; font-weight: 700; letter-spacing: .04em; transition: .2s ease; }
.main-nav a:hover { color: white; }
.main-nav .nav-discord,
.main-nav .nav-main { padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; }
.main-nav .nav-main { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: white; border-color: transparent; }
.nav-toggle { display: none; border: 0; background: transparent; color: white; font-size: 1.55rem; }

.hero {
  position: relative;
  min-height: 950px;
  padding: 150px 24px 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: -3;
  background: url("images/imha-bolgesi-boss.jpg") center 35% / cover no-repeat;
  filter: saturate(.7) contrast(1.1) brightness(.64);
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,7,12,.92) 0%, rgba(4,7,12,.58) 45%, rgba(4,7,12,.75) 100%),
    linear-gradient(180deg, rgba(4,7,12,.38), rgba(7,9,14,.95) 89%, var(--bg));
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 650px; height: 650px;
  top: 140px; left: 50%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(50,126,255,.24), transparent 68%);
}
.hero-content { width: min(920px, 100%); text-align: center; margin-top: 10px; }
.hero-logo { width: min(660px, 90vw); margin: 0 auto -8px; filter: drop-shadow(0 0 28px rgba(64,139,255,.36)); }
.eyebrow, .kicker { color: var(--ice); font-weight: 900; letter-spacing: .22em; font-size: .76rem; }
.hero h1 { margin: 12px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.04em; }
.hero-copy { max-width: 720px; margin: 24px auto; color: #ced5e0; font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 32px; }
.hero-tags span { padding: 9px 13px; border: 1px solid rgba(161,211,255,.25); background: rgba(6,12,22,.58); border-radius: 999px; color: #dcecff; font-size: .83rem; font-weight: 800; backdrop-filter: blur(8px); }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }
.btn { min-width: 190px; padding: 15px 22px; border-radius: 12px; text-align: center; font-weight: 900; letter-spacing: .06em; font-size: .85rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #74b7ff, #1e5ec8); box-shadow: 0 14px 38px rgba(30,94,200,.3), inset 0 1px rgba(255,255,255,.35); }
.btn-primary:hover { box-shadow: 0 18px 44px rgba(30,94,200,.46); }
.btn-secondary { border: 1px solid rgba(176,210,255,.28); background: rgba(5,9,16,.66); }
.btn-secondary:hover { border-color: rgba(176,210,255,.65); }

.countdown {
  position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
  width: min(720px, calc(100% - 40px)); display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(7,11,18,.72); border: 1px solid rgba(155,199,255,.2); border-radius: var(--radius); backdrop-filter: blur(15px); box-shadow: var(--shadow);
}
.countdown div { padding: 16px 12px; text-align: center; position: relative; }
.countdown div:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 22%; height: 56%; width: 1px; background: var(--line); }
.countdown strong { display: block; font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1; }
.countdown span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 105px 0; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading h2, .cta h2 { margin: 8px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; }
.section-heading p, .cta p { color: var(--muted); }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(145deg, rgba(16,22,33,.92), rgba(9,13,21,.92)); box-shadow: var(--shadow); }
.feature-strip article { min-height: 145px; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.feature-strip article:not(:last-child) { border-right: 1px solid var(--line); }
.feature-strip strong { color: var(--ice); font-family: Georgia, serif; font-size: 2.35rem; }
.feature-strip span { color: var(--muted); font-size: .88rem; }

.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.system-card, .rank-card, .shop-board {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, rgba(17,23,35,.96), rgba(8,12,20,.96));
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.system-card { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 390px; }
.system-card--portrait { grid-template-columns: .68fr 1.32fr; }
.system-card--wide { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; }
.image-button { width: 100%; height: 100%; min-height: 290px; padding: 0; border: 0; background: radial-gradient(circle at center, rgba(80,118,176,.14), rgba(5,8,14,.95)); cursor: zoom-in; overflow: hidden; }
.image-button img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .35s ease, filter .35s ease; }
.system-card--wide .image-button img { object-fit: cover; padding: 0; }
.image-button:hover img { transform: scale(1.025); filter: brightness(1.08); }
.card-body { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.card-number { color: var(--blue); font-weight: 900; font-size: .78rem; letter-spacing: .16em; }
.card-body h3, .rank-card h3, .shop-board h3 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.card-body p, .rank-card p, .shop-board p { color: var(--muted); margin: 0; }

.rankings { width: min(1260px, calc(100% - 40px)); }
.ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rank-card { padding-bottom: 28px; }
.rank-card .image-button { height: 310px; min-height: auto; border-bottom: 1px solid var(--line); }
.rank-card h3, .rank-card p { margin-left: 28px; margin-right: 28px; }
.rank-card h3 { margin-top: 22px; font-size: 1.55rem; }

.shop-board { padding: 14px; display: grid; gap: 10px; }
.shop-board article { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; align-items: center; gap: 28px; padding: 26px; border-radius: 13px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.045); }
.shop-image { min-height: 108px; display: grid; place-items: center; background: #05070b; border-radius: 10px; overflow: hidden; }
.shop-image img { width: 100%; max-height: 125px; object-fit: contain; }
.shop-board h3 { font-size: 1.45rem; margin-bottom: 5px; }

.cta { width: min(1180px, calc(100% - 40px)); margin-bottom: 100px; padding: clamp(42px, 6vw, 76px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; border-radius: 26px; border: 1px solid rgba(128,187,255,.26); background:
  linear-gradient(110deg, rgba(19,39,70,.88), rgba(8,13,23,.92)),
  url("images/imha-bolgesi-boss.jpg") center/cover;
  box-shadow: var(--shadow);
}
.cta-actions { justify-content: flex-end; }

footer { min-height: 190px; padding: 42px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: #05070b; color: var(--muted); }
footer img { width: 180px; }
footer a { color: var(--ice); font-weight: 800; }

.lightbox { width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(164,205,255,.26); border-radius: 16px; background: #05070b; box-shadow: 0 30px 100px rgba(0,0,0,.75); }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: calc(100vh - 34px); object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: rgba(0,0,0,.68); font-size: 1.8rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,11,18,.97); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 9px 6px; }
  .system-card, .system-card--portrait, .system-card--wide { grid-template-columns: 1fr; grid-column: auto; }
  .system-card--wide { grid-column: 1 / -1; }
  .ranking-grid { grid-template-columns: 1fr; }
  .rank-card { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .rank-card .image-button { height: 330px; border-bottom: 0; border-right: 1px solid var(--line); }
  .rank-card h3 { align-self: end; }
  .rank-card p { align-self: start; margin-bottom: 24px; }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 7px 16px; }
  .brand img { width: 135px; height: 52px; }
  .main-nav { top: 68px; }
  .hero { min-height: 900px; padding-top: 120px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-logo { width: 390px; }
  .countdown { bottom: 28px; }
  .countdown div { padding: 13px 6px; }
  .section { width: min(100% - 28px, 1180px); padding: 78px 0; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .feature-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .system-grid { grid-template-columns: 1fr; }
  .system-card--wide { grid-column: auto; }
  .image-button { min-height: 300px; }
  .system-card--portrait .image-button { min-height: 500px; }
  .rank-card { display: block; padding-bottom: 25px; }
  .rank-card .image-button { height: 310px; border-right: 0; border-bottom: 1px solid var(--line); }
  .shop-board article { grid-template-columns: 1fr; gap: 18px; }
  .shop-image { min-height: 90px; }
  .cta { width: min(100% - 28px, 1180px); padding: 34px 22px; }
  .cta-actions, .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Instagram/Facebook in-app browser compatibility */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: rgba(0,0,0,.88);
  place-items: center;
}
.lightbox.lightbox-open { display: grid; }
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  border-radius: 12px;
  background: #05070b;
}
body.modal-open { overflow: hidden; }
