:root {
  --bg: #07080b;
  --bg-soft: #0d0f14;
  --panel: #11141a;
  --panel-2: #171a21;
  --text: #f4f4f5;
  --muted: #a2a6b0;
  --line: rgba(255,255,255,.1);
  --red: #e01726;
  --red-bright: #ff3044;
  --silver: #d9dce2;
  --max-width: 1180px;
  --header-height: 76px;
  --radius: 4px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(224,23,38,.07), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: white; color: black; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 1000;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.nav-open .site-header {
  background: rgba(7,8,11,.9);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.nav-shell {
  width: min(calc(100% - 36px), 1320px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark {
  width: 39px; height: 39px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red-bright), #7b0711 55%, #cbd0da 56%, #646a74);
  clip-path: polygon(10% 0, 82% 0, 100% 18%, 63% 48%, 100% 100%, 62% 80%, 45% 57%, 34% 100%, 8% 72%);
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(224,23,38,.35));
}
.brand-copy { display: grid; line-height: 1; letter-spacing: .12em; }
.brand-copy strong { font-size: .93rem; }
.brand-copy small { color: var(--red-bright); font-size: .56rem; margin-top: 5px; letter-spacing: .33em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; color: #d6d8dd; font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red-bright); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 0; width: 42px; height: 42px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: white; margin: 6px 0; transition: transform .2s ease, opacity .2s ease; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border: 1px solid var(--red); background: linear-gradient(135deg, var(--red-bright), #b40716);
  color: white; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform .2s ease, filter .2s ease, background .2s ease;
  box-shadow: 0 10px 32px rgba(224,23,38,.18);
}
.button:hover, .button:focus-visible { transform: translateY(-2px); filter: brightness(1.12); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: .68rem; }
.button-ghost { background: rgba(8,9,12,.56); border-color: rgba(255,255,255,.28); box-shadow: none; }

.hero { position: relative; min-height: 760px; height: min(920px, 100svh); display: grid; align-items: center; isolation: isolate; overflow: hidden; background: #050608; }
.hero-background { position: absolute; inset: 0; z-index: -3; background: url("../images/razor-banner.webp") center center / cover no-repeat; transform: scale(1.015); }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(4,5,8,.05) 0%, rgba(4,5,8,.12) 42%, rgba(4,5,8,.74) 66%, rgba(4,5,8,.96) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 22%, rgba(0,0,0,.08) 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .5; }
.hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 100%; padding-top: var(--header-height); }
.hero-panel { max-width: 570px; justify-self: end; padding: 42px; background: linear-gradient(135deg, rgba(17,20,26,.75), rgba(8,9,12,.45)); border: 1px solid rgba(255,255,255,.13); box-shadow: var(--shadow); backdrop-filter: blur(10px); position: relative; }
.hero-panel::before { content: ""; position: absolute; width: 70px; height: 3px; top: -1px; left: 40px; background: var(--red-bright); box-shadow: 0 0 18px rgba(255,48,68,.7); }
.eyebrow { margin: 0 0 14px; color: var(--red-bright); font-size: .72rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
h1 { margin-bottom: 20px; font-size: clamp(2.7rem, 5vw, 5.4rem); letter-spacing: -.045em; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.035em; text-transform: uppercase; }
h3 { font-size: 1.4rem; }
.hero-summary { color: #d3d5da; font-size: 1.08rem; max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.hero-meta span::before { content: "+"; color: var(--red-bright); margin-right: 7px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.56); font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 28px; background: linear-gradient(var(--red-bright), transparent); }

.section { position: relative; padding: 116px 0; }
.section-intro { background: linear-gradient(180deg, var(--bg), #0a0c10); }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.section-heading { position: relative; }
.section-heading::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 26px; background: var(--red); box-shadow: 0 0 16px rgba(224,23,38,.55); }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 44px; }
.section-heading-row::after { display: none; }
.intro-copy { max-width: 720px; color: var(--muted); font-size: 1.02rem; }
.intro-copy .lead { color: var(--silver); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; }
.pillars { margin-top: 76px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { padding: 38px 32px 42px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar-number { display: inline-block; margin-bottom: 48px; color: var(--red-bright); font-size: .73rem; font-weight: 850; letter-spacing: .16em; }
.pillar h3 { margin-bottom: 14px; text-transform: uppercase; }
.pillar p { margin-bottom: 0; color: var(--muted); }

.section-games { overflow: hidden; background:
  linear-gradient(rgba(7,8,11,.82), rgba(7,8,11,.96)),
  url("../images/razor-logo.webp") 120% 55% / 680px no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-note { max-width: 440px; margin: 0; color: var(--muted); }
.games-grid { display: grid; }
.game-card { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 510px; background: rgba(13,15,20,.92); border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-art { position: relative; overflow: hidden; min-height: 420px; }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, rgba(13,15,20,.9) 100%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 50%); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.game-card:hover .game-art img { transform: scale(1.03); }
.status-badge { position: absolute; z-index: 2; left: 24px; top: 24px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; background: rgba(7,8,11,.78); border: 1px solid var(--line); color: #e9e9eb; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; backdrop-filter: blur(8px); }
.status-badge i, .signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); }
.game-content { padding: 50px; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; }
.card-kicker { color: var(--red-bright); font-size: .7rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.game-content h3 { margin-bottom: 18px; font-size: clamp(2rem, 3.2vw, 3.5rem); text-transform: uppercase; }
.game-content p { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { padding: 7px 10px; border: 1px solid var(--line); color: #c6c8cd; font-size: .67rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.text-link { width: fit-content; color: white; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.text-link span { color: var(--red-bright); margin-left: 6px; transition: margin-left .2s ease; }
.text-link:hover span { margin-left: 12px; }

.section-news { background: #090b0f; }
.signal { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.news-card { position: relative; min-height: 330px; padding: 34px; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 55%); transition: background .25s ease, transform .25s ease; }
.news-card:last-child { border-right: 0; }
.news-card:hover { background: linear-gradient(145deg, rgba(224,23,38,.08), transparent 60%); transform: translateY(-4px); }
.news-index { position: absolute; top: 28px; right: 28px; color: rgba(255,255,255,.13); font-size: 2.2rem; font-weight: 900; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #7f838d; font-size: .66rem; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.news-meta span { color: var(--red-bright); }
.news-card h3 { margin: 54px 0 16px; max-width: 14ch; font-size: 1.55rem; text-transform: uppercase; }
.news-card > p:last-child { color: var(--muted); }

.section-contact { padding-top: 42px; background: #090b0f; }
.contact-card { position: relative; overflow: hidden; padding: 64px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; background: linear-gradient(120deg, #171a20, #0d0f14 62%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red-bright); box-shadow: 0 0 25px var(--red); }
.contact-card::after { content: "R"; position: absolute; right: -20px; bottom: -110px; color: rgba(255,255,255,.025); font-size: 22rem; font-weight: 950; line-height: 1; transform: skew(-10deg); }
.contact-card h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.contact-card p:not(.eyebrow) { margin: 18px 0 0; max-width: 650px; color: var(--muted); }
.contact-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.site-footer { padding: 54px 0 30px; background: #050609; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { letter-spacing: .13em; }
.footer-brand p { margin: 4px 0 0; color: #777b84; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.footer-links a:hover { color: var(--red-bright); }
.copyright { grid-column: 1/-1; margin: 20px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: #5f626b; font-size: .72rem; }

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

@media (max-width: 980px) {
  .nav-cta { display: none; }
  .hero { min-height: 820px; height: auto; }
  .hero-background { background-position: 33% center; }
  .hero-overlay { background: linear-gradient(0deg, var(--bg), rgba(4,5,8,.22) 45%, rgba(4,5,8,.06)), linear-gradient(90deg, rgba(4,5,8,.08), rgba(4,5,8,.78)); }
  .hero-layout { grid-template-columns: 1fr; padding: 190px 0 110px; }
  .hero-spacer { min-height: 180px; }
  .hero-panel { justify-self: stretch; max-width: 680px; margin-left: auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 42px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .pillar-number { margin-bottom: 24px; }
  .game-card { grid-template-columns: 1fr; }
  .game-art::after { background: linear-gradient(0deg, rgba(13,15,20,.96), transparent 48%); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .news-card:last-child { border-bottom: 0; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .nav-shell { width: calc(100% - 28px); }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; display: grid; gap: 0; padding: 16px 14px 24px; background: rgba(7,8,11,.97); border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .main-nav a { padding: 15px 10px; border-bottom: 1px solid var(--line); }
  .nav-open .main-nav { transform: translateY(0); opacity: 1; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: 760px; }
  .hero-background { background-position: 29% center; }
  .hero-layout { padding: 152px 0 90px; }
  .hero-spacer { min-height: 160px; }
  .hero-panel { padding: 30px 24px; }
  h1 { font-size: clamp(2.4rem, 13vw, 4.5rem); }
  .section { padding: 82px 0; }
  .section-heading-row { display: grid; gap: 20px; margin-bottom: 32px; }
  .pillars { margin-top: 52px; }
  .pillar { padding-inline: 20px; }
  .game-content { padding: 34px 24px; }
  .game-art { min-height: 330px; }
  .contact-card { padding: 42px 26px; }
  .footer-layout { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

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