/* ===== WATER HERO — Stylesheet ===== */
:root {
  --bg: #04080f;
  --bg-2: #081420;
  --bg-3: #0a1a2e;
  --ember: #3aa9ff;
  --ember-bright: #00b8d4;
  --ember-gold: #26c6da;
  --ember-red: #0069ff;
  --text: #e8f0f8;
  --text-dim: #88a0b8;
  --text-faint: #506878;
  --border: rgba(58, 169, 255, 0.12);
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== FLAME TEXT (now tide text) ===== */
.flame-text {
  background: linear-gradient(180deg, #26c6da 0%, #3aa9ff 50%, #0069ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(58, 169, 255, 0.3);
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(4, 8, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(4, 8, 15, 0.95); }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  letter-spacing: 2px;
  color: var(--ember-bright);
}
.nav-logo i { font-size: 24px; color: var(--ember); filter: drop-shadow(0 0 6px rgba(58,169,255,0.5)); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ember-bright); }

.btn-preorder-nav {
  padding: 10px 24px;
  background: linear-gradient(135deg, #3aa9ff, #0069ff);
  border: none; border-radius: 6px;
  color: #fff; font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 105, 255, 0.3);
}
.btn-preorder-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 105, 255, 0.5); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(1.3) contrast(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(4,8,15,0.4) 50%, var(--bg) 90%),
              linear-gradient(180deg, rgba(4,8,15,0.6) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.ember-layer {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
}
.ember {
  position: absolute; bottom: 0;
  width: 3px; height: 3px;
  background: var(--ember-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 184, 212, 0.8);
  animation: rise linear forwards;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translateY(-100vh) translateX(var(--drift, 0px)) scale(0.3); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 5;
  text-align: center; max-width: 720px;
  padding: 0 24px;
  animation: heroFade 1.2s ease-out;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(58, 169, 255, 0.08);
  color: var(--ember-bright);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px; line-height: 1.6;
  color: var(--text-dim);
  max-width: 540px; margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #3aa9ff, #0069ff);
  border: none; border-radius: 8px;
  color: #fff; font-family: var(--font-body);
  font-weight: 700; font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(0, 105, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 105, 255, 0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text); font-family: var(--font-body);
  font-weight: 500; font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--ember-bright); background: rgba(0, 184, 212, 0.08); }

.hero-stats { display: flex; gap: 56px; justify-content: center; }
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: var(--ember-gold);
}
.stat-label {
  font-size: 12px; color: var(--text-faint);
  letter-spacing: 1px; text-transform: uppercase;
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION COMMON ===== */
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: 1px;
}

/* ===== STORY ===== */
.story {
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.story-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.story-text h2 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  line-height: 1.3; margin-bottom: 24px;
}
.story-text p {
  font-size: 16px; line-height: 1.8;
  color: var(--text-dim); margin-bottom: 16px;
}
.story-text strong { color: var(--ember-bright); }

.story-img {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 105, 255, 0.15);
}
.story-img img { width: 100%; display: block; transition: transform 0.6s; }
.story-img:hover img { transform: scale(1.05); }
.story-img-frame {
  position: absolute; inset: 0;
  border: 1px solid rgba(0, 184, 212, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 60px rgba(58, 169, 255, 0.15);
  pointer-events: none;
}

/* ===== ABILITIES ===== */
.abilities {
  padding: 120px 48px;
  background: var(--bg-2);
  text-align: center;
}
.ability-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ability-card {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(58,169,255,0.05), rgba(4,8,15,0.4));
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.ability-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--ember));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.ability-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-color, var(--ember));
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--card-glow, rgba(58,169,255,0.15));
}
.ability-card:hover::before { transform: scaleX(1); }

.ability-icon {
  font-size: 40px;
  color: var(--card-color, var(--ember));
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px var(--card-color, var(--ember)));
}
.ability-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.ability-card p {
  font-size: 14px; line-height: 1.6;
  color: var(--text-dim); margin-bottom: 16px;
}
.ability-stat {
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--card-color, var(--ember));
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* ===== MODES ===== */
.modes {
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  text-align: center;
}
.mode-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mode-card {
  text-align: left;
  border-radius: 12px; overflow: hidden;
  background: rgba(10, 26, 46, 0.6);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.mode-card:hover { transform: translateY(-6px); border-color: var(--ember); }
.mode-img { height: 200px; overflow: hidden; }
.mode-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mode-card:hover .mode-img img { transform: scale(1.08); }
.mode-body { padding: 24px; }
.mode-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ember-gold);
  margin-bottom: 12px;
}
.mode-body h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  margin-bottom: 12px;
}
.mode-body p { font-size: 14px; line-height: 1.6; color: var(--text-dim); }

/* ===== CHARACTERS ===== */
.characters {
  padding: 120px 48px;
  background: var(--bg);
  text-align: center;
}
.char-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.char-card {
  text-align: left;
  border-radius: 14px; overflow: hidden;
  background: rgba(10, 26, 46, 0.6);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.char-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 105, 255, 0.2);
}
.char-portrait {
  height: 320px;
  background-size: cover; background-position: center top;
  border-bottom: 2px solid var(--ember);
}
.char-info { padding: 24px; }
.char-info h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  margin-bottom: 4px;
}
.char-role {
  font-size: 13px; font-weight: 600;
  letter-spacing: 1px;
  color: var(--ember-bright);
  margin-bottom: 12px;
}
.char-info p { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin-bottom: 16px; }
.char-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(0, 184, 212, 0.08);
  border: 1px solid rgba(0, 184, 212, 0.2);
  border-radius: 50px;
  color: var(--ember-gold);
}

/* ===== ROADMAP ===== */
.roadmap {
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  text-align: center;
}
.timeline {
  max-width: 800px; margin: 0 auto;
  position: relative;
  text-align: left;
}
.timeline::before {
  content: ''; position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ember-gold), var(--ember), transparent);
}
.t-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 48px;
}
.t-dot {
  position: absolute; left: 4px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--text-faint);
}
.t-dot.done {
  background: var(--ember-gold);
  border-color: var(--ember-gold);
  box-shadow: 0 0 12px rgba(38, 198, 218, 0.5);
}
.t-dot.active {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 16px rgba(58, 169, 255, 0.7);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(58, 169, 255, 0.7); }
  50% { box-shadow: 0 0 28px rgba(58, 169, 255, 1); }
}
.t-date {
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 4px;
}
.t-item h4 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}
.t-item p { font-size: 14px; line-height: 1.6; color: var(--text-dim); }

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 100px 48px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-3);
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58, 169, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.cta-content h2 {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  margin-bottom: 16px;
}
.cta-content > p {
  font-size: 16px; line-height: 1.6;
  color: var(--text-dim); margin-bottom: 32px;
}
.cta-content strong { color: var(--ember-gold); }

.cta-form {
  display: flex; gap: 12px;
  margin-bottom: 24px;
}
.cta-form input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(4, 8, 15, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.cta-form input::placeholder { color: var(--text-faint); }
.cta-form input:focus { border-color: var(--ember); }
.cta-form button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3aa9ff, #0069ff);
  border: none; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 105, 255, 0.3);
  transition: transform 0.2s;
}
.cta-form button:hover { transform: translateY(-2px); }

.cta-result {
  font-size: 15px; font-weight: 600;
  min-height: 24px;
  margin-bottom: 24px;
}
.cta-result.success { color: var(--ember-gold); }
.cta-result.error { color: #ff4d6d; }

.cta-social { display: flex; gap: 16px; justify-content: center; }
.cta-social a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cta-social a:hover {
  border-color: var(--ember);
  color: var(--ember-bright);
  background: rgba(58, 169, 255, 0.08);
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  letter-spacing: 2px;
  color: var(--ember-bright);
  margin-bottom: 8px;
}
.footer-logo i { color: var(--ember); }
.footer p { font-size: 13px; color: var(--text-faint); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-img { order: -1; }

  .ability-grid { grid-template-columns: repeat(2, 1fr); }

  .mode-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 28px; }
  .stat-num { font-size: 24px; }

  .cta-form { flex-direction: column; }
}
@media (max-width: 560px) {
  .ability-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .hero-title { font-size: 56px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
