/* ============================================
   RIVIERA CYBERSECURITY CONGRESS - RCC 2027
   ============================================ */

:root {
  /* Core */
  --bg:           #080808;
  --bg-alt:       #0f0f0f;
  --fg:           #ffffff;
  --fg-dim:       #ffffff;
  --fg-muted:     #ffffff;
  --accent:       #cc2200;
  --accent-hover: #e62800;
  --border:       #1e1e1e;
  --border-light: #2d2d2d;

  /* Legacy compat — used in inline styles */
  --c-text-muted:     #ffffff;
  --c-accent:         #cc2200;
  --c-accent-border:  rgba(204,34,0,.4);

  /* Fonts */
  --f-heading: 'Montserrat', sans-serif;
  --f-body:    'Montserrat', sans-serif;
  --f-nav:     'Montserrat', sans-serif;

  /* Spacing */
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  40px;
  --s-2xl: 64px;
  --s-3xl: 80px;
  --s-4xl: 120px;

  /* Layout */
  --max-w: 1100px;
  --nav-h: 52px;
}

@font-face {
  font-family: '5Computers';
  src: url('img/5Computers-In-Love.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ---- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 4px; background: #080808; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::selection { background: var(--accent); color: #fff; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--f-heading);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: var(--fg);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p {
  max-width: 680px;
  margin: 0.75em auto;
}

p:first-child { margin-top: 0; }
p:last-child  { margin-bottom: 0; }

.label {
  font-family: var(--f-heading);
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: bold;
}

.text-secondary { color: var(--fg-dim); }
.text-muted     { color: var(--fg-muted); }

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 60px 0;
  text-align: center;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.section-label {
  padding-top: 0;
}

/* Section label acts as a full-width section heading */
.section-label .label {
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--fg);
  display: block;
  width: 100%;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand:hover { opacity: 0.75; }
.nav-logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.nav-brand-text {
  font-family: '5Computers', monospace;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
  margin-top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.1s;
}

.nav-link:hover,
.nav-link.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--fg);
  display: block;
  transition: all 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/hero-bg.jpg') center center / cover no-repeat;
  filter: grayscale(100%) brightness(0.25) blur(20px);
  transform: scale(1.1);
}

.hero::after {
  display: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.hero-left .label {
  display: block;
  margin-bottom: 14px;
  padding-left: 4px;
}

.hero-logo-wrap { flex-shrink: 0; }

.hero-logo {
  width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  animation: glitch 4s steps(1) infinite, glitch2 4s steps(1) infinite;
}

@keyframes glitch {
  0%, 100% { clip-path: none; transform: none; }
  82%    { clip-path: none; transform: none; }
  82.5%  { clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%); transform: translate(-8px, 0); }
  83%    { clip-path: polygon(0 65%, 100% 65%, 100% 80%, 0 80%); transform: translate(6px, 0); }
  83.3%  { clip-path: none; transform: none; }
  83.5%  { clip-path: polygon(0 40%, 100% 40%, 100% 55%, 0 55%); transform: translate(-4px, 2px) skewX(-3deg); }
  83.8%  { clip-path: none; transform: none; }
  84.2%  { clip-path: polygon(0 8%, 100% 8%, 100% 22%, 0 22%); transform: translate(10px, 0); }
  84.4%  { clip-path: none; transform: translate(-2px, 0); }
  84.6%  { clip-path: polygon(0 70%, 100% 70%, 100% 92%, 0 92%); transform: translate(5px, -1px); }
  84.8%  { clip-path: none; transform: none; opacity: 0.6; }
  85%    { clip-path: none; transform: none; opacity: 0.85; }
}

@keyframes glitch2 {
  0%, 100% { filter: brightness(0) invert(1); }
  82%    { filter: brightness(0) invert(1); }
  82.5%  { filter: brightness(0) invert(1) drop-shadow(6px 0 0 rgba(204,34,0,0.7)) drop-shadow(-6px 0 0 rgba(0,85,255,0.5)); }
  83%    { filter: brightness(0) invert(1) drop-shadow(-5px 0 0 rgba(204,34,0,0.6)); }
  83.3%  { filter: brightness(0) invert(1); }
  83.5%  { filter: brightness(0) invert(1) drop-shadow(4px 0 0 rgba(0,85,255,0.6)); }
  83.8%  { filter: brightness(0) invert(1); }
  84.2%  { filter: brightness(0) invert(1) drop-shadow(8px 0 0 rgba(204,34,0,0.8)); }
  84.4%  { filter: brightness(1.5) invert(1); }
  84.6%  { filter: brightness(0) invert(1) drop-shadow(-4px 0 0 rgba(0,85,255,0.7)); }
  84.8%  { filter: brightness(0) invert(1); }
  85%    { filter: brightness(0) invert(1); }
}

.hero-title {
  font-size: 4.8rem;
  line-height: 0.95;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 4px;
}

.hero-title span { display: block; }

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-meta .label { display: none; }
.hero-sep { display: none; }

.hero-date {
  font-family: var(--f-heading);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
}

.hero-location {
  font-size: 0.8rem;
  color: var(--fg);
  margin: 2px 0 0;
}

.hero-tagline {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fg);
  max-width: 480px;
  margin: 0;
}

.hero-tagline strong { color: var(--fg); font-weight: bold; }

/* ---- Countdown ---- */

.countdown {
  display: flex;
  gap: 16px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown-value {
  font-family: var(--f-heading);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -1px;
}

.countdown-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scroll-indicator { display: none; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--f-heading);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.1s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-light);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
}

/* ---- About text ---- */

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: none;
  margin: 0 0 0.6em;
}

.about-text:last-child { margin-bottom: 0; }
.about-text strong { color: var(--fg); font-weight: bold; }

/* ---- Notify ---- */

.notify-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.notify-form input[type="email"] {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border-light);
  border-right: none;
  background: var(--bg-alt);
  color: var(--fg);
  font-size: 0.82rem;
}

.notify-form input[type="email"]::placeholder { color: var(--fg-muted); }
.notify-form input[type="email"]:focus { border-color: var(--fg-dim); outline: none; }

.notify-success {
  display: none;
  color: var(--accent);
  font-size: 0.82rem;
  padding-top: 10px;
}

.notify-success.visible { display: block; }

/* ---- Detail List ---- */

.detail-list li {
  font-size: 1rem;
  color: var(--fg-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.detail-list li::before {
  content: none;
}

/* ---- CoC / Prose ---- */

.prose { max-width: 680px; text-align: left; }

.prose h2 {
  font-size: 1rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 0.85rem;
  color: var(--fg-dim);
  line-height: 1.75;
  margin-bottom: 10px;
  max-width: none;
}

.prose ul {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prose li {
  font-size: 0.85rem;
  color: var(--fg-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.prose li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
}

.prose a { color: var(--fg-dim); }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--fg); }

/* ---- Partners ---- */

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  align-items: center;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.partner-item img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

/* ---- Team ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  padding-top: 0;
  text-align: center;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 0;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: grayscale(100%);
}

.team-photo .team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
  z-index: 0;
  user-select: none;
}

.team-card h3 {
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--f-heading);
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

.team-card .team-bio {
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.speakers-tba {
  padding: 28px 0;
}

/* ---- Tickets ---- */

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.ticket-card {
  display: flex;
  flex-direction: column;
}

.ticket-header { margin-bottom: 16px; }

.ticket-header .label {
  display: block;
  margin-bottom: 7px;
}

.ticket-header h3 {
  color: var(--fg);
  margin-bottom: 7px;
  font-size: 1rem;
}

.ticket-price {
  font-family: var(--f-heading);
  font-weight: bold;
  font-size: 2.4rem;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -1px;
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.footer-left .footer-brand {
  font-family: var(--f-heading);
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.footer-left .footer-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  text-decoration: none;
}

.footer-link:hover { color: var(--fg); }

/* ---- Split Layout ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 460px;
}

.split-reversed .split-text { order: 2; }
.split-reversed .split-img  { order: 1; }

.split-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.split-text h1 { font-size: 2.6rem; }
.split-text h2 { font-size: 1.8rem; }

/* Small category label above heading in a split */
.split-text .label {
  font-size: 0.65rem;
  letter-spacing: 3px;
}

.split-text .lead {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: none;
  margin: 0;
}

/* Page-header splits: push below fixed nav */
.split-header {
  margin-top: var(--nav-h);
}

.split-img {
  overflow: hidden;
  position: relative;
}

.split-img img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.45);
  display: block;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-reversed .split-text { order: 1; }
  .split-reversed .split-img  { order: 2; }
  .split-img img { min-height: 280px; height: 280px; }
  .split-text { padding: 48px 28px; gap: 16px; }
  .split-header { margin-top: 0; }
  .split-header .split-text { padding-top: calc(var(--nav-h) + 40px); }
  .hero-logo-wrap { display: none; }
}

/* ---- Reveal (no-op in new design) ---- */

.reveal { }
.reveal.visible { }
.stagger > .reveal { }
.hero .hero-text { }
.hero .hero-logo-wrap { }
.hero.entered .hero-text,
.hero.entered .hero-logo-wrap { }

/* ---- Responsive ---- */

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tickets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 18px;
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .nav-logo { height: 30px; }

  h1 { font-size: 2rem; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-content { flex-direction: column-reverse; gap: 24px; }
  .hero-text { gap: 14px; }
  .hero-right { gap: 10px; }
  .hero-logo-wrap { display: none; }
  .hero-tagline { font-size: 0.8rem; }
  .hero-date { font-size: 0.7rem; letter-spacing: 2px; }
  .hero-location { font-size: 0.75rem; }

  .countdown { gap: 12px; }
  .countdown-item { min-width: 44px; }
  .countdown-value { font-size: 1.5rem; }

  .team-grid { grid-template-columns: 1fr; }
  .tickets-grid { grid-template-columns: 1fr; }

  .container { padding: 0 20px; }
  .section { padding: 44px 0; }

  .split-text { padding: 36px 20px; }
  .about-text { font-size: 0.9rem; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-right { gap: 14px; }
}

