
:root {
  --rs-bg:        #071524;
  --rs-panel:     #0d2235;
  --rs-deep:      #0a3d5c;
  --rs-teal-d:    #0e5c4a;
  --rs-teal:      #1a8a6e;
  --rs-aqua:      #4dd9c8;
  --rs-seafoam:   #a8d8d0;
  --rs-mist:      #c8e8e4;
  --rs-danger:    #7a2a2e;

  /* Shared component tokens */
  --bg:                    var(--rs-bg);
  --text:                  var(--rs-mist);
  --ornament-border-color: rgba(77, 217, 200, 0.28);
  --ornament-corner-color: rgba(77, 217, 200, 0.52);
  --ornament-bg:           rgba(7, 21, 36, 0.78);
  --btn-bg:                #0e5c4a;
  --btn-hover:             #1a8a6e;
  --btn-color:             #c8e8e4;
  --form-status-color:     rgba(168, 216, 208, 0.85);
  --textarea-focus-ring:   rgba(77, 217, 200, 0.22);
}

/* ── Body ─────────────────────────────────── */
body { background: var(--rs-bg); color: var(--rs-mist); }

/* ══════════════════════════════════════
   WOW OPENING EFFECT — water veil
   A deep-ocean overlay that drains downward
   on load, revealing the world beneath.
══════════════════════════════════════ */
.rs-water-veil {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(180deg,
    #071524 0%,
    #0a3d5c 55%,
    rgba(26, 138, 110, 0.92) 80%,
    rgba(77, 217, 200, 0.75) 100%);
  animation: rsVeilDrain 1.8s cubic-bezier(0.32, 0, 0.12, 1) 0.25s both;
  pointer-events: none;
}

@keyframes rsVeilDrain {
  0%   { transform: translateY(0);    opacity: 1; }
  85%  {                              opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

/* ── Bubble canvas (full page, behind everything) */
#rs-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Landing ──────────────────────────────── */
.rs-landing {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--rs-bg);
  padding-top: 64px;
}

/* Landing content */
.rs-landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 12px;
}

/* ── Title: letters rise from water ──── */
.rs-landing-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3.2rem, 11vw + 0.5rem, 10rem);
  line-height: 1;
  color: var(--rs-seafoam);
  letter-spacing: 0.08em;
  text-shadow:
    0 0 40px rgba(77, 217, 200, 0.65),
    0 0 100px rgba(26, 138, 110, 0.35),
    0 4px 30px rgba(0, 0, 0, 0.90);
  margin: 0;
}

.rs-c {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px) scale(0.84);
  animation: rsCharRise 0.70s cubic-bezier(0.12, 0.88, 0.24, 1) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.07s);
}

@keyframes rsCharRise {
  0%   { opacity: 0; transform: translateY(22px) scale(0.84);
         text-shadow: 0 0 30px rgba(77, 217, 200, 0.90); }
  60%  { text-shadow: 0 0 20px rgba(77, 217, 200, 0.55); }
  100% { opacity: 1; transform: translateY(0) scale(1);
         text-shadow: inherit; }
}

.rs-landing-tagline {
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  letter-spacing: 0.14em;
  color: var(--rs-aqua);
  opacity: 0.90;
  margin: 0;
}

/* Decorative separator */
.rs-landing-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  width: 290px;
  max-width: 90vw;
}

.rs-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77, 217, 200, 0.42), transparent);
}

.rs-sep-drop {
  font-size: 1.35rem;
  color: var(--rs-aqua);
  animation: rsDropPulse 3.2s ease-in-out infinite;
}

@keyframes rsDropPulse {
  0%, 100% { opacity: 0.40; text-shadow: none; }
  50%       { opacity: 1;   text-shadow: 0 0 20px rgba(77, 217, 200, 0.90); }
}

/* Enter CTA */
.rs-enter-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 34px;
  border: 1px solid rgba(77, 217, 200, 0.38);
  border-radius: 4px;
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.12em;
  color: var(--rs-seafoam);
  background: rgba(14, 92, 74, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rs-enter-btn:hover {
  background: rgba(77, 217, 200, 0.18);
  border-color: rgba(77, 217, 200, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 138, 110, 0.35);
}

/* Water mist in landing */
.rs-landing-mist {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 72%, rgba(10, 61, 92, 0.52) 0%, transparent 65%),
    radial-gradient(ellipse 50% 34% at 85% 28%, rgba(14, 92, 74, 0.38) 0%, transparent 65%);
  animation: rsMistShift 26s ease-in-out infinite alternate;
}

@keyframes rsMistShift {
  0%   { opacity: 0.70; transform: scale(1) translateX(0); }
  50%  { opacity: 1;    transform: scale(1.05) translateX(-16px); }
  100% { opacity: 0.78; transform: scale(1) translateX(14px); }
}

/* ── Shared text helpers ──────────────────── */
.rs-p {
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.12rem);
  line-height: 1.80;
  color: rgba(200, 232, 228, 0.88);
  margin: 0;
}

/* Reveal-on-scroll stagger system */
.rs-appear {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity   0.88s ease calc(var(--ad, 0ms)),
    transform 0.88s cubic-bezier(0.12, 0.88, 0.24, 1) calc(var(--ad, 0ms)),
    filter    0.88s ease calc(var(--ad, 0ms));
}

.rs-appear.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Section: About ───────────────────────── */
.rs-about {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.rs-about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.rs-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Attribute pills */
.rs-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.rs-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(77, 217, 200, 0.30);
  border-radius: 999px;
  background: rgba(10, 61, 92, 0.30);
  font-family: "Cinzel", serif;
  font-size: 0.80rem;
  color: var(--rs-mist);
  letter-spacing: 0.04em;
}

/* Pool quote card */
.rs-pool-wrap {
  position: relative;
}

/* Top-left corner accent */
.rs-pool-wrap::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 36px;
  height: 36px;
  border-top: 1px solid rgba(77, 217, 200, 0.62);
  border-left: 1px solid rgba(77, 217, 200, 0.62);
  pointer-events: none;
  z-index: 1;
}

/* Bottom-right corner accent */
.rs-pool-wrap::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 36px;
  height: 36px;
  border-bottom: 1px solid rgba(77, 217, 200, 0.62);
  border-right: 1px solid rgba(77, 217, 200, 0.62);
  pointer-events: none;
  z-index: 1;
}

.rs-pool {
  background: transparent;
  border: 1px solid rgba(77, 217, 200, 0.20);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
  overflow: visible;
}

.rs-pool-quote {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.4vw + 0.35rem, 1.22rem);
  line-height: 1.78;
  color: var(--rs-seafoam);
  font-style: italic;
  margin: 0 0 14px;
}

.rs-pool-cite {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 0.82rem;
  color: var(--rs-aqua);
  letter-spacing: 0.07em;
}

/* ── Section: Powers ──────────────────────── */
.rs-powers {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(7, 21, 36, 0.45) 40%,
    transparent 100%);
}

.rs-powers-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rs-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}

.rs-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rs-card {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid rgba(77, 217, 200, 0.18);
  background: transparent;
  padding: 30px 20px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rs-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 217, 200, 0.50);
  box-shadow: 0 12px 40px rgba(26, 138, 110, 0.30);
}

/* Top-left corner accent */
.rs-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(77, 217, 200, 0.50);
  border-left: 1px solid rgba(77, 217, 200, 0.50);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner accent */
.rs-card::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-bottom: 1px solid rgba(77, 217, 200, 0.50);
  border-right: 1px solid rgba(77, 217, 200, 0.50);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.rs-card:hover::before,
.rs-card:hover::after {
  border-color: var(--rs-aqua);
}

.rs-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(77, 217, 200, 0.44));
}

.rs-card-name {
  font-family: "Cinzel", serif;
  font-size: clamp(0.85rem, 1.1vw + 0.15rem, 0.98rem);
  color: var(--rs-seafoam);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.rs-card-desc {
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(200, 232, 228, 0.60);
}

/* ── Section: Legends ─────────────────────── */
.rs-legends {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.rs-legends-inner {
  max-width: 900px;
  margin: 0 auto;
}

.rs-stories {
  display: flex;
  flex-direction: column;
}

.rs-story {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(10, 61, 92, 0.45);
  align-items: start;
}

.rs-story:last-child { border-bottom: none; }

.rs-story-num {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: rgba(77, 217, 200, 0.25);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
  user-select: none;
}

.rs-story-content {
  padding-left: 18px;
  border-left: 2px solid rgba(26, 138, 110, 0.40);
  transition: border-color 0.3s ease;
}

.rs-story:hover .rs-story-content {
  border-left-color: var(--rs-aqua);
}

.rs-story-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.1rem, 1.8vw + 0.3rem, 1.4rem);
  color: var(--rs-mist);
  letter-spacing: 0.04em;
  margin: 0;
  margin-bottom: 12px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .rs-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rs-about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rs-story {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .rs-story-num { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .rs-landing-title { letter-spacing: 0.03em; }
  .rs-about, .rs-powers, .rs-legends { padding: 80px 16px 60px; }
}

@media (max-width: 400px) {
  .rs-cards { grid-template-columns: 1fr; }
}

/* -------------------------
NAVBAR CUSTOM
------------------------- */
.navbar {
  background-color: rgba(7, 21, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--rs-mist);
}

.navbar.scrolled {
  background-color: rgba(7, 21, 36, 0.42);
}

.nav-links a:hover {
  background-color: rgba(14, 92, 74, 0.50);
}

@media (max-width: 1100px) {
  .nav-links {
    background-color: rgba(7, 21, 36, 0.97);
    border-bottom: 1px solid rgba(77, 217, 200, 0.14);
  }
}

/* -------------------------
CONTACT CUSTOM
------------------------- */
.kontakty {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(7, 31, 52, 0.40) 40%,
    rgba(7, 21, 36, 0.68) 100%);
}

.ornament-frame {
  animation: rsAquaGlow 5.5s ease-in-out infinite;
}

@keyframes rsAquaGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(14, 92, 74, 0.18), inset 0 0 8px rgba(14, 92, 74, 0.09); }
  50%       { box-shadow: 0 0 34px rgba(77, 217, 200, 0.40), inset 0 0 18px rgba(77, 217, 200, 0.18); }
}
