:root {
  --cin-bg: #090d1a;
  --cin-bg-deep: #050711;
  --cin-panel: rgba(16, 20, 39, 0.84);
  --cin-line: rgba(181, 193, 235, 0.14);
  --cin-text: #f3f8f5;
  --cin-muted: #9299b2;
  --cin-accent: #78a8ff;
  --cin-blue: #7086ff;
  --cin-coral: #ff806e;
}

html { background: var(--cin-bg-deep); }
body.cinematic-home {
  --cin-shell-width: min(1760px, calc(100% - clamp(48px, 5vw, 120px)));
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--cin-text);
  background: var(--cin-bg-deep);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.cinematic-home::selection { color: #080b16; background: var(--cin-accent); }

.cinematic-home .v2-topnav {
  position: absolute !important;
  inset: 0 0 auto !important;
  z-index: 50;
  color: #e9f3ef !important;
  background: linear-gradient(180deg, rgba(5, 7, 17, .96), rgba(8, 11, 24, .82)) !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  backdrop-filter: blur(10px);
}
.cinematic-home .v2-topnav a,
.cinematic-home .v2-topnav button { color: #c3d0cb !important; }
.cinematic-home .v2-topnav-title { color: #f3f8f5 !important; }
.cinematic-home .v2-topnav-subtitle { color: #747d9e !important; }
.cinematic-home .v2-topnav a:hover,
.cinematic-home .v2-topnav a.is-active { color: #fff !important; }
.cinematic-home .v2-topnav-link::after { background: var(--cin-accent) !important; }
.cinematic-home .v2-quick-tool { background: rgba(255,255,255,.025) !important; border-color: rgba(255,255,255,.08) !important; }
.cinematic-home .v2-account-button { background: rgba(120,168,255,.1) !important; border-color: rgba(120,168,255,.24) !important; }

.cinematic-home .v2-topnav-bar {
  width: var(--cin-shell-width) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.cinematic-shell { width: var(--cin-shell-width); margin-inline: auto; }
.cinematic-main {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--cin-bg);
}
.cinematic-hero {
  position: relative;
  flex: 1 0 auto;
  min-height: min(900px, 100vh);
  padding-top: 86px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 38%, rgba(74, 87, 180, .22), transparent 31%),
    radial-gradient(circle at 89% 13%, rgba(144, 91, 207, .14), transparent 25%),
    linear-gradient(122deg, #0b1022 0%, #090d1a 47%, #050711 100%);
}
.cinematic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
}
.cinematic-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cinematic-orbit { position: absolute; border: 1px solid rgba(120,168,255,.12); border-radius: 50%; pointer-events: none; }
.cinematic-orbit-one { width: 760px; height: 760px; right: -180px; top: 50px; }
.cinematic-orbit-two { width: 460px; height: 460px; right: 80px; top: 190px; border-style: dashed; opacity: .6; }
.cinematic-hero-grid { min-height: calc(min(900px, 100vh) - 86px); display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 30px; }

.cinematic-copy { position: relative; z-index: 6; padding: 78px 0 90px; }
.cinematic-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #aab0c8; font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.cinematic-kicker span { width: 33px; height: 1px; background: var(--cin-accent); box-shadow: 0 0 13px var(--cin-accent); }
.cinematic-copy h1 { margin: 0; font-size: clamp(58px, 5.3vw, 90px); line-height: .98; letter-spacing: -.055em; font-weight: 780; }
.cinematic-copy h1 span, .cinematic-copy h1 strong { display: block; }
.cinematic-copy h1 span { color: #eef6f2; }
.cinematic-copy h1 strong { margin-top: 10px; color: #d9e0f2; background: none; -webkit-text-fill-color: currentColor; text-shadow: 0 10px 40px rgba(78,102,190,.13); }
.cinematic-copy > p { max-width: 560px; margin: 30px 0 0; color: #a7adc1; font-size: 18px; line-height: 1.85; letter-spacing: .01em; }
.cinematic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 42px; }
.cinematic-button { min-height: 54px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 25px; border: 1px solid transparent; color: #f5fbf8; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .02em; transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.cinematic-button:hover { transform: translateY(-2px); }
.cinematic-button-primary { color: #fff; background: #5577e9; box-shadow: 0 14px 34px rgba(60,86,190,.28); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
.cinematic-button-primary:hover { background: #6485f1; box-shadow: 0 18px 44px rgba(60,86,190,.38); }
.cinematic-button-primary svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cinematic-button-ghost { border-color: rgba(225,240,234,.18); background: rgba(255,255,255,.025); backdrop-filter: blur(8px); }
.cinematic-button-ghost:hover { border-color: rgba(120,168,255,.48); background: rgba(120,168,255,.075); }
.cinematic-play { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.cinematic-play svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cinematic-proof { display: flex; gap: 24px; margin-top: 32px; color: #7f879f; font-size: 12px; }
.cinematic-proof span { display: flex; align-items: center; gap: 8px; }
.cinematic-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--cin-accent); box-shadow: 0 0 9px rgba(120,168,255,.85); }

.arsenal-stage { position: relative; height: 700px; margin-right: -55px; transform-style: preserve-3d; perspective: 1100px; }
.arsenal-stage::before { content: "CS2UP"; position: absolute; right: -5%; top: 4%; color: rgba(255,255,255,.018); font-size: 190px; font-weight: 900; letter-spacing: -.08em; }
.arsenal-halo { position: absolute; left: 22%; top: 17%; width: 510px; height: 510px; border-radius: 50%; background: radial-gradient(circle, rgba(112,134,255,.17), rgba(157,140,255,.07) 44%, transparent 70%); filter: blur(4px); }
.arsenal-grid { position: absolute; left: 13%; top: 12%; width: 610px; height: 540px; transform: rotate(-9deg) skewY(4deg); border: 1px solid rgba(120,168,255,.14); background-image: linear-gradient(rgba(120,168,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(120,168,255,.075) 1px, transparent 1px); background-size: 60px 60px; clip-path: polygon(15% 0, 100% 8%, 92% 95%, 4% 100%, 0 20%); }
.weapon-tile { --mx: 0px; --my: 0px; position: absolute; box-sizing: border-box; overflow: hidden; border: 1px solid rgba(199,207,239,.15); background: linear-gradient(145deg, rgba(23,29,55,.88), rgba(7,9,20,.9)); box-shadow: 0 22px 48px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.045); backdrop-filter: blur(10px); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transform: translate3d(var(--mx), var(--my), 0) rotate(var(--rot, 0deg)); transition: border-color .3s ease, filter .3s ease; }
.weapon-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.07), transparent 62%); transform: translateX(-100%); animation: tileSweep 7s ease-in-out infinite; }
.weapon-tile:hover { border-color: rgba(120,168,255,.5); filter: brightness(1.12); z-index: 12; }
.weapon-tile img { position: absolute; z-index: 2; width: 86%; height: 76%; left: 7%; top: 7%; object-fit: contain; filter: drop-shadow(0 15px 14px rgba(0,0,0,.42)); }
.weapon-tile b { position: absolute; z-index: 3; left: 13px; right: 10px; bottom: 10px; overflow: hidden; color: rgba(233,242,238,.74); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.weapon-tile small { position: absolute; z-index: 4; top: 11px; right: 12px; color: rgba(194,207,236,.7); font-size: 7px; font-weight: 750; letter-spacing: .12em; white-space: nowrap; }
.weapon-rarity { position: absolute; z-index: 4; left: 0; top: 0; bottom: 0; width: 2px; }
.rarity-consumer { background: #b0c3d9; box-shadow: 0 0 13px #b0c3d9; }
.rarity-industrial { background: #5e98d9; box-shadow: 0 0 13px #5e98d9; }
.rarity-milspec { background: #4b69ff; box-shadow: 0 0 13px #4b69ff; }
.rarity-restricted { background: #8847ff; box-shadow: 0 0 13px #8847ff; }
.rarity-classified { background: #d32ce6; box-shadow: 0 0 13px #d32ce6; }
.rarity-covert { background: #eb4b4b; box-shadow: 0 0 13px #eb4b4b; }
.rarity-contraband { background: #e4ae39; box-shadow: 0 0 14px #e4ae39; }
.rarity-gold { background: #edbd55; box-shadow: 0 0 14px #edbd55; }
.rarity-red { background: #ef668c; box-shadow: 0 0 13px #ef668c; }
.rarity-pink { background: #be74e8; box-shadow: 0 0 13px #be74e8; }
.tile-knife { --rot: -4deg; z-index: 8; left: 34%; top: 4%; width: 300px; height: 202px; border-color: rgba(237,189,85,.32); background: radial-gradient(circle at 72% 26%, rgba(237,189,85,.14), transparent 42%), linear-gradient(145deg, rgba(27,31,54,.94), rgba(7,9,19,.95)); }
.tile-knife small { top: 13px; right: 14px; }
.tile-ak { --rot: 4deg; z-index: 7; left: 10%; top: 29%; width: 330px; height: 196px; }
.tile-m4 { --rot: -3deg; z-index: 6; left: 48%; top: 34%; width: 310px; height: 183px; }
.tile-awp { --rot: 3deg; z-index: 7; left: 25%; top: 58%; width: 360px; height: 188px; }
.tile-deagle { --rot: -7deg; z-index: 5; left: 2%; top: 60%; width: 195px; height: 150px; }
.tile-glock { --rot: 6deg; z-index: 4; left: 70%; top: 20%; width: 190px; height: 145px; }
.tile-howl { --rot: -4deg; z-index: 4; left: 67%; top: 65%; width: 205px; height: 151px; }
.arsenal-core { --mx: 0px; --my: 0px; position: absolute; z-index: 15; left: 43%; top: 45%; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(120,168,255,.45); border-radius: 50%; color: #e0e6ff; background: rgba(7,9,22,.93); box-shadow: 0 0 0 10px rgba(8,10,25,.62), 0 0 45px rgba(112,134,255,.22); transform: translate3d(var(--mx), var(--my), 0); }
.arsenal-core::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(120,168,255,.3); border-radius: 50%; animation: coreSpin 18s linear infinite; }
.arsenal-core span { font-size: 11px; font-weight: 800; }
.arsenal-core svg { width: 38px; fill: none; stroke: var(--cin-accent); stroke-width: 1.25; filter: drop-shadow(0 0 7px rgba(120,168,255,.75)); }
.arsenal-caption { position: absolute; right: 2%; bottom: 4%; display: flex; align-items: center; gap: 9px; color: rgba(161,181,174,.5); font-size: 8px; letter-spacing: .24em; }
.arsenal-caption i { width: 20px; height: 1px; background: rgba(120,168,255,.28); }

.cinematic-stats { position: relative; z-index: 3; border-top: 1px solid var(--cin-line); border-bottom: 1px solid var(--cin-line); background: linear-gradient(90deg, #0a0e1d, #0d1225 60%, #080b17); }
.stats-grid { min-height: 166px; display: grid; grid-template-columns: repeat(3, .72fr) 1.45fr; align-items: stretch; }
.stats-grid article { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 27px 38px 25px 0; border-right: 1px solid var(--cin-line); }
.stats-grid article + article { padding-left: 38px; }
.stats-grid small { color: #68718f; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.stats-grid strong { margin-top: 9px; color: #edf6f2; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.stats-grid article span { margin-top: 9px; color: #858da8; font-size: 12px; }
.stats-manifesto { display: flex; align-items: center; gap: 24px; padding-left: 54px; }
.stats-manifesto > i { width: 1px; height: 50px; background: linear-gradient(var(--cin-blue), var(--cin-coral)); box-shadow: 0 0 18px rgba(103,150,255,.35); }
.stats-manifesto p { margin: 0; color: #969db5; font-size: 17px; line-height: 1.75; }
.stats-manifesto b { color: #e3efeb; font-weight: 650; }

.cinematic-footer { color: #69718a; background: #050711; font-size: 11px; }
.cinematic-footer .cinematic-shell { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.cinematic-footer p { margin: 0 auto 0 0; }
.cinematic-footer nav { display: flex; gap: 24px; }
.cinematic-footer a { color: #7e879f; text-decoration: none; }
.cinematic-footer a:hover { color: var(--cin-accent); }

[data-reveal] { animation: revealCopy .9s cubic-bezier(.2,.7,.2,1) both; }
.weapon-tile { animation: revealTile .85s cubic-bezier(.2,.7,.2,1) both; }
.tile-knife { animation-delay: .06s; }.tile-ak { animation-delay: .13s; }.tile-m4 { animation-delay: .2s; }.tile-awp { animation-delay: .26s; }.tile-deagle { animation-delay: .31s; }.tile-glock { animation-delay: .36s; }.tile-howl { animation-delay: .41s; }
@keyframes revealCopy { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes revealTile { from { opacity: 0; translate: 35px 24px; scale: .96; } to { opacity: 1; translate: 0; scale: 1; } }
@keyframes tileSweep { 0%,65% { transform: translateX(-120%); } 82%,100% { transform: translateX(120%); } }
@keyframes coreSpin { to { transform: rotate(360deg); } }

@media (max-width: 1240px) {
  body.cinematic-home { --cin-shell-width: min(1180px, calc(100% - 48px)); }
  .cinematic-hero-grid { grid-template-columns: .9fr 1.1fr; }
  .arsenal-stage { margin-right: -110px; transform: scale(.88); transform-origin: center left; }
  .cinematic-copy h1 { font-size: clamp(56px, 6vw, 76px); }
}

@media (max-width: 900px) {
  body.cinematic-home { --cin-shell-width: min(100% - 34px, 720px); }
  .cinematic-home .v2-topnav { position: relative !important; background: #090d1a !important; }
  .cinematic-hero { min-height: auto; padding-top: 0; }
  .cinematic-hero-grid { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cinematic-copy { min-width: 0; width: 100%; padding: 76px 0 30px; text-align: center; }
  .cinematic-kicker, .cinematic-actions, .cinematic-proof { justify-content: center; }
  .cinematic-copy > p { margin-inline: auto; }
  .arsenal-stage { width: 760px; height: 610px; margin: -35px 0 -10px; left: auto; justify-self: center; transform: scale(.78); transform-origin: center center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid article { padding: 28px 18px !important; text-align: center; }
  .stats-manifesto { grid-column: 1 / -1; justify-content: center; padding: 24px; border-top: 1px solid var(--cin-line); }
}

@media (max-width: 600px) {
  body.cinematic-home { --cin-shell-width: calc(100% - 28px); }
  .cinematic-copy { padding-top: 58px; }
  .cinematic-kicker { margin-bottom: 21px; font-size: 9px; letter-spacing: .2em; }
  .cinematic-copy h1 { font-size: clamp(46px, 14vw, 62px); }
  .cinematic-copy > p { margin-top: 23px; font-size: 15px; line-height: 1.75; }
  .cinematic-actions { margin-top: 31px; }
  .cinematic-button { width: 100%; min-height: 52px; }
  .cinematic-proof { flex-direction: column; gap: 9px; align-items: center; margin-top: 24px; }
  .arsenal-stage { height: 470px; margin: -48px 0 -24px; transform: scale(.58); }
  .cinematic-orbit-one { right: -420px; top: 400px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid strong { font-size: 26px; }
  .stats-grid article { padding-inline: 5px !important; }
  .stats-grid small { font-size: 7px; letter-spacing: .12em; }
  .stats-grid article span { font-size: 10px; }
  .stats-manifesto { padding: 21px 10px; }
  .stats-manifesto p { font-size: 14px; }
  .cinematic-footer .cinematic-shell { padding: 24px 0; flex-wrap: wrap; justify-content: center; gap: 12px 20px; text-align: center; }
  .cinematic-footer p { width: 100%; margin: 0; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .weapon-tile, .arsenal-core { --mx: 0px !important; --my: 0px !important; }
}
