:root {
  --green: #00d45e;
  --green-mid: #00a84a;
  --green-dark: #007a32;
  --navy: #060e18;
  --navy-mid: #0d1b2a;
  --navy-light: #142233;
  --navy-card: #0f1e2e;
  --white: #ffffff;
  --muted: #7a9ab5;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* =============================================
   NAVBAR
   ============================================= */
header { position: sticky; top: 0; z-index: 1000; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background-color: rgba(6, 14, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 94, 0.1);
  transition: box-shadow 0.3s ease;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo-rugga { color: var(--white); }
.logo-link  { color: var(--green); }

.nav-links { list-style: none; display: flex; gap: 2rem; }

.nav-links li a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav-links li a:hover,
.nav-links li a.active { color: var(--white); }
.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 14, 24, 0.95) 0%,
    rgba(6, 14, 24, 0.85) 45%,
    rgba(6, 14, 24, 0.4) 100%
  );
}

/* Dot pattern texture */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 212, 94, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Diagonal clip at bottom instead of flat line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2.5rem 5rem;
  gap: 2rem;
}

.hero-text { flex: 1; max-width: 640px; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--green);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--green);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

/* Make NETWORK line stand out */
.hero-headline span:nth-child(2) {
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
}

.hero-headline em {
  font-style: normal;
  color: var(--green);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green);
  color: var(--navy);
  padding: 0.85rem 1.8rem;
  border-radius: 0px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.cta-btn:hover {
  background: #00f570;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 94, 0.45);
}
.cta-btn:hover::before { transform: translateX(0); }

.cta-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
}
.cta-secondary::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.25s ease;
}
.cta-secondary:hover { color: var(--green); }
.cta-secondary:hover::after { width: 100%; }

/* Hero player image with glow */
.hero-image-wrap {
  flex: 0 0 auto;
  width: clamp(260px, 35vw, 480px);
  position: relative;
}

/* Green glow behind player */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse, rgba(0, 212, 94, 0.22) 0%, transparent 68%);
  z-index: 0;
  filter: blur(18px);
}

.hero-player-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(0, 212, 94, 0.25));
}

.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 4;
}
.hero-scroll-hint span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* =============================================
   SECTION DIVIDERS — diagonal cuts
   ============================================= */
.section-divider {
  height: 60px;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  margin-top: -2px;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
  position: relative;
  padding: 6rem 2.5rem 7rem;
  overflow: hidden;
}

.features-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/assets/features-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.features-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 24, 0.93);
}

/* Dot pattern on features too */
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 212, 94, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

/* Diagonal clip at bottom */
.features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--navy-light);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 2;
}

.features-inner {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.features h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}
.features h2 em { font-style: normal; color: var(--green); }

/* 3x2 grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 2.2rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,94,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Faint rugby ball watermark per card */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='40' cy='40' rx='28' ry='18' fill='none' stroke='rgba(0,212,94,0.07)' stroke-width='2'/%3E%3Cline x1='12' y1='40' x2='68' y2='40' stroke='rgba(0,212,94,0.07)' stroke-width='1.5'/%3E%3Cline x1='40' y1='22' x2='40' y2='58' stroke='rgba(0,212,94,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 94, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 94, 0.12);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 0.4; }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(0, 212, 94, 0.1);
  border: 1px solid rgba(0, 212, 94, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover .feature-icon-wrap {
  background: rgba(0, 212, 94, 0.18);
  border-color: rgba(0, 212, 94, 0.5);
  transform: scale(1.08);
}
.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: var(--green);
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
  color: var(--white);
}
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.68);
}

.feature-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.4s ease;
}
.feature-card:hover .feature-accent { width: 100%; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(105deg, var(--navy-light) 0%, #081410 60%, #0a1a0f 100%);
  border-top: 1px solid rgba(0,212,94,0.15);
  border-bottom: 1px solid rgba(0,212,94,0.15);
  padding: 6rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: visible;
  min-height: 480px;
  display: flex;
  align-items: center;
}

/* Large faded rugby ball SVG bg */
.cta-banner-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='100' cy='100' rx='85' ry='55' fill='none' stroke='rgba(0,212,94,0.06)' stroke-width='3'/%3E%3Cline x1='15' y1='100' x2='185' y2='100' stroke='rgba(0,212,94,0.06)' stroke-width='2'/%3E%3Cline x1='100' y1='45' x2='100' y2='155' stroke='rgba(0,212,94,0.06)' stroke-width='2'/%3E%3Cpath d='M40 72 Q100 55 160 72' fill='none' stroke='rgba(0,212,94,0.04)' stroke-width='1.5'/%3E%3Cpath d='M40 128 Q100 145 160 128' fill='none' stroke='rgba(0,212,94,0.04)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.9;
}

/* Green radial glow */
.cta-banner-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 28%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 94, 0.13) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

/* Clip container for bg elements only — keeps player free to overflow */
.cta-banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Diagonal top edge */
.cta-banner-clip-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cta-banner-text {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 0 1 520px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.cta-banner p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Player image pinned to right of banner */
.cta-player-wrap {
  position: absolute;
  right: 2%;
  bottom: 0;
  top: auto;
  width: clamp(260px, 26vw, 400px);
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  overflow: visible;
  /* Allow image to rise above the section */
  transform: translateY(-8%);
}

/* Green glow behind banner player */
.cta-player-wrap::before {
  content: '';
  position: absolute;
  inset: 5% 0;
  background: radial-gradient(ellipse at 60% 60%, rgba(0,212,94,0.2) 0%, transparent 65%);
  filter: blur(20px);
  z-index: 0;
}

.cta-player-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(0, 212, 94, 0.3));
  /* Only fade the very bottom (feet) into the banner floor */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 10%);
  mask-image: linear-gradient(to top, transparent 0%, black 10%);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  position: relative;
  padding: 7rem 2.5rem 6rem;
  background: rgba(6, 14, 24, 0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Dot pattern */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 212, 94, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-form { text-align: left; }

.form-group { margin-bottom: 1.5rem; position: relative; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid rgba(0,212,94,0.25);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.15);
  border-left-color: var(--green);
  background: rgba(0,212,94,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Right column — richer contact info */
.contact-info { text-align: left; }
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}
.contact-info i { color: var(--green); width: 20px; }

.contact-info .contact-blurb {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  display: block;
}

.contact-info .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-info .social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,212,94,0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.contact-info .social-links a:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,212,94,0.08);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background-color: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.footer-tagline { color: var(--muted); font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; gap: 1.5rem; margin-top: 0.4rem; }
.footer-links li a { font-size: 0.85rem; color: var(--muted); transition: color 0.25s ease; }
.footer-links li a:hover { color: var(--green); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); margin-top: 0.4rem; }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.visible,
.reveal-right.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }
.delay-6 { transition-delay: 0.85s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-player-wrap { width: clamp(200px, 25vw, 320px); }
}

@media (max-width: 768px) {
  .cta-player-wrap { display: none; }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { width: min(280px, 70vw); }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(6, 14, 24, 0.98);
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 1.5rem;
    gap: 1rem;
    border-left: 2px solid rgba(0,212,94,0.2);
    border-bottom: 2px solid rgba(0,212,94,0.2);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .features { padding: 4rem 1.5rem 5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .contact { padding: 3rem 1.5rem; }
  .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .form-group input,
  .form-group textarea { padding: 1rem; font-size: 1.1rem; }
  .form-group textarea { min-height: 100px; }
}

section { scroll-margin-top: 70px; }