/* ==========================================================================
   Markus Aquaristick — design tokens
   Palette:
     --bg        #0a0e11  near-black water at depth
     --bg-2      #0f1418  panel surface
     --silver    #d7dde1  metallic fish body
     --silver-2  #8f9aa3  dimmer silver / secondary text
     --green     #8fd13f  acid-green accent (from logo)
     --green-2   #5c9b23  darker green for depth/hover
     --line      rgba(215,221,225,0.14)
   Type:
     Display: 'Rajdhani' — angular, technical, echoes the chamfered logotype
     Body:    'Inter' — neutral, highly legible for long form fields
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0e11;
  --bg-2: #10151a;
  --bg-3: #161d23;
  --silver: #e4e9ec;
  --silver-2: #93a0a8;
  --green: #93d84a;
  --green-2: #5c9b23;
  --line: rgba(228, 233, 236, 0.12);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--silver);
}

a { color: inherit; }

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Ambient bubbles (shared background texture) ---------- */
.bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubbles span {
  position: absolute;
  bottom: -10%;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(147,216,74,0.35), rgba(228,233,236,0.05) 70%);
  border: 1px solid rgba(228,233,236,0.15);
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translateY(-120vh); opacity: 0; }
}

/* ==========================================================================
   Splash / intro animation
   ========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.splash-words {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.splash-word {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  letter-spacing: 0.12em;
  opacity: 0;
  white-space: nowrap;
}

.splash-word.aqua {
  color: var(--silver);
  transform: translateX(60vw);
  animation: fly-in-right 0.9s cubic-bezier(.16,.9,.28,1) 0.15s forwards;
}

.splash-word.terra {
  color: var(--green);
  transform: translateX(-60vw);
  animation: fly-in-left 0.9s cubic-bezier(.16,.9,.28,1) 0.35s forwards;
}

@keyframes fly-in-right {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fly-in-left {
  to { opacity: 1; transform: translateX(0); }
}

.splash-welcome {
  margin-top: 1.6rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.35em;
  color: var(--silver-2);
  opacity: 0;
  animation: fade-in 0.8s ease 1.35s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.splash-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: translate(-50%, -50%);
  animation: line-grow 0.9s ease 1.1s forwards;
}
@keyframes line-grow {
  to { width: min(70vw, 420px); }
}

/* ==========================================================================
   Page shell (used on every page after the splash)
   ========================================================================== */
.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pages that follow the splash start hidden and fade up once runSplash()
   adds .visible (either after the animation, or instantly on repeat visits
   within the same session). Pages without a splash skip this class. */
.page.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-mark {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(147,216,74,0.15));
}

.brand-title {
  margin: 0.9rem 0 0.15rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.brand-sub {
  margin: 0 0 2.2rem;
  color: var(--silver-2);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* ---------- Linktree-style buttons ---------- */
.link-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--silver);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.link-btn:hover, .link-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(147,216,74,0.25);
  outline: none;
}

.link-btn .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
}

.link-btn.whatsapp {
  border-color: rgba(147,216,74,0.4);
  background: linear-gradient(180deg, rgba(147,216,74,0.14), var(--bg-2));
}

.link-btn small {
  display: block;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--silver-2);
  font-weight: 400;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.footer-note {
  margin-top: 2.5rem;
  color: var(--silver-2);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.7;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-shell {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.notice {
  background: rgba(147,216,74,0.08);
  border: 1px solid rgba(147,216,74,0.3);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--silver);
  margin-bottom: 1.6rem;
}
.notice strong { color: var(--green); }

.field {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--silver-2);
  letter-spacing: 0.03em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--silver);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.field input[type="file"] {
  width: 100%;
  padding: 0.6rem 0;
  color: var(--silver-2);
  font-size: 0.9rem;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.radio-row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--silver);
  font-size: 0.92rem;
}
.radio-row input { accent-color: var(--green); }

.submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #08130a;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.submit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--silver-2);
  text-decoration: none;
  font-size: 0.9rem;
  align-self: flex-start;
}
.back-link:hover { color: var(--green); }

/* Thank-you page */
.thanks-box {
  text-align: center;
  padding: 3rem 1.5rem;
}
.thanks-box .icon-ok {
  width: 56px;
  height: 56px;
  color: var(--green);
  margin-bottom: 1rem;
}

@media (max-width: 420px) {
  .page { padding: 1.75rem 1rem 3rem; }
  .form-shell { padding: 1.4rem 1.1rem 1.6rem; }
}
