/* ============================================================================
   SHESEM 2026 — Hackathon Website
   Design system adapted from HORIZON·9 — Teal / Green palette
   ============================================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --teal:        #2cbfac;
  --green:       #08cf8a;
  --dark-teal:   #28a58a;
  --navy:        #0a2e2a;
  --navy-deep:   #061d1a;
  --bg-1:        #ffffff;
  --bg-2:        #e4eef2;
  --text-dark:   #1a1a2e;
  --text-body:   #3a3a4a;
  --text-muted:  #6a7a80;
  --gradient:    linear-gradient(135deg, #28a58a 0%, #2cbfac 50%, #08cf8a 100%);
  --font:        'Work Sans', sans-serif;
  --page-width:  1400px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- TYPOGRAPHY ---------- */
.h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.caption-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 12px;
}

.body-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 16px;
}

.body-text strong { color: var(--text-dark); }

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner { text-align: center; }

.loader-text {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 8px;
  color: #fff;
  margin-bottom: 24px;
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-fill {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  animation: loaderSlide 1s var(--ease) infinite;
  transform-origin: left;
}

@keyframes loaderSlide {
  0%   { transform: scaleX(0); }
  50%  { transform: scaleX(1); transform-origin: left; }
  50.1%{ transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- SIDE LOGO ---------- */
.side-logo {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.35;
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  transition: color 0.4s;
}

.logo-dot {
  color: var(--green);
  font-weight: 400;
  margin: 0 1px;
}

.header-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.4s;
}

.header-blog-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.header-blog-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
  border-color: var(--teal);
}

.header-ticket {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.header-ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44,191,172,0.35);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}

.burger.active span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.burger.active span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- MENU OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.menu-link {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s;
}

.menu-overlay.open .menu-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.open .menu-link:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.open .menu-link:nth-child(2) { transition-delay: 0.1s; }
.menu-overlay.open .menu-link:nth-child(3) { transition-delay: 0.15s; }
.menu-overlay.open .menu-link:nth-child(4) { transition-delay: 0.2s; }
.menu-overlay.open .menu-link:nth-child(5) { transition-delay: 0.25s; }
.menu-overlay.open .menu-link:nth-child(6) { transition-delay: 0.3s; }
.menu-overlay.open .menu-link:nth-child(7) { transition-delay: 0.35s; }
.menu-overlay.open .menu-link:nth-child(8) { transition-delay: 0.4s; }
.menu-overlay.open .menu-link:nth-child(9) { transition-delay: 0.45s; }

.menu-link:hover { color: var(--green); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: none;
  letter-spacing: 0.3px;
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(44,191,172,0.3);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44,191,172,0.45);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  border-color: var(--green);
  background: rgba(44,191,172,0.1);
  transform: translateY(-3px);
}

.btn-primary {
  background: none;
  color: var(--teal);
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}

.btn-primary::after {
  content: ' →';
  transition: transform 0.3s;
  display: inline-block;
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.btn-solid {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44,191,172,0.35);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 100px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 32px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.hero-title-big {
  display: block;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 0.9;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.meta-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.meta-pill.light {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}

/* Countdown */
.hero-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cd-block { text-align: center; min-width: 70px; }

.cd-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.cd-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.cd-sep {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  padding-bottom: 16px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- STATS BAND ---------- */
.stats-band {
  background: var(--navy);
  padding: 60px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.bg-1 { background: var(--bg-1); }
.bg-2 { background: var(--bg-2); }

/* ---------- IWT (Image-with-Text) ---------- */
.iwt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iwt-text .caption-text { margin-bottom: 12px; }
.iwt-text .h2 { margin-bottom: 20px; }
.iwt-text .body-text { margin-bottom: 12px; }
.iwt-text .btn-primary { margin-top: 16px; }

.iwt-visual {
  position: relative;
}

.iwt-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------- BANNER ---------- */
.banner {
  position: relative;
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--navy-deep);
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,191,172,0.15) 0%, rgba(8,207,138,0.08) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner .h2 {
  color: #fff;
  margin-bottom: 16px;
}

.banner .body-text {
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto 28px;
}

.banner-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.banner-cta .h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------- EXPECT CARDS (Avantages) ---------- */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.expect-card {
  background: var(--bg-1);
  padding: 40px 32px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.expect-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.expect-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(44,191,172,0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.expect-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.expect-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- PRISE EN CHARGE ---------- */
.pec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pec-card {
  background: var(--bg-2);
  padding: 40px 32px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(44,191,172,0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(44,191,172,0.12);
}

.pec-icon {
  display: block;
  font-size: 2.8rem;
  margin-bottom: 18px;
  line-height: 1;
}

.pec-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.pec-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- TIMELINE ---------- */
.timeline {
  max-width: 900px;
  margin: 0 auto;
}

.tl-row {
  display: grid;
  grid-template-columns: 140px 40px 1fr;
  gap: 0;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tl-row:last-child { border-bottom: none; }

.tl-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.5;
  padding-top: 2px;
}

.tl-time small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  margin-top: 6px;
  justify-self: center;
  position: relative;
}

.tl-dot::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 32px);
  background: rgba(44,191,172,0.15);
}

.tl-row:last-child .tl-dot::before { display: none; }

.tl-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.tl-content p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- RULES GRID ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-1);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rule-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.rule-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(44,191,172,0.2);
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
}

.rule-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body);
}

.rule-card p strong { color: var(--text-dark); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--teal); }

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 0 22px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  padding-top: 80px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-gradient-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,191,172,0.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  filter: blur(80px);
}

.footer-gradient-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,207,138,0.12) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  filter: blur(80px);
}

.footer-inner { position: relative; z-index: 2; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-left h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-left p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 360px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}

.footer-socials a:hover { color: var(--green); }

/* Footer newsletter form */
.footer-nl-form {
  margin-bottom: 20px;
  max-width: 400px;
}

.footer-nl-form .nl-input-wrap {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.footer-col { }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-links a,
.footer-links span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--green); }

/* Footer bottom */
.footer-bottom {
  padding: 60px 0 40px;
  text-align: center;
}

.footer-big-text {
  margin-bottom: 32px;
}

.fbt-h {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -4px;
  color: rgba(255,255,255,0.06);
  line-height: 0.9;
}

.fbt-dot {
  font-size: clamp(3rem, 9vw, 7rem);
  color: var(--green);
  font-weight: 400;
  margin: 0 4px;
}

.fbt-9 {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -4px;
  color: rgba(255,255,255,0.06);
  line-height: 0.9;
}

.footer-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-credits {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-credits p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ---------- NEWSLETTER MODAL ---------- */
.nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 29, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.nl-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nl-modal {
  position: relative;
  background: var(--navy-deep);
  border: 1px solid rgba(44, 191, 172, 0.15);
  max-width: 480px;
  width: 90%;
  padding: 48px 40px 40px;
  text-align: center;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s var(--ease);
}

.nl-overlay.active .nl-modal {
  transform: translateY(0) scale(1);
}

.nl-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.nl-close:hover { color: #fff; }

.nl-icon {
  display: inline-block;
  font-size: 2.4rem;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.nl-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 28px;
}

.nl-form { margin-bottom: 16px; }

.nl-input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s;
}

.nl-input-wrap:focus-within {
  border-color: var(--teal);
}

.nl-input {
  flex: 1;
  padding: 14px 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
}

.nl-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.nl-btn {
  padding: 14px 28px;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.nl-btn:hover { opacity: 0.9; }
.nl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.nl-status {
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
  transition: color 0.3s;
}

.nl-status.success { color: var(--green); }
.nl-status.error { color: #ff6b6b; }

.nl-privacy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
  .nl-modal { padding: 40px 24px 32px; }
  .nl-input-wrap {
    flex-direction: column;
    border-radius: 12px;
  }
  .nl-input { text-align: center; padding: 14px 16px; }
  .nl-btn { border-radius: 0 0 11px 11px; padding: 14px; }
}

/* ---------- ANIMATIONS ---------- */
.anim-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.anim-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .page-width { padding: 0 28px; }

  .expect-grid { grid-template-columns: repeat(2, 1fr); }
  .pec-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: 1fr; }

  .iwt {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iwt-visual { order: -1; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-links { text-align: left; }
}

@media (max-width: 768px) {
  .page-width { padding: 0 20px; }

  .side-logo { display: none; }

  .header-counter { display: none; }
  .header-blog-btn { display: none; }
  .header-ticket { display: none; }
  .burger { display: flex; }

  .hero { padding: 120px 20px 80px; }
  .hero-title-big { letter-spacing: -3px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .expect-grid { grid-template-columns: 1fr; }
  .pec-grid { grid-template-columns: 1fr; }

  .tl-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .tl-time {
    display: flex;
    gap: 8px;
    align-items: baseline;
  }

  .tl-time small { display: inline; }
  .tl-dot { display: none; }

  .hero-countdown { gap: 4px; }
  .cd-block { min-width: 55px; }
  .cd-num { font-size: 1.8rem; }

  .footer-bottom { padding: 40px 0 30px; }
  .fbt-h, .fbt-9 { letter-spacing: -2px; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }

  .stats-inner { grid-template-columns: 1fr 1fr; }

  .banner-pills { flex-direction: column; align-items: center; }
}
