/* ============================================
   CSURF.GG — Home v5 TACTICAL
   ============================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--hh));
  display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg);
}

/* Full-bleed background image */
.hero-bg-img {
  position: absolute; inset: 0;
  background-image: url(../images/hero-bg3.jpg);
  background-size: cover; background-position: center 30%;
  opacity: 0.09; z-index: 0;
  filter: blur(0px) saturate(0.4) brightness(0.7);
  transform: scale(1.04);
}
[data-theme="light"] .hero-bg-img { opacity: 0.05; }

/* Scanline texture */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
}

/* Gradient vignette */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(61,158,255,0.05) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(7,8,9,0) 40%, rgba(7,8,9,0.7) 100%);
}

.hero-bg-ramps {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; opacity: 0.22;
}
.hero-bg-ramps svg { width: 100%; height: 100%; position: absolute; inset: 0; }

/* ── HERO LAYOUT: split — left text, right is implied ── */
.hero-inner {
  position: relative; z-index: 4;
  display: flex; flex-direction: column;
  padding: 80px 48px 0;
  max-width: 1440px; margin: 0 auto; width: 100%;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--a); margin-bottom: 24px;
  animation: fade-up .5s ease both;
}
.hero-eyebrow .pip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--a); box-shadow: 0 0 8px var(--a);
  animation: pip 2s ease-in-out infinite;
}
.hero-eyebrow .divider { opacity: 0.3; margin: 0 4px; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 900; line-height: 0.88;
  letter-spacing: -1px; text-transform: uppercase;
  color: var(--tw); margin-bottom: 0;
  animation: fade-up .5s .07s ease both;
}
.hero-title .line-a { color: var(--a); display: block; }
.hero-title .line-w { color: var(--tw); display: block; }
.hero-title .line-ghost {
  color: transparent; display: block;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.1);
}

.hero-sub {
  font-size: 16px; line-height: 1.7; color: var(--tmid);
  max-width: 440px; margin: 24px 0 36px;
  animation: fade-up .5s .14s ease both; font-weight: 400;
}

.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  animation: fade-up .5s .2s ease both;
}

/* ── HERO STATS ROW ── */
.hero-stats {
  display: flex; gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--b1);
  animation: fade-up .5s .28s ease both;
  align-self: stretch;
}
.hero-stat {
  flex: 1; padding: 22px 32px;
  border-right: 1px solid var(--b1);
  position: relative; transition: background .2s;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(61,158,255,0.025); }
.hero-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 20%, var(--a) 50%, transparent 80%);
  opacity: 0; transition: opacity .3s;
}
.hero-stat:hover::before { opacity: 1; }
.hero-stat-value {
  font-family: var(--display); font-size: 48px; font-weight: 900;
  color: var(--a); display: block; line-height: 1; letter-spacing: 1px;
}
.hero-stat-label {
  font-size: 8px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--tdim); margin-top: 7px; display: block; font-family: var(--mono);
}

/* ── HOME INLINE SERVER BROWSER ── */
.home-server-section {
  padding: 64px 48px 80px;
  max-width: 1440px; margin: 0 auto;
  border-top: 1px solid var(--b1);
}

.home-server-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.home-server-header-left {}
.home-server-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--a); margin-bottom: 8px; opacity: 0.8;
}
.home-server-title {
  font-family: var(--display); font-size: 40px; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase; color: var(--tw); line-height: 1;
}
.home-server-title span { color: var(--a); }

/* Mini stats inline */
.home-server-stats {
  display: flex; gap: 20px; align-items: center;
}
.home-stat-chip {
  display: flex; flex-direction: column; align-items: flex-end;
}
.home-stat-chip-val { font-family: var(--display); font-size: 24px; font-weight: 900; color: var(--a); line-height: 1; }
.home-stat-chip-lbl { font-family: var(--mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--tdim); margin-top: 3px; }

/* ── HOME SECTIONS ── */
.home-section {
  padding: 72px 48px;
  max-width: 1440px; margin: 0 auto;
  border-top: 1px solid var(--b1);
}

.section-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--a); margin-bottom: 12px; opacity: 0.8;
}
.section-title {
  font-family: var(--display); font-size: clamp(36px, 5vw, 52px); font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--tw); margin-bottom: 44px; line-height: 1;
}
.section-title span { color: var(--a); }

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--b1); border: 1px solid var(--b1); border-radius: var(--rlg); overflow: hidden;
}

.feature-card {
  background: var(--surface); padding: 28px 24px;
  transition: background .15s; position: relative; overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 30%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(61,158,255,0.06), transparent);
  transform: skewX(-20deg);
  opacity: 0; transition: opacity .4s; pointer-events: none;
  animation: none;
}
.feature-card:hover { background: var(--surface2); }
.feature-card:hover::after { opacity: 1; animation: sweep .5s forwards; }

.feature-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.feature-icon {
  width: 38px; height: 38px; background: var(--adim); border: 1px solid rgba(61,158,255,0.15);
  border-radius: var(--rsm); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: all .2s;
}
.feature-card:hover .feature-icon { background: rgba(61,158,255,0.14); border-color: rgba(61,158,255,0.3); }
.feature-title { font-size: 14px; font-weight: 600; color: var(--tbr); font-family: var(--body); }
.feature-desc { font-size: 13px; color: var(--t); line-height: 1.72; }

/* ── HOWTO ── */
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.howto-steps { display: grid; gap: 6px; counter-reset: step; }

.howto-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--r); transition: all .18s;
  counter-increment: step;
}
.howto-step:hover { border-color: var(--b2); transform: translateX(5px); }
.howto-num {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--adim); border: 1px solid rgba(61,158,255,0.2);
  color: var(--a); font-weight: 700; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--rsm); font-family: var(--mono); flex-shrink: 0;
}
.howto-num::before { content: counter(step, decimal-leading-zero); }
.howto-body h3 { font-size: 13px; font-weight: 700; color: var(--tbr); margin-bottom: 5px; }
.howto-body p { font-size: 13px; color: var(--t); line-height: 1.65; }

.howto-visual {
  background: var(--surface); border: 1px solid var(--b1); border-radius: var(--r);
  padding: 40px 32px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px; min-height: 100%; text-align: center;
  position: relative; overflow: hidden;
}
.howto-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(61,158,255,0.05) 0%, transparent 70%);
}
.big-icon { font-size: 64px; animation: float 4s ease-in-out infinite; position: relative; z-index: 1; }
.howto-visual-text { position: relative; z-index: 1; }
.howto-visual-text h3 { font-size: 16px; font-weight: 700; color: var(--tbr); margin-bottom: 8px; }
.howto-visual-text p { font-size: 13px; color: var(--t); line-height: 1.65; max-width: 250px; }

/* ── MAP CARDS ── */
.maps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.map-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--b1); background: var(--surface);
  transition: all .22s; cursor: default; border-radius: var(--r);
}
.map-card:hover { border-color: rgba(61,158,255,0.3); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(61,158,255,0.1); }

.map-card-visual { height: 160px; position: relative; overflow: hidden; background-size: cover; background-position: center; transition: transform .4s ease; }
.map-card:hover .map-card-visual { transform: scale(1.06); }
.map-card-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(7,8,9,0.75) 100%);
}
.map-img-surf_ski_3 { background-image: url(../images/surf_ski_3.jpg); }
.map-img-surf_greatriver_xdre4m { background-image: url(../images/surf_greatriver_xdre4m.jpg); }
.map-img-surf_greatriver { background-image: url(../images/surf_greatriver.jpg); }
.map-img-surf_skyworld { background-image: url(../images/surf_skyworld.jpg); }
.map-img-surf_bigloop { background-image: url(../images/surf_bigloop.jpg); }
.map-img-surf_buck-wild { background-image: url(../images/surf_buck-wild.jpg); }
.map-img-surf_colos2 { background-image: url(../images/surf_colos2.jpg); }
.map-img-surf_dust { background-image: url(../images/surf_dust.jpg); }

.map-card-body { padding: 12px 14px 14px; }
.map-card-name { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--a); letter-spacing: 0.5px; margin-bottom: 5px; }
.map-card-desc { font-size: 11.5px; color: var(--t); line-height: 1.6; }
.map-card-tags { display: flex; gap: 4px; margin-top: 9px; flex-wrap: wrap; }
.map-tag {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.5px;
  padding: 2px 7px; border: 1px solid var(--b2); color: var(--tdim);
  border-radius: 3px; text-transform: uppercase;
}

/* ── COMMUNITY ── */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.community-card {
  background: var(--surface); border: 1px solid var(--b1);
  padding: 22px 26px; display: flex; align-items: center; gap: 18px;
  transition: all .18s; cursor: pointer; border-radius: var(--r);
}
.community-card:hover { border-color: var(--b2); transform: translateY(-2px); }
.community-card.discord:hover { border-color: rgba(88,101,242,0.35); background: rgba(88,101,242,0.04); }
.community-icon { font-size: 28px; flex-shrink: 0; }
.community-info h3 { font-size: 14px; font-weight: 700; color: var(--tbr); margin-bottom: 3px; }
.community-info p { font-size: 12px; color: var(--t); line-height: 1.55; }
.community-arrow { margin-left: auto; color: var(--tdim); font-size: 16px; transition: transform .15s, color .15s; flex-shrink: 0; }
.community-card:hover .community-arrow { transform: translateX(4px); color: var(--a); }
.community-card.discord:hover .community-arrow { color: #7289da; }

/* ── CTA ── */
.cta-banner {
  margin: 0 48px 80px; background: var(--surface); border: 1px solid var(--b1);
  border-radius: var(--r); padding: 56px 44px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 50%, rgba(61,158,255,0.05) 0%, transparent 65%);
}
/* Top accent line */
.cta-banner::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
  opacity: 0.5;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--tw); margin-bottom: 12px; }
.cta-banner h2 span { color: var(--a); }
.cta-banner p { font-size: 15px; color: var(--t); margin: 0 auto 32px; max-width: 440px; line-height: 1.75; }

/* ── SCROLL HINT ── */
.scroll-hint { display: none; }

/* ── RESPONSIVE ── */
@media(max-width:1100px){ .maps-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:800px){
  .maps-grid { grid-template-columns: 1fr 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .howto-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 56px 24px 0; }
  .home-section, .home-server-section { padding: 52px 24px; }
  .cta-banner { margin: 0 24px 52px; }
}
@media(max-width:600px){
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--b1); }
  .hero-stat:last-child { border-bottom: none; }
  .home-section, .home-server-section { padding: 48px 18px; }
  .cta-banner { margin: 0 18px 48px; padding: 32px 20px; }
  .maps-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .home-server-header { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: clamp(64px, 18vw, 120px); }
}
