/* ============================================================
   PADEL MAX — COMING SOON
   Same design system: dark cinematic, optic-lime accent
   Fonts: Barlow Condensed (display) + Barlow (body)
   ============================================================ */

:root {
  --bg:        #0a0d0a;
  --bg-2:      #0f140e;
  --surface:   #141a12;
  --line:      #2a3326;
  --ink:       #f3f7ec;
  --ink-dim:   #aab6a0;
  --ink-faint: #6f7c66;

  --lime:      #d4ff3d;
  --lime-deep: #aee000;
  --lime-glow: rgba(192, 255, 40, 0.55);
  --blue:      #3a72ff;

  --r:    14px;
  --r-lg: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);

  /* distressed grain used to texture the big headline (dark speckles) */
  --grain-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.26 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  height: 100vh; height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow: hidden;                 /* single-screen hero — no scroll */
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}

h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; line-height: .92; text-transform: uppercase; letter-spacing: .01em; }
svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #142000; }

/* ---------- ambient background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -3;
  background-color: var(--bg);
  background-image:
    /* darkening overlays keep the headline readable over the photo */
    linear-gradient(180deg, rgba(10,13,10,.55) 0%, rgba(10,13,10,.32) 42%, rgba(10,13,10,.84) 100%),
    radial-gradient(92% 72% at 50% 42%, rgba(10,13,10,0) 0%, rgba(10,13,10,.55) 100%),
    /* the court photo (optimized from court-bg.png) */
    url("court-bg.jpg"),
    /* fallback look if the photo is absent */
    radial-gradient(120% 75% at 72% 22%, rgba(140,180,40,.16) 0%, transparent 46%),
    radial-gradient(100% 80% at 50% 4%, #1a2412 0%, #0c1109 55%, var(--bg) 100%),
    linear-gradient(180deg, #0b0f0a 0%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* lime court glow behind the headline (drifts slowly) */
.glow {
  position: fixed; z-index: -2;
  width: 72vw; height: 72vw; max-width: 900px; max-height: 900px;
  left: 50%; top: 50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,255,40,.20), rgba(192,255,40,.06) 45%, transparent 68%);
  transform: translate(-50%, -50%);
  filter: blur(24px);
  animation: drift 16s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(-58%, -52%) scale(1); }
  100% { transform: translate(-42%, -48%) scale(1.12); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- rotating ball with motion glow (beside the banner) ---------- */
.floatball {
  position: absolute; z-index: -1;
  left: calc(100% + clamp(.6rem, 2.5vw, 2rem)); top: 50%;
  transform: translateY(-50%);
  width: clamp(84px, 12vw, 150px); height: clamp(84px, 12vw, 150px);
  pointer-events: none;
}
/* bright lime motion halo + streak behind the ball */
.floatball::before {
  content: ""; position: absolute; z-index: -1;
  left: -55%; top: -30%; width: 190%; height: 160%;
  background:
    radial-gradient(closest-side, rgba(210,255,70,.55), rgba(190,255,40,.12) 55%, transparent 72%),
    linear-gradient(115deg, transparent 40%, rgba(210,255,70,.28) 62%, transparent 75%);
  filter: blur(14px);
}
.floatball svg {
  position: relative; width: 100%; height: 100%;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)) drop-shadow(0 0 24px var(--lime-glow));
  animation: spin 9s linear infinite; transform-origin: 50% 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* ---------- stage ---------- */
.stage {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 0;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2.2rem) clamp(1.4rem, 6vw, 5rem);
}

/* soft dark fog behind the logo so it reads clearly over the court photo */
.logo-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin-bottom: clamp(.4rem, 1.5vh, 1.2rem);
}
.logo-wrap::before {
  content: ""; position: absolute; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 112%; height: 160%; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 44%, rgba(0,0,0,0) 72%);
  filter: blur(22px);
}
.logo {
  position: relative;
  width: min(560px, 84vw); height: auto;
  max-height: 26vh;                 /* shrink on short screens so it always fits */
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.55));
}

/* ---------- COMING SOON ---------- */
.title {
  display: flex; flex-direction: column; align-items: center;
  font-size: min(10.5rem, 17vw, 17vh); line-height: .8;
  letter-spacing: -.015em;
}
.title span {
  display: block;
  /* grungy texture: dark speckles clipped to the white glyphs */
  background: var(--grain-tex), linear-gradient(var(--ink), var(--ink));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.title .title__accent {
  background: var(--grain-tex), linear-gradient(var(--lime), var(--lime));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px var(--lime-glow));
}

/* ---------- PADEL. INDOOR. JEDERZEIT. ---------- */
.claim {
  display: flex; flex-direction: column; align-items: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .005em; line-height: 1;
  font-size: min(3.7rem, 6.6vw, 6.5vh);
  margin-top: clamp(.6rem, 2vh, 1.3rem);
}
.claim span {
  display: block;
  background: var(--grain-tex), linear-gradient(var(--ink), var(--ink));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.claim .claim__accent {
  background: var(--grain-tex), linear-gradient(var(--lime), var(--lime));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px var(--lime-glow));
}
/* short dashes flanking the first line (PADEL.) */
.claim span:first-child { display: inline-flex; align-items: center; gap: clamp(.6rem, 2vw, 1.2rem); }
.claim span:first-child::before,
.claim span:first-child::after {
  content: ""; width: clamp(24px, 5vw, 70px); height: .085em;
  background: var(--ink); border-radius: 2px; flex: 0 0 auto;
}

/* wrapper so the ball can be anchored right next to the banner */
.finale { position: relative; display: inline-block; }

/* ---------- STAY TUNED! rough brush banner ---------- */
.staytuned {
  margin-top: clamp(.9rem, 3vh, 1.8rem);
  position: relative; display: inline-block;
  color: #0a0d0a;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(1.25rem, 3.6vw, 2.1rem);
  padding: .5rem 1.9rem .55rem;
  transform: rotate(-1.5deg);
}
/* the painted lime stroke sits behind the text; its edges are roughened
   with an SVG turbulence displacement filter for a real brush look */
.staytuned::before {
  content: ""; position: absolute; inset: -6% -4%;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.9' numOctaves='2' seed='6' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='22' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cg filter='url(%23b)'%3E%3Crect x='26' y='30' width='348' height='62' rx='10' fill='%23d4ff3d'/%3E%3C/g%3E%3C/svg%3E")
    center/100% 100% no-repeat;
  filter: drop-shadow(0 12px 30px rgba(192,255,40,.35));
}

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 1.6rem clamp(1.4rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: .85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .foot { flex-direction: column; gap: .4rem; }

  /* keep the big headline within the viewport on phones */
  .title { font-size: min(5.5rem, 15.5vw, 15vh); }
  .claim { font-size: min(2.6rem, 7vw, 6vh); }

  /* stack the ball centered BELOW the banner instead of beside it */
  .finale { display: flex; flex-direction: column; align-items: center; }
  .floatball {
    position: static; transform: none;
    margin-top: clamp(.8rem, 2.5vh, 1.6rem);
    width: min(120px, 22vw, 13vh); height: min(120px, 22vw, 13vh);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .glow, .floatball, .floatball svg { animation: none; }
}
